Community코딩 & 개발github.com

inngest/inngest-middleware

지속성 함수에 횡단 관심사를 추가할 때 사용합니다. 모든 함수에 걸친 구조화된 로깅 또는 추적, Sentry를 통한 오류 추적, 민감한 데이터에 대한 페이로드 암호화, 함수 핸들러에 클라이언트(DB, Stripe 등)의 의존성 주입, 사용자 정의 텔레메트리, 또는 여러 함수에 걸쳐 균일하게 적용되어야 하는 동작을 다룹니다. Inngest 미들웨어 생애주기, 사용자 정의 미들웨어 생성, dependencyInjectionMiddleware, @inngest/middleware-encryption, @inngest/middleware-sentry, 그리고 사용자 정의 미들웨어 패턴을 포함합니다.

inngest-middleware란 무엇인가요?

이 스킬은 Inngest 지속성 함수에서 횡단 관심사를 처리하기 위한 미들웨어 시스템을 설명합니다. 개발자는 이 스킬을 통해 함수 전반에 걸쳐 구조화된 로깅, 분산 추적, Sentry 오류 추적, 민감 데이터 암호화, 그리고 DB나 Stripe 같은 외부 서비스 클라이언트의 의존성 주입을 구현할 수 있습니다. Inngest SDK에서 제공하는 공식 미들웨어(@inngest/middleware-encryption, @inngest/middleware-sentry)와 커스텀 미들웨어 패턴을 모두 다루며, `init`, `onFunctionStart`, `onFunctionFinish`, `transformInput`, `transformOutput`과 같은 미들웨어 생애주기 훅을 이해하고 활용할 수 있도록 안내합니다. 이 스킬은 Inngest 기반 서버리스 및 지속성 함수 아키텍처에서 코드 중복을 줄이고 유지보수성을 높이는 데 핵심적인 역할을 합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/inngest/inngest-skills/tree/main/skills/inngest-middleware

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

inngest-middleware은(는) 무엇을 하나요?

지속성 함수에 횡단 관심사를 추가할 때 사용합니다. 모든 함수에 걸친 구조화된 로깅 또는 추적, Sentry를 통한 오류 추적, 민감한 데이터에 대한 페이로드 암호화, 함수 핸들러에 클라이언트(DB, Stripe 등)의 의존성 주입, 사용자 정의 텔레메트리, 또는 여러 함수에 걸쳐 균일하게 적용되어야 하는 동작을 다룹니다. Inngest 미들웨어 생애주기, 사용자 정의 미들웨어 생성, dependencyInjectionMiddleware, @inngest/middleware-encryption, @inngest/middleware-sentry, 그리고 사용자 정의 미들웨어 패턴을 포함합니다.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

inngest/inngest-durable-functions

Use when building functions that must survive process crashes, retry automatically on failure, run on a schedule, react to events, or maintain state across infrastructure failures — e.g., webhook handlers that drop events, flaky cron jobs, background jobs that fail mid-execution, or workflows that need to resume where they left off. Covers Inngest function configuration, triggers (events, cron, invoke), step execution and memoization, idempotency, cancellation, error handling, retries, logging, and observability.

inngest/inngest-events

Use when designing event-driven workflows, decoupling services, implementing fan-out patterns (one trigger, many downstream handlers), implementing idempotent event handling with IDs (24-hour dedupe window), or handling at-least-once delivery from external sources like Stripe webhooks. Covers Inngest event schema, payload format, naming conventions, IDs for idempotency, the ts param, fan-out patterns, and system events like inngest/function.failed.

inngest/inngest-setup

Use when adding durable execution to a TypeScript project — building retry-safe webhook handlers, background jobs that survive crashes, scheduled tasks, or long-running workflows that outlive a single request. Covers Inngest SDK installation, client config, environment variables, serve endpoints (Next.js, Express, Hono, Fastify), connect-as-worker mode, and the local dev server.

inngest/inngest-steps

Use when implementing delays that must survive process restarts (e.g., 24-hour cart abandonment, scheduled follow-ups), waiting for human approval or external events with timeouts (review gates, webhook callbacks, async API completion), polling external services without losing state on crashes, calling other functions and awaiting their results, memoizing expensive operations so they don't re-run on retry, or running async work in parallel inside a workflow. Covers Inngest step methods: step.run, step.sleep, step.waitForEvent, step.waitForSignal, step.sendEvent, step.invoke, step.ai, plus patterns for loops and parallel execution.

관련 스킬