calcron

package module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Calcron

Durable scheduler and workflow engine. Requires PostgreSQL and CALCRON_ADMIN_TOKEN.

cp .env.example .env   # fill in secrets
docker compose up -d --build

Compose serves Calcron through Traefik on the external proxy network. Open the host from the Traefik router rule for the admin dashboard. Apps connect to wss://<host>/ws.

Application SDKs

Use the Node/TypeScript or Go client through the SDK guide. It explains the command surface, delivery semantics, idempotency, and complete examples.

Admin dashboard

React + TypeScript + Tailwind/DaisyUI, built with Vite and embedded in the Go binary.

cd web
npm install
npm run build     # writes internal/server/dashboard/dist
cd .. && go build ./cmd/calcron

npm run dev serves the dashboard with the WebSocket proxied to a local Calcron on :8080.

Admin first sends {"op":"auth","token":"..."}, then app.create. It returns a one-time cc_<id>_<secret> application token.

Application commands: schedule.set, schedule.cancel, schedule.extend, schedule.throttle, delivery.ack, workflow.start, signal, callback.set.

Admin commands: workflow.publish, calendar.set, calendar.next, calendar.occurrences, start-schedule.set, dashboard.stats, dashboard.list, delivery.replay, delivery.cancel, app.token.rotate, app.token.revoke.

Rotation creates an additional application token. Revoke old token only after every application instance uses replacement token.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InitialMigration string

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
calcron command
internal
application
Package application owns application identity and token lifecycle.
Package application owns application identity and token lifecycle.
calendar
Package calendar owns business-calendar validation and occurrence lookup.
Package calendar owns business-calendar validation and occurrence lookup.
dashboard
Package dashboard owns read-only admin projections.
Package dashboard owns read-only admin projections.
delivery
Package delivery owns durable delivery administration.
Package delivery owns durable delivery administration.
protocol
Package protocol owns the WebSocket command envelope shared by the server composition root and its domain modules.
Package protocol owns the WebSocket command envelope shared by the server composition root and its domain modules.
workflow
Package workflow owns declarative workflow validation.
Package workflow owns declarative workflow validation.
sdk
go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL