049f5c56e3cd8f88114174475c9ba4e0a71d822a
- Introduced compileWorkflowScripts function to parse and validate workflow scripts, supporting both linear and DAG execution modes. - Added runLinearSteps and runDagSteps functions for executing compiled workflows based on their structure. - Updated createRegistry function to utilize the new workflow compilation and execution logic. - Enhanced script sandbox with meta extraction and instantiation capabilities for better script management. - Improved API endpoints to return script metadata and handle errors more effectively. - Removed deprecated scripts and updated workflows to reflect new structure and functionality.
scrunner
Workflow runner with a sandboxed script engine, SQLite run history, and an admin UI.
Packages
packages/server— Fastify runner, HTTP/cron triggers, admin REST APIpackages/web— React admin UI (Vite, DaisyUI, React Query)
Setup
pnpm install
pnpm dev
- API: http://localhost:9000
- UI (dev): http://localhost:5173
The first account created becomes admin. Later accounts are created from Users.
Scripts
| Command | Description |
|---|---|
pnpm dev |
Server + Vite together |
pnpm dev:server |
API/runner only |
pnpm dev:web |
UI only (proxies /api to :9000) |
pnpm build |
Production UI build |
pnpm start |
Serve API and built UI from :9000 |
pnpm migrate |
Apply SQLite migrations |
Environment
| Variable | Default | Notes |
|---|---|---|
SCRUNNER_JWT_SECRET |
scrunner-dev-secret (dev only) |
Required in production |
SCRUNNER_DB_PATH |
packages/server/data/scrunner.db |
SQLite file |
SCRUNNER_LOG_LEVEL |
debug |
Pino level |
SCRUNNER_RETENTION_DAYS |
30 |
Run history prune |
SCRUNNER_CORS_ORIGIN |
http://localhost:5173 |
Vite origin in dev |
PORT |
9000 |
HTTP port |
NODE_ENV |
— | Set production for secure cookies |
Production
pnpm install
pnpm build
SCRUNNER_JWT_SECRET=... NODE_ENV=production pnpm start
The server serves packages/web/dist when that folder exists.
Languages
JavaScript
99.9%