Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Serverless event-driven queues, background jobs, and scheduled jobs for Typescript.
Works with any framework and platform.
Inngest allows you to:
๐ Have a question or feature request? Join our Discord!
Getting started ยท Features ยท Contributing ยท Documentation
Install Inngest:
npm install inngest # or yarn add inngest
Write serverless functions and background jobs right in your own code:
import { Inngest } from "inngest";
const inngest = new Inngest({ name: "My App" });
// This function will be invoked by Inngest via HTTP any time
// the "app/user.signup" event is sent to to Inngest
export default inngest.createFunction(
{ name: "User onboarding communication" },
{ event: "app/user.signup" },
async ({ event, step }) => {
await step.run("Send welcome email", async () => {
await sendEmail({
email: event.data.email,
template: "welcome",
});
});
}
);
Inngest invokes functions via HTTP, so you need to serve them using an adapter for the framework of your choice. See all frameworks here in our docs. Here is an example using the Next.js serve handler:
// /pages/api/inngest.ts
import { Inngest } from "inngest";
// See the "inngest/next" adapter imported here:
import { serve } from "inngest/next";
import myFunction from "../userOnboardingCOmmunication"; // see above function
// You can create this in a single file and import where it's needed
const inngest = new Inngest({ name: "My App" });
// Securely serve your Inngest functions for remote invocation:
export default serve(inngest, [myFunction]);
// Send events
import { Inngest } from "inngest";
const inngest = new Inngest({ name: "My App" });
// This will run the function above automatically, in the background
inngest.send("app/user.signup", {
data: { email: "text@example.com", user_id: "12345" },
});
Clone the repository, then:
yarn # install dependencies
yarn dev # build/lint/test
We use Volta to manage Node/Yarn versions.
When making a pull request, make sure to commit the changed
etc/inngest.api.md
file; this is a generated types/docs file that will highlight changes to the exposed API.
npm|yarn link
)In order to provide sensible namespaced imports such as "inngest/next"
, the package actually builds to and deploys from dist/
.
To replicate this locally to test changes with other local repos, you can link the project like so (replace npm
for yarn
if desired):
# in this repo
yarn build
yarn prelink
cd dist/
yarn link
# in another repo
yarn link inngest
FAQs
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.
The npm package inngest receives a total of 61,908 weekly downloads. As such, inngest popularity was classified as popular.
We found that inngest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socketโs threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.