Skip to content

TypeScript SDK v4

Info: Upgrading from v3? Check out the migration guide.

Introduction

Inngest is an event-driven durable execution platform that lets you write reliable background jobs, scheduled tasks, and multi-step workflows in TypeScript without any additional infrastructure. Simply define functions as code; Inngest handles retries, concurrency, rate limiting, and observability.

The TypeScript SDK v4 delivers a major upgrade to speed and developer experience:

  • Rewritten middleware — Hooks are more intuitive, less overloaded, and enable new use cases.
  • Better schemas — Runtime event data validation with Standard Schema support (not just Zod!).
  • Faster by default — Parallel step optimization and checkpointing are both enabled by default, leading to fewer requests and lower latency.
  • Improved logging — Structured logging (Pino-style) and cleaner separation of internal vs. app logs.
  • Cleaner API — Triggers in the options object, lazy init for edge runtimes, and more compile-time safety.

Installing

shell
npm install inngest
shell
pnpm add inngest
shell
yarn add inngest

Build with v4

Start with the client setup and function creation references, then use the v4 feature docs that match your application:

Source code

Our TypeScript SDK and its related packages are open source and available on Github: inngest/inngest-js.

Official libraries

  • inngest - the Inngest SDK
  • @inngest/eslint-plugin - specific ESLint rules for Inngest
  • @inngest/middleware-encryption - middleware providing E2E encryption

Examples

Frameworks

  • Astro
  • Bun.serve()
  • Fastify
  • Koa
  • NestJS
  • Next.js (app router)
  • Next.js (pages router)
  • Nuxt
  • Remix
  • SvelteKit

Middleware

  • E2E Encryption

Community libraries

Explore our collection of community-created libraries, offering unofficial but valuable extensions and integrations to enhance Inngest's functionality with various frameworks and systems.

Want to be added to the list? Contact us!

  • nest-inngest - strongly typed Inngest module for NestJS projects
  • nuxt-inngest - Inngest integration for Nuxt