Run code when things happen.
Trigora is a code-first runtime for event-driven backend work.
Define flows in TypeScript, run them locally with real events, and deploy the same handler globally.
Hosted deploy is currently in private alpha.
Request access: https://trigora.dev
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 };
},
});Initialize a project:
npx trigora initRun locally:
npx trigora devIf your project contains multiple flows, pass the flow name explicitly:
npx trigora dev helloSend a request:
curl -X POST http://localhost:5252 \
-H "Content-Type: application/json" \
-d '{"message":"Hello from Trigora"}'Deploy:
npx trigora deploy helloFull documentation, guides, examples, and API reference:
- Docs: https://trigora.dev/docs
- Getting Started: https://trigora.dev/docs/getting-started
- Production Workflow: https://trigora.dev/docs/examples/production-workflow
- CLI Reference: https://trigora.dev/docs/reference/cli
- API Reference: https://trigora.dev/docs/reference/api
CLI for:
- local development
- hosted deploys
- flow management
- logs and secrets
SDK for defining flows with defineFlow().
Shared public contracts and types.
This repository contains:
- CLI
- SDK
- Contracts
- examples
MIT