Skip to content
@trigora-dev

Trigora

Event-driven automation for developers.

Trigora

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

Install

npm install trigora @trigora/sdk

If installed locally, run commands with npx trigora.

Quick example

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 };
  },
});

Quick start

Initialize a project:

npx trigora init

Run locally:

npx trigora dev

If your project contains multiple flows, pass the flow name explicitly:

npx trigora dev hello

Send a request:

curl -X POST http://localhost:5252 \
  -H "Content-Type: application/json" \
  -d '{"message":"Hello from Trigora"}'

Deploy:

npx trigora deploy hello

Documentation

Full documentation, guides, examples, and API reference:

Packages

trigora

CLI for:

  • local development
  • hosted deploys
  • flow management
  • logs and secrets

@trigora/sdk

SDK for defining flows with defineFlow().

@trigora/contracts

Shared public contracts and types.

Repository

This repository contains:

  • CLI
  • SDK
  • Contracts
  • examples

License

MIT

Pinned Loading

  1. trigora trigora Public

    Run code when things happen.

    TypeScript 3

Repositories

Showing 2 of 2 repositories

Top languages

Loading…

Most used topics

Loading…