inngest
Inngest is a durable workflow engine for TypeScript: functions are split into retryable steps whose results are saved, so a failure resumes where it stopped…
от TerminalSkills★ 221 звезда на GitHub
Установить inngest в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Inngest — Durable Workflow Engine for TypeScript
Overview
Inngest runs your TypeScript functions as a series of steps. Each step.run() result is saved, so when a later step fails or the function waits for days, the run resumes without repeating finished steps. Functions are served from an HTTP endpoint in your own app (usually /api/inngest); Inngest Cloud or the local Dev Server calls that endpoint to run them. This skill targets SDK v4 (inngest 4.x). If the project is on v3, the biggest difference is that the trigger moved from the second argument of createFunction into triggers in the first.
Instructions
1. Install and create the client
npm install inngest
// src/inngest/client.ts
import { Inngest } from "inngest";
export const inngest = new Inngest({ id: "shop-backend" });
In v4 the client defaults to cloud mode and needs INNGEST_SIGNING_KEY (from the Inngest dashboard) in production. For local development run the Dev Server and tell the SDK to use it with INNGEST_DEV=1 (or isDev: true on the client). Put the event key in INNGEST_EVENT_KEY when sending events to Cloud. Never hard-code either key.
npx inngest-cli@latest dev # Dev Server and UI on http://localhost:8288
INNGEST_DEV=1 npm run dev # your app, in another terminal
2. Serve the functions
// src/app/api/inngest/route.ts (Next.js App Router)
import { serve } from "inngest/next";
import { inngest } from "@/inngest/client";
import { onboardUser, processBatch, dailyCleanup, syncCRM } from "@/inngest/functions";
export const maxDuration = 300; // serverless limit for this route (Vercel)
export const { GET, POST, PUT } = serve({
client: inngest,
functions: [onboardUser, processBatch, dailyCleanup, syncCRM],
});
Other adapters are imported the same way: inngest/express, inngest/lambda and so on. Options such as signingKey and baseUrl belong on the client, not on serve(). Use serveOrigin (not serveHost) when the app sits behind a proxy.
On serverless platforms set checkpointing: { maxRuntime: "50s" } on the client, a little under the platform's maximum duration, because v4 runs several steps per request by default.
3. Write functions
In v4 the trigger goes in triggers inside the first argument. It can be one object or an array (for example an event plus a cron schedule).
// src/inngest/functions.ts
import { inngest } from "./client";
export const onboardUser = inngest.createFunction(
{
id: "onboard-user",
retries: 3,
concurrency: [{ limit: 10 }],
triggers: { event: "user/signed-up" },
},
async ({ event, step }) => {
const user = await step.run("create-account", async () => {
return db.users.create({ email: event.data.email, name: event.data.name });
});
await step.run("send-welcome", async () => {
await resend.emails.send({
from: "Shop <[email protected]>",
to: user.email,
subject: "Welcome to Shop",
react: WelcomeEmail({ name: user.name }),
});
});
await step.sleep("wait-for-activation", "24 hours");
const activated = await step.run("check-activation", async () => {
const current = await db.users.findById(user.id);
return current.activatedAt !== null;
});
if (!activated) {
await step.run("send-reminder", async () => {
await resend.emails.send({
from: "Shop <[email protected]>",
to: user.email,
subject: "Finish setting up your shop",
react: ReminderEmail({ name: user.name }),
});
});
}
return { userId: user.id, activated };
},
);
db, resend and the email components are your own app code. Step return values are JSON-serialised, so a Date comes back as a string on later steps.
4. Fan-out, cron, debounce, rate limit
export const processBatch = inngest.createFunction(
{ id: "process-batch", triggers: { event: "batch/uploaded" } },
async ({ event, step }) => {
const results = await Promise.all(
event.data.items.map((item: { id: string }) =>
step.run(`process-item-${item.id}`, () => processItem(item)),
),
);
return step.run("summarize", () => ({
total: results.length,
failed: results.filter((r) => r.status === "error").length,
}));
},
);
export const dailyCleanup = inngest.createFunction(
{ id: "daily-cleanup", triggers: { cron: "0 3 * * *" } }, // 03:00 UTC
async ({ step }) => {
const deleted = await step.run("cleanup-expired", () =>
db.sessions.deleteWhere({ expiresAt: { lt: new Date() } }),
);
return { deletedSessions: deleted };
},
);
export const syncCRM = inngest.createFunction(
{
id: "sync-crm",
triggers: { event: "user/updated" },
debounce: { key: "event.data.userId", period: "5m" }, // runs on the last event
},
async ({ event, step }) => {
await step.r
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _scores.json
FAQ
Что делает скилл inngest?
Inngest is a durable workflow engine for TypeScript: functions are split into retryable steps whose results are saved, so a failure resumes where it stopped. Use it when a user asks for background jobs, scheduled (cron) jobs, multi-step workflows, delayed or drip emails, fan-out/fan-in processing, debouncing or rate limiting, or event-driven functions on serverless platforms such as Vercel, Netlify, AWS Lambda or Cloudflare. Covers the current v4 SDK (triggers inside the options object).
Как установить скилл inngest?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл inngest запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…