TOOL WIKI · RUNTIME & DEPLOYMENT

Inngest

Provides event-driven workflows and execution building blocks for applications.

Download example files Code + setup + checks in a ZIP
Jump to a section 10 sections

EXAMPLE USE CASE

Handle an order-request event as a named workflow step

A developer needs a concrete execution environment for a background task, browser operation or service, with a visible terminal result.

Input
asg/order.requested carrying an order ID and a registered function.
Expected output
A completed lookup step returning packed/not_found in the dev UI.
  • Success check: The dev UI discovers read-order and records a completed run with packed.
  • Try a failure: An invalid event shape must not silently become a successful business result.

Example scope: Actual event/function integration using the local development service.

Official reference · Inngest

WHAT IT ISWorkflow platform
WHERE IT FITSRuntime & deployment
SEE HOW THE SYSTEM FITS TOGETHERSELECT A COMPONENT
inputprocessresultcheckoutputTask requestGoal + resource budgetInngestWorkflow platformWorker environmentScoped executionExternal operationsAuthorized servicesArtifacts + outcomeValidate the resultLifecyclePersist or clean up
  1. Set the allowed runtime, network access, credentials, and maximum duration.

  2. Background agent tasks that need managed steps and event handling. Define the boundary between retriable work and committed effects.

  3. Run only the workload and dependencies required for the task.

  4. Check permissions at each resource service and reconcile uncertain writes.

  5. Inspect files, records, and task-level acceptance criteria.

  6. Retain required artifacts, release temporary compute, and expire task credentials.

    Result or stopping point
Inngest

Background agent tasks that need managed steps and event handling. Define the boundary between retriable work and committed effects.

Follow the arrows, then select a component to inspect its responsibility. On mobile, downward arrows connect the next step; bent arrows identify branches and return paths. Select a destination to jump to that component.

When to consider it

  • Background agent tasks that need managed steps and event handling.

A design decision to make

  • Define the boundary between retriable work and committed effects.

Prerequisites and setup

  • Node.js 22+. This uses the current two-argument createFunction API with triggers inside the configuration.
Shell
npm init -y
npm install inngest express
export INNGEST_DEV=1

Try a small integration

server.mjs

JavaScript · server.mjs
import express from 'express';
import { Inngest } from 'inngest';
import { serve } from 'inngest/express';
const client=new Inngest({id:'asg-demo'});
const readOrder=client.createFunction({id:'read-order',triggers:{event:'asg/order.requested'}},
  async({event,step})=>await step.run('lookup',()=>({
    order_id:event.data.order_id,status:event.data.order_id==='A104'?'packed':'not_found'
  })));
const app=express();
app.use(express.json());
app.use('/api/inngest',serve({client,functions:[readOrder]}));
app.listen(3000,'127.0.0.1');

event.json

JSON · event.json
{"name":"asg/order.requested","data":{"order_id":"A104"}}

Run and check the result

Shell
# Terminal 1
node server.mjs
# Terminal 2
npx --ignore-scripts=false inngest-cli@latest dev -u http://localhost:3000/api/inngest
# Terminal 3
curl --fail http://localhost:8288/e/devkey -H "Content-Type: application/json" -d @event.json
  • The dev UI discovers read-order and records a completed run with packed.
  • step.run stores a step result; repeated event delivery and a retried external side effect still need deliberate idempotency.

Common failures

  • A worker accepting a job does not establish completion. Inspect the task result, failure and retry history.
  • Do not expose a development control plane or unauthenticated execution endpoint publicly.

Production decisions

  • Use bounded CPU/memory/time, restricted filesystem mounts and network access, short-lived secrets and per-user isolation.
  • Preserve run/operation identifiers, cancellation and terminal states. Retryable remote writes need provider idempotency or reconciliation.

Keep exploring

An agent that can pause and resumeA browser or coding agent in a sandbox

Explore the same layer

TemporalTrigger.devE2BDaytona

Compare candidates on your own workload. This entry describes a product’s role; it is not a claim that products in the category are interchangeable.