Skip to main content
@usenarrator/plugin-inngest The Inngest plugin reads a function as an event handler with a schedule. It names what triggers the function (an event, a cron pattern in words, or both), spells out flow control such as concurrency, throttling and debouncing, and then lists each durable step with its ID so you can match the English to what the Inngest dashboard shows.
The plugin declares library: { name: "inngest", versions: ">=3 <5" } and reads both v3, where triggers are the second argument to createFunction, and v4, where they live in the options. It only narrates files that import from inngest or belong to a package that depends on it (see Dependency detection), so res.send and other libraries’ serve functions are left alone.

Examples

A function with durable steps
English
A scheduled function (v4)
English

What it covers

  • Clients and functions: new Inngest, createFunction with v3 and v4 triggers, event types, cancelOn and onFailure.
  • Flow control: concurrency, throttle, rateLimit, debounce, priority, batchEvents, idempotency, singleton, timeouts and retries, each as a plain limit on when runs start.
  • Steps: step.run, step.sleep, step.sleepUntil, step.waitForEvent with its match and timeout, step.sendEvent and step.invoke, with their step IDs.
  • Events and serving: inngest.send and serve for each framework adapter.
  • Durations such as "1h30m" and cron patterns read as words.

Translating

The English phrasebook is exported as en and typed as InngestPhrases. Its time section has the same shape as the other job plugins’ (TimePhrases).