Actions
Business operations that can be called from HTTP, CLI, workflows or other actions.
PostgreSQL-backed backend primitives for software that needs more than request-response, without adding a distributed systems stack before it is necessary.
Install the Bun host:
bun add @chimpbase/bunStart with PostgreSQL:
import { createChimpbase } from "@chimpbase/bun";
const chimpbase = await createChimpbase({
storage: { engine: "postgres", url: process.env.DATABASE_URL! },
});Register actions, workers, subscriptions and cron jobs:
chimpbase.register({ createCustomer });
chimpbase.register(
worker("customer.sync", syncCustomer),
cron("billing.rollup", "0 * * * *", runBillingRollup),
);Then start the runtime:
await chimpbase.start();Chimpbase uses PostgreSQL as both your application database and your coordination layer:
SQLite and in-memory storage are available for local development and tests.