
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
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.
Inngest is a JavaScript library designed to simplify the process of building event-driven applications. It provides tools for creating, managing, and executing serverless functions in response to events, making it easier to build scalable and efficient applications.
Event Creation
This feature allows you to create events that can be used to trigger functions. The code sample demonstrates how to create a new event with a specific name and data payload.
const { Inngest } = require('inngest');
const inngest = new Inngest({ name: 'My App' });
const event = inngest.createEvent({
name: 'user.signup',
data: { userId: '12345' }
});
Function Registration
This feature allows you to register functions that will be executed in response to specific events. The code sample shows how to register a function that sends a welcome email when a 'user.signup' event occurs.
const { Inngest } = require('inngest');
const inngest = new Inngest({ name: 'My App' });
inngest.registerFunction('Send Welcome Email', 'user.signup', async (event) => {
console.log(`Sending welcome email to user ${event.data.userId}`);
});
Event Handling
This feature allows you to define how events are handled when they occur. The code sample demonstrates how to handle a 'user.signup' event by logging a message.
const { Inngest } = require('inngest');
const inngest = new Inngest({ name: 'My App' });
inngest.handleEvent('user.signup', async (event) => {
console.log(`Handling signup for user ${event.data.userId}`);
});
The AWS SDK for JavaScript provides a comprehensive set of tools for interacting with AWS services, including Lambda for serverless functions. While it offers more extensive cloud service integration, it requires more setup and configuration compared to the simplicity of Inngest.
The Serverless Framework is a popular tool for building and deploying serverless applications. It provides a robust ecosystem for managing serverless functions across various cloud providers. Compared to Inngest, it offers more deployment and infrastructure management features but may have a steeper learning curve.
Firebase Functions is a serverless framework for building event-driven applications on Google Cloud. It integrates seamlessly with other Firebase services, making it a good choice for applications already using Firebase. Inngest, on the other hand, is more focused on event handling and function execution without being tied to a specific cloud provider.
Inngest is the reliability layer for modern applications. It combines durable execution, events, and queues into a zero-infra platform with built-in observability.
Inngest enables serverless event-driven queues, background jobs, and scheduled jobs for TypeScript. Works with any framework and platform.
Read the documentation and get started in minutes.
On any serverless platform (Next.js, Deno Deploy, RedwoodJS, AWS Lambda, and anything else) and with no extra infrastructure:
👋 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({ id: "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(
{ id: "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({ id: "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({ id: "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" },
});
Check out CONTRIBUTING.md
to get started.
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 123,074 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.