inngest-middleware

Automate cross-cutting concerns in Inngest middleware across function lifecycles.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/supersterling/primus --skill inngest-middleware-supersterling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inngest-middleware
Source: https://github.com/supersterling/primus/tree/main/.agents/skills/inngest-middleware
Command: npx skills add https://github.com/supersterling/primus --skill inngest-middleware-supersterling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Inngest middleware enables centralized handling of cross-cutting concerns such as logging, error tracking, dependency injection, and data transformation across function lifecycles, reducing boilerplate and ensuring consistent behavior.

Core Features & Use Cases

  • Observability: add logging, tracing, and metrics around function runs.
  • Dependency Injection: share clients and services across all functions with client-level middleware.
  • Data Transformation: transform and protect data at input/output boundaries (encryption, validation, enrichment).
  • Error Handling: capture, report, and correlate errors with function context and events.
  • Patterned Authentication: validate and propagate user context for downstream steps.

Quick Start

Install the Inngest middleware packages and wire them into your Inngest client to start using dependency injection, encryption, and error tracking.

Frequently Asked Questions about inngest-middleware

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle cross-cutting concerns like logging and error tracking in Inngest functions?

Use Inngest middleware to centralize logging and error tracking across function lifecycles, applying packages like @inngest/middleware-sentry to capture and report errors with consistent context without repeating boilerplate in each function.

What is Inngest middleware and when do I need it for my TypeScript functions?

Inngest middleware is a layer that automates cross-cutting concerns such as dependency injection, encryption, and logging across function lifecycles. You need it when building scalable function ecosystems requiring consistent data transformation and error handling.

How do I share clients and services across all Inngest functions using dependency injection?

Register client-level middleware like dependencyInjectionMiddleware with your Inngest client to share clients and services across all functions, ensuring ordered execution and consistent service availability throughout the function lifecycle.

Can I use Inngest middleware for data encryption and transformation in Python environments?

Yes, Inngest middleware supports both TypeScript and Python environments for data transformation. You can use packages like @inngest/middleware-encryption to transform and protect data at input and output boundaries.

Does Inngest middleware support both client-level and function-level registration?

Yes, Inngest middleware supports both client-level and function-level registration. Client-level registration applies middleware globally to all functions, while function-level registration targets specific functions with ordered execution.