Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inngest

Package Overview
Dependencies
Maintainers
2
Versions
561
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inngest

Official SDK for Inngest.com

  • 0.4.0-beta.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
75K
decreased by-2.43%
Maintainers
2
Weekly downloads
 
Created
Source

inngest-node

npm install inngest

👋 Have a question or feature request? Join our Discord!

Usage

// ES Modules / TypeScript
import { Inngest } from "inngest";
// or CommonJS
const { Inngest } = require("inngest");

const inngest = new Inngest(process.env.INNGEST_SOURCE_API_KEY);

// Send a single event
await inngest.send({
  name: "user.signup",
  data: {
    plan: account.planType,
  },
  user: {
    external_id: user.id,
    email: user.email,
  },
});

// Send events in bulk
const events = ["+12125551234", "+13135555678"].map(phoneNumber => ({
  name: "sms.response.requested",
  data: {
    message: "Are you available for work today? (y/n)"
  },
  user: {
    phone: phoneNumber
  }
}});
await inngest.send(events);

Contributing

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.

FAQs

Package last updated on 20 Sep 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc