Run code when things happen.
Trigora is a code-first runtime and hosted control plane for event-driven backend workflows.
Define flows in TypeScript, run them locally with real events, deploy them to hosted webhook and cron endpoints, and inspect invocations, logs, secrets, usage, billing, and custom domains from the dashboard.
Website: https://trigora.dev
Dashboard: https://app.trigora.dev
Docs: https://trigora.dev/docs
npm install trigora @trigora/sdkIf installed locally, run commands with npx trigora.
import { defineFlow } from '@trigora/sdk';
export default defineFlow({
id: 'hello',
trigger: { type: 'webhook' },
async run(event, ctx) {
await ctx.log.info('Received event', event.payload);
return {
ok: true,
received: event.payload,
};
},
});Initialize a project:
npx trigora initRun locally:
npx trigora dev helloSend a local request:
curl -X POST http://localhost:5252 \
-H "Content-Type: application/json" \
-d '{"message":"Hello from Trigora"}'Deploy:
npx trigora deploy helloA deployed webhook flow receives traffic at:
https://<workspace>.trigora.dev/hello
Webhook flows can also define custom routes:
trigger: { type: 'webhook', route: '/hooks/hello' }Pro and Scale workspaces can connect custom domains:
https://events.acme.com/hooks/hello
- TypeScript flow definitions with
defineFlow() - Local development with real webhook events
- Hosted webhook endpoints
- Cron-triggered flows
- Custom webhook routes
- Workspace-scoped hosted URLs
- Custom domains for Pro and Scale workspaces
- Secrets management
- Invocation history and logs
- Usage and billing dashboard
- CLI flow management
CLI for:
- local development
- hosted deploys
- flow management
- invocation inspection
- secrets
SDK for defining flows with defineFlow().
Shared public contracts and API types.
- Docs: https://trigora.dev/docs
- Getting Started: https://trigora.dev/docs/getting-started
- Deploy: https://trigora.dev/docs/guides/deploy
- Webhook Endpoints: https://trigora.dev/docs/guides/webhook-endpoints
- Custom Domains: https://trigora.dev/docs/guides/custom-domains
- CLI Reference: https://trigora.dev/docs/reference/cli
- API Reference: https://trigora.dev/docs/reference/api
This repository contains the public Trigora packages:
- CLI
- SDK
- Contracts
- Examples
The hosted control plane and runtime are deployed separately.
MIT