inngest avatar

Inngest Middleware

If you're wiring up cross-cutting concerns across Inngest durable functions, this is your reference. It covers the v4 middleware lifecycle, dependency injection for sharing database or API clients, and official packages like encryption and Sentry integration. The examples show real patterns like structured logging, metrics tracking, and payload transformation. One gotcha worth noting: v4 ships realtime natively, so don't pull in the old @inngest/realtime package or you'll hit runtime errors. The execution order section is especially useful since client middleware runs before function middleware, and order matters when you're chaining authentication, logging, and error handling together.

skills.sh installs
3.8K
GitHub stars
29
last updated
Aug 21, 2026

Install

$ npx -y skills add inngest/inngest-skills --skill inngest-middleware --agent claude-code

Installs into .claude/skills of the current project.

Files

Inngest Middleware

Master Inngest middleware to handle cross-cutting concerns like logging, error tracking, dependency injection, and data transformation. Middleware runs at key points in the function lifecycle, enabling powerful patterns for observability and shared functionality.

These skills are focused on TypeScript. For Python or Go, refer to the Inngest documentation for language-specific guidance. Core concepts apply across all languages.

Note: The middleware system was significantly rewritten in v4. The lifecycle hooks documented here reflect the v4 API. If migrating from v3, consult the migration guide for details on breaking changes.

Sponsors

Details

Repository
github.com/inngest/inngest-skills
Categories
Backend & APIs, Security, DevOps & CI/CD, Debugging, Finance & Trading
First seen
May 16, 2026

More from inngest/inngest-skills

All 6
1apollographql avatarapollo-mcp-serverapollographql/skillsGuide for using Apollo MCP Server to connect AI agents with GraphQL APIs. Use this skill when: (1) setting up or configuring Apollo MCP Server, (2) defining MCP3.3Kskills.sh installs
2redis avatarredis-securityredis/agent-skillsRedis security guidance covering authentication (requirepass and ACL users), TLS, ACL-based least-privilege access control, restricting network exposure via bin2.6Kskills.sh installs
3langgenius avatarbackend-code-reviewlanggenius/difyUse only when the user explicitly requests a review or audit of backend code under `api/`. Supports pending-change, file-focused, and pasted-diff reviews. Do no2.1Kskills.sh installs
4onmax avatarnuxt-better-authonmax/nuxt-skillsUse when implementing auth in Nuxt apps with @onmax/nuxt-better-auth - provides useUserSession composable, server auth helpers, route protection, and Better Aut2.1Kskills.sh installs
5adobe avatarauthadobe/skillsAuthenticate with AEM Edge Delivery Services. Opens browser for login and captures token. Works for admin.hlx.page and Config Service APIs regardless of content1.5Kskills.sh installs
6jezweb avatarcloudflare-worker-builderjezweb/claude-skillsScaffold and deploy Cloudflare Workers with Hono routing, Vite plugin, and Static Assets. Describe project, scaffold structure, configure bindings, deploy. Use 1.4Kskills.sh installs