webhookHooks to fire Inngest events the moment something happens in a connected service. Inngest handles retries, step execution, and scheduling — Corsair handles the webhook plumbing.
Install
Event trigger
Fire an Inngest function whenever a Linear issue is created. Usebefore to skip issues without an assignee, and after to dispatch the event. The Inngest function then sends a Slack DM to whoever was assigned.
corsair.ts
inngest/functions.ts
Workflow
When a GitHub PR is opened, kick off a multi-step Inngest workflow that generates an AI code review, posts it as a comment, then notifies Slack. Each step is retried independently on failure.corsair.ts
inngest/functions.ts
Cron job
Every Monday at 9 AM, pull open Linear issues from Corsair’s local database and post a sprint digest to Slack. No webhook needed — this runs on a schedule.inngest/functions.ts
corsair.linear.db.issues.list() queries your local synced database — it’s fast and doesn’t count against Linear’s API rate limits.What’s next
Workflows guide
Chain webhook events into multi-step automations with plain TypeScript.
Temporal
Use Temporal workflows and activities with Corsair.
Trigger.dev
Background tasks and scheduled jobs with Trigger.dev.
Hatchet
Durable workflows with Hatchet and Corsair webhooks.