New advertisers: 50% off your first month with code FIRSTMONTHSee slots
inngest avatar

Inngest Middleware

Cross-cutting middleware for durable functions: logging, Sentry errors, encryption, and dependency injection.

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

What it does

  • Covers the Inngest middleware lifecycle, custom middleware creation, and client-level versus function-level registration order
  • Includes dependencyInjectionMiddleware for sharing clients such as databases and API SDKs, plus the @inngest/middleware-encryption and @inngest/middleware-sentry packages
  • Enforces uniform behavior across many functions, with step data and output encrypted via encryptionMiddleware and key rotation supported through fallbackDecryptionKeys
  • Designed for v4 projects that need logging, tracing, or error tracking applied to every function without per-function code

Install

$ npx -y skills add inngest/inngest-skills --skill inngest-middleware -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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.

Details

Repository
github.com/inngest/inngest-skills
Category
Backend & APIs
First seen
May 16, 2026

More from inngest/inngest-skills

All 6

Similar to Inngest Middleware

More Backend & APIs