
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-codeInstalls 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