workflow automation10 minutes

Get Started with Inngest

Unverified

Quick Summary

Durable background jobs and workflows for serverless, with zero infra.

Best for: Background jobs for serverless/Next.js
Time to first integration: 10 minutes

📋Prerequisites

  • Node.js 18+ installed
  • A Inngest account — sign up here
  • An existing project (Next.js, React, or Node.js recommended)

Setup Steps

4 steps
1

Install

Add the Inngest SDK to your project.

bash
npm install inngest
2

Create a client

Initialize the Inngest client with a unique app ID.

typescript
import { Inngest } from 'inngest' export const inngest = new Inngest({ id: 'my-app' })
3

Define a function

Create a function triggered by an event.

typescript
export const myFunction = inngest.createFunction( { id: 'my-function' }, { event: 'app/user.created' }, async ({ event }) => { /* ... */ } )
4

Serve

Mount the serve handler and register your functions.

typescript
// app/api/inngest/route.ts import { serve } from 'inngest/next' export const { GET, POST, PUT } = serve({ client: inngest, functions: [myFunction] })

Links