inngest-middleware

Compose reusable Inngest middleware for logging, dependency injection, encryption, and error tracking.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/robertsthomas/hellobrand --skill inngest-middleware
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inngest-middleware
Source: https://github.com/robertsthomas/hellobrand/tree/main/.agents/skills/inngest-middleware
Command: npx skills add https://github.com/robertsthomas/hellobrand --skill inngest-middleware

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Create and reuse Inngest middleware to handle cross-cutting concerns (logging, dependency injection, encryption, and error tracking) across multiple functions, ensuring consistency and reusability.

Core Features & Use Cases

  • Centralized middleware lifecycle: register client-wide or function-specific hooks that run through function execution and event sending.
  • Dependency injection, data transformation, and observability: inject shared clients, transform input/output, and track metrics or errors.
  • Extendable patterns: integrate encryption, Sentry, and custom middleware with easy composition for production-grade workflows.

Quick Start

Register the provided Inngest middleware in your client initialization to enable cross-cutting concerns.

Frequently Asked Questions about inngest-middleware

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

FAQPage Schema
How do I add cross-cutting concerns like logging and dependency injection to Inngest functions?

You can add cross-cutting concerns to Inngest functions by applying reusable middleware across function lifecycles. This Skill provides patterns to compose and register middleware at the client or function level, ensuring consistent observability and dependency management.

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

Inngest middleware is a layer that intercepts function execution and event sending to apply shared services. You need it when running multiple Inngest functions that require consistent logging, data transformation, error tracking, or encryption.

How do I configure Sentry error tracking and encryption for Inngest functions?

You configure Sentry and encryption by extending Inngest middleware with custom integrations. This Skill demonstrates how to compose built-in and custom middleware to encrypt data and track errors across your production-grade workflows.

Can I apply middleware client-wide or does it need to be function-specific in Inngest?

You can apply middleware both client-wide and function-specific in Inngest. This flexibility allows you to register global hooks for shared services while targeting individual functions with specialized middleware for tasks like data transformation.

What's the best way to manage shared clients across multiple Inngest functions in TypeScript?

The best way to manage shared clients is using Inngest middleware for dependency injection. This approach injects shared services into the function lifecycle, enabling consistent client access and observability without duplicating initialization code.