# Inngest — Durable AI Workflow Orchestration > Run reliable AI workflows with automatic retries and state persistence. Replace queues and scheduling with durable step functions. TypeScript, Python, Go SDKs. 5,200+ stars. ## Install Save as a script file and run: ## Quick Use 1. Start the dev server: ```bash npx inngest-cli@latest dev # Dashboard at http://localhost:8288 ``` 2. Create a durable function: ```typescript import { inngest } from "./client"; export const processWithAI = inngest.createFunction( { id: "ai-pipeline" }, { event: "app/document.uploaded" }, async ({ event, step }) => { const text = await step.run("extract", () => extractText(event.data.url) ); const summary = await step.run("summarize", () => callClaude(text) ); await step.run("save", () => saveToDatabase(summary) ); return { summary }; } ); ``` 3. Each step retries independently — if step 2 fails, step 1 doesn't re-run. --- ## Intro Inngest is a durable workflow orchestration platform with 5,200+ GitHub stars. It replaces queues, state management, and scheduling with durable step functions that automatically retry and persist state. Perfect for AI workflows where each step (extract → process → save) needs to be reliable. SDKs for TypeScript, Python, Go, and Kotlin. Best for developers building multi-step AI pipelines, background jobs, or event-driven workflows that must not lose progress. See also: [AI automation scripts on TokRepo](https://tokrepo.com/en/@Script%20Depot). --- ## Inngest — Reliable AI Workflows ### The Problem AI pipelines are multi-step: extract text → call LLM → save result → send notification. If step 3 fails, you don't want to re-run the expensive LLM call. Traditional queues don't handle this well. ### The Solution Inngest's durable functions persist state after each step. If a step fails, only that step retries — previous steps are not re-executed. ### Key Concepts | Concept | Description | |---------|------------| | **Durable functions** | Functions that survive failures and restarts | | **Steps** | Individual units of work that retry independently | | **Events** | Triggers that start workflows | | **Flow control** | Concurrency, throttling, debouncing, rate limiting | ### AI Workflow Example ```typescript const aiPipeline = inngest.createFunction( { id: "ai-research" }, { event: "research/start" }, async ({ event, step }) => { // Step 1: Gather sources (retries independently) const sources = await step.run("gather", () => searchWeb(event.data.topic) ); // Step 2: Analyze each source in parallel const analyses = await Promise.all( sources.map((s, i) => step.run(`analyze-${i}`, () => analyzeSources(s)) ) ); // Step 3: Synthesize with AI const report = await step.run("synthesize", () => callClaude(`Synthesize: ${JSON.stringify(analyses)}`) ); // Step 4: Save and notify await step.run("save", () => saveReport(report)); await step.run("notify", () => sendSlack(report.summary)); return report; } ); ``` ### SDKs | Language | Package | |----------|---------| | TypeScript/JS | `inngest` | | Python | `inngest` | | Go | `github.com/inngest/inngestgo` | | Kotlin/Java | `com.inngest:inngest` | ### FAQ **Q: What is Inngest?** A: A durable workflow orchestration platform that lets you write reliable step functions with automatic retries and state persistence. Perfect for multi-step AI pipelines. **Q: Is Inngest free?** A: The dev server is free and open-source. Inngest Cloud has a free tier for production use. **Q: How is Inngest different from n8n or Temporal?** A: Inngest is code-first (not visual like n8n) and simpler than Temporal. You write regular functions with step.run() — no workflow DSL or state machines needed. --- ## Source & Thanks > Created by [Inngest](https://github.com/inngest). Licensed under SSPL/Apache-2.0. > > [Inngest](https://github.com/inngest/inngest) — ⭐ 5,200+ Thanks to the Inngest team for making reliable workflows accessible to every developer. --- ## 快速使用 1. 启动开发服务器: ```bash npx inngest-cli@latest dev ``` 2. 创建持久函数(每个 step 独立重试) 3. 仪表盘在 http://localhost:8288 --- ## 简介 Inngest 是持久工作流编排平台,GitHub 5,200+ star。用持久步骤函数替代队列、状态管理和调度,自动重试和状态持久化。非常适合 AI 工作流中每步(提取→处理→保存)都需要可靠执行的场景。支持 TypeScript、Python、Go SDK。 --- ## Inngest — 可靠的 AI 工作流 ### 核心概念 - **持久函数** — 可在故障和重启中存活 - **独立步骤** — 每步独立重试,不重复执行已完成步骤 - **事件驱动** — 事件触发工作流 - **流控** — 并发、节流、去抖、限速 ### FAQ **Q: Inngest 是什么?** A: 持久工作流编排平台,写可靠的步骤函数,自动重试和状态持久化。 **Q: 和 n8n 有什么区别?** A: Inngest 是代码优先(不是可视化),比 Temporal 简单,用 step.run() 写普通函数。 --- ## 来源与感谢 > Created by [Inngest](https://github.com/inngest). Licensed under SSPL/Apache-2.0. > > [Inngest](https://github.com/inngest/inngest) — ⭐ 5,200+ --- Source: https://tokrepo.com/en/workflows/f09e8059-33e5-11f1-9bc6-00163e2b0d79 Author: Script Depot