inngest/inngest-setup

TypeScript プロジェクトに耐久性のある実行(durable execution)を追加する際に使用します。再試行安全な Webhook ハンドラ、クラッシュに耐えるバックグラウンドジョブ、スケジュールされたタスク、または単一のリクエストを超えて存続する長時間実行ワークフローの構築をカバーします。Inngest SDK のインストール、クライアント設定、環境変数、サーブエンドポイント(Next.js、Express、Hono、Fastify)、connect-as-worker モード、およびローカル開発サーバーを含みます。

inngest-setup とは?

このスキルは、TypeScript プロジェクトに Inngest による耐久性のある実行(durable execution)を導入するための包括的なガイドです。主な目的は、クラッシュやエラーが発生しても安全に再試行できる Webhook ハンドラ、バックグラウンドジョブ、スケジュールタスク、長時間実行ワークフローを構築することです。対応プラットフォームは Next.js、Express、Hono、Fastify などで、SDK のインストール、クライアント設定、環境変数、サーブエンドポイントの構成、connect-as-worker モード、そしてローカル開発サーバーのセットアップ手順を詳しく説明します。Inngest のイベント駆動アーキテクチャと「関数」という概念を理解することで、開発者は信頼性の高いバックグラウンド処理を迅速に実装できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/inngest/inngest-skills/tree/main/skills/inngest-setup

Installed? Explore more 生産性&コラボレーション skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

inngest-setup は何をしますか?

耐久性のある実行を TypeScript プロジェクトに追加する際に使用します — 再試行安全な Webhook ハンドラ、クラッシュに耐えるバックグラウンドジョブ、スケジュールされたタスク、または単一のリクエストを超えて存続する長時間実行ワークフローを構築できます。Inngest SDK のインストール、クライアント設定、環境変数、サーブエンドポイント(Next.js、Express、Hono、Fastify)、connect-as-worker モード、およびローカル開発サーバーをカバーします。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

inngest/inngest-durable-functions

Use when building functions that must survive process crashes, retry automatically on failure, run on a schedule, react to events, or maintain state across infrastructure failures — e.g., webhook handlers that drop events, flaky cron jobs, background jobs that fail mid-execution, or workflows that need to resume where they left off. Covers Inngest function configuration, triggers (events, cron, invoke), step execution and memoization, idempotency, cancellation, error handling, retries, logging, and observability.

inngest/inngest-events

Use when designing event-driven workflows, decoupling services, implementing fan-out patterns (one trigger, many downstream handlers), implementing idempotent event handling with IDs (24-hour dedupe window), or handling at-least-once delivery from external sources like Stripe webhooks. Covers Inngest event schema, payload format, naming conventions, IDs for idempotency, the ts param, fan-out patterns, and system events like inngest/function.failed.

inngest/inngest-middleware

Use when adding cross-cutting concerns to durable functions — structured logging or tracing across all functions, error tracking with Sentry, payload encryption for sensitive data, dependency injection of clients (DB, Stripe, etc.) into function handlers, custom telemetry, or behavior that should apply uniformly across many functions. Covers Inngest middleware lifecycle, creating custom middleware, dependencyInjectionMiddleware, @inngest/middleware-encryption, @inngest/middleware-sentry, and custom middleware patterns.

inngest/inngest-steps

Use when implementing delays that must survive process restarts (e.g., 24-hour cart abandonment, scheduled follow-ups), waiting for human approval or external events with timeouts (review gates, webhook callbacks, async API completion), polling external services without losing state on crashes, calling other functions and awaiting their results, memoizing expensive operations so they don't re-run on retry, or running async work in parallel inside a workflow. Covers Inngest step methods: step.run, step.sleep, step.waitForEvent, step.waitForSignal, step.sendEvent, step.invoke, step.ai, plus patterns for loops and parallel execution.

関連スキル