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.
npx skills add https://github.com/inngest/inngest-skills --skill inngest-middleware