inngest-middleware

Create and use Inngest middleware for logging, error tracking, and dependency injection.

2|Updated Dec 6, 2025
One-click install
npx skills add https://github.com/Ali1raz/portal-cui --skill inngest-middleware-ali1raz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inngest-middleware
Source: https://github.com/Ali1raz/portal-cui/tree/main/.github/skills/inngest-middleware
Command: npx skills add https://github.com/Ali1raz/portal-cui --skill inngest-middleware-ali1raz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive coverage of Inngest middleware, enabling users to create and manage middleware for various cross-cutting concerns like logging, error tracking, dependency injection, and data transformation.

Core Features & Use Cases

  • Middleware Lifecycle: Learn about the lifecycle and execution order of middleware.
  • Custom Middleware: Understand how to create custom middleware for specific needs.
  • Dependency Injection: Utilize dependency injection to share expensive or stateful clients across functions.
  • Encryption Middleware: Use encryption middleware to protect sensitive data.
  • Sentry Error Tracking: Implement Sentry error tracking for robust error handling.
  • Use Case: Imagine you want to add encryption and error tracking to your Inngest functions. This Skill will guide you through the process.

Quick Start

Create and use Inngest middleware for your cross-cutting concerns by following the guidelines provided in the SKILL.md file.

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 error tracking to Inngest functions?

You add cross-cutting concerns to Inngest functions by implementing middleware. This Skill provides guidance on creating custom middleware to handle logging, error tracking, dependency injection, and data transformation across your application.

What is the execution order of Inngest middleware?

Inngest middleware executes in a specific lifecycle order. This Skill details the middleware lifecycle, explaining how multiple layers are applied sequentially to manage data transformation and error tracking before and after your core function runs.

How do I share stateful or expensive clients across Inngest functions?

You share stateful or expensive clients across Inngest functions using dependency injection. This Skill explains how to utilize dependency injection within your custom middleware to efficiently manage and distribute shared resources.

Can I use Sentry error tracking and encryption middleware together in Inngest?

Yes, you can use Sentry error tracking and encryption middleware together in Inngest. This Skill guides you through combining multiple middleware layers to protect sensitive data while maintaining robust error handling.

When should I create custom middleware instead of standard functions in Inngest?

You should create custom middleware in Inngest when you need to reuse logic across multiple functions. This Skill helps you identify cross-cutting concerns like data transformation that are better managed through middleware patterns.