Skip to main content

@inngest/sdk@3.28.0
Built and signed on GitHub Actions

Official SDK for Inngest.com. Inngest is the reliability layer for modern applications. Inngest combines durable execution, events, and queues into a zero-infra platform with built-in observability.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
70%
Published
a day ago (3.28.0)

The primary entrypoint for the Inngest SDK. This provides all the necessary exports to create, run, and trigger Inngest functions.

Typical usage involves creating a new Inngest client with Inngest, and then using the client to create functions, middleware, and other tools.

See https://www.inngest.com/docs for more information.

Examples

Create an Inngest client

const inngest = new Inngest({
  id: "my-app-id",
});

Create an Inngest function

const myFn = inngest.createFunction({
 id: "my-function",
}, {
  event: "user/created",
}, async ({ event, step }) => {
  console.log("User created:", event.data);
});

Send an event

await inngest.send({
  name: "user/created",
  data: {
    id: "123",
  },
});
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@inngest/sdk

Import symbol

import * as sdk from "@inngest/sdk";

---- OR ----

Import directly with a jsr specifier

import * as sdk from "jsr:@inngest/sdk";

Add Package

npx jsr add @inngest/sdk

Import symbol

import * as sdk from "@inngest/sdk";

Add Package

yarn dlx jsr add @inngest/sdk

Import symbol

import * as sdk from "@inngest/sdk";

Add Package

pnpm dlx jsr add @inngest/sdk

Import symbol

import * as sdk from "@inngest/sdk";

Add Package

bunx jsr add @inngest/sdk

Import symbol

import * as sdk from "@inngest/sdk";