npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@boardwalk-labs/engine

v0.3.5

Published

The Boardwalk single-node engine: cron scheduling, run lifecycle, SQLite state, and the local run log. Powers the self-hosted server and embedding hosts.

Downloads

2,703

Readme

boardwalk

The control plane for agent workflows, open source. A Boardwalk workflow is a typed TypeScript function — export default async function run(input, context) — plus a small workflow.jsonc descriptor: schedule it, call LLM agents from it, sleep durably, compose workflows out of workflows. Any trigger, any model, on infrastructure you own. Audit everything, self-host it, leave anytime.

This repo is the engine that runs those workflows: the open-source, single-node core with cron scheduling, durable run semantics, SQLite run history, and a local run log, on hardware you own with no account. Same engine and same run semantics as the hosted Boardwalk platform; this is the part you run yourself.

Status: pre-1.0. Published and usable today — the engine ships as @boardwalk-labs/engine and the ghcr.io/boardwalk-labs/boardwalk Docker image. The contracts it implements are stable (see @boardwalk-labs/workflow); APIs may still change before 1.0, and changes ship as patch releases (see CHANGELOG.md). See SPEC.md for the architecture.

What it is

The engine runs a workflow two ways:

  • Server modedocker run ghcr.io/boardwalk-labs/boardwalk: a long-lived process that schedules cron workflows, accepts webhooks, keeps run history in SQLite, and serves a local run log.
  • Embedded mode@boardwalk-labs/engine as a library: one run, in-process supervision, for hosts that embed the engine in their own process.

Same engine, same semantics as the Boardwalk platform: one run = one process, sleep holds the process, a crash restarts the run from the top, workflows.call re-attaches idempotently. The conformance suite in this repo tests that parity.

Reach for it when you want to run an AI agent on a schedule ("check the news every day at 9am"), respond to webhooks with an agent, or keep a background agent loop working toward a goal, without hand-rolling cron plus a script plus retry logic. The examples repo has copyable templates for each of those shapes.

Quickstart

Run the server with Docker — run history and state live in the mounted data dir:

docker run -v ./data:/data -p 8080:8080 ghcr.io/boardwalk-labs/boardwalk

Then open http://localhost:8080 for the run log, or hit the JSON API (/api/workflows, /api/runs). Webhook triggers land on /hooks/<name>, where <name> is the webhook the descriptor attaches to.

Deploying a workflow

A workflow deploys as a package directory in the engine's workflows directory — deployed on boot (re-synced every boot; idempotent by slug, and an unchanged package doesn't bump the workflow's version):

data/workflows/my-routine/
  workflow.jsonc     # the descriptor: slug, triggers, permissions, budget
  index.mjs          # the built entry, default-exporting run() (what `boardwalk build` emits)
  skills/            # optional — per-agent skills, deployed wholesale
  AGENTS.md          # optional — standing instructions every agent() reads

boardwalk build emits that package as a .tgz, so deploying is build-then-unpack into a directory named for the workflow:

npx @boardwalk-labs/cli build ./my-routine --out my-routine.tgz
mkdir -p data/workflows/my-routine
tar xzf my-routine.tgz -C data/workflows/my-routine
docker run -v ./data:/data -p 8080:8080 ghcr.io/boardwalk-labs/boardwalk

The default workflows directory is <data-dir>/workflows (/data/workflows in Docker); override it with BOARDWALK_WORKFLOWS_DIR. The entry is single-file built JavaScript with @boardwalk-labs/workflow left external; the descriptor names another entry file via entry if you don't use index.mjs. From there the descriptor's triggers take over: cron fires on schedule, POST /api/workflows/<slug>/runs triggers a manual run, and webhooks land on /hooks/<name> — every workflow attached to that name runs on the delivery.

Configuration

All configuration is environment variables (a boardwalk.toml file is deferred — see SPEC.md §2.4):

| Variable | Default | What it does | | ------------------------- | ------------------------------------------ | -------------------------------------------------------------------------------------------- | | BOARDWALK_DATA_DIR | /data in Docker, else ./boardwalk-data | Where everything lives: SQLite DB, run dirs, artifacts | | BOARDWALK_WORKFLOWS_DIR | <data-dir>/workflows | Directory of unpacked workflow packages deployed on boot | | BOARDWALK_HOST | 127.0.0.1 (0.0.0.0 in Docker) | Bind address — this surface has no auth beyond webhook auth, so binding wider logs a warning | | BOARDWALK_PORT | 8080 | Listen port (0 picks a free port) | | BOARDWALK_DEFAULT_MODEL | — | Model used when agent() omits one, e.g. anthropic/claude-sonnet-4-5 | | BOARDWALK_PROVIDERS | — | JSON provider table, e.g. {"ollama":{"base_url":"http://localhost:11434/v1"}} | | BOARDWALK_ENV_FILE | <data-dir>/.env, if it exists | .env file backing secrets.get and provider API keys | | BOARDWALK_API_KEY | — | Boardwalk org key; makes the default boardwalk managed-inference lane work | | BOARDWALK_INFERENCE_URL | api.boardwalk.sh | Override the managed-inference gateway |

Provider API keys come from the environment (ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY for the built-ins; api_key_env names the variable for custom providers). With none of them set, agent() fails with MODEL_UNRESOLVED — set BOARDWALK_API_KEY for managed inference, or name a provider explicitly.

Webhook triggers authenticate against a per-workflow server variable (<NAME> = the slug upper-cased, -_); an unset one fails closed with a 503 naming the exact variable:

| Trigger auth | Variable | Checked against | | -------------- | ---------------------------------- | ------------------------------------------------------- | | "token" | BOARDWALK_WEBHOOK_TOKEN__<NAME> | Authorization: Bearer <token> (constant-time) | | "signature" | BOARDWALK_WEBHOOK_SECRET__<NAME> | X-Boardwalk-Signature: sha256=<hex> over the raw body |

Embedded mode

The same engine as a library — construct, run, close, all in your own process:

import { Engine } from "@boardwalk-labs/engine";

const engine = new Engine({ dataDir: "./boardwalk-data" });
const run = await engine.runOnce({
  descriptor: `{ "slug": "hello", "triggers": [{ "kind": "manual" }] }`,
  program: `export default async function run(input) { return { got: input }; }`,
  input: { n: 7 },
});
console.log(run.status, run.output);
engine.close();

engine.deployWorkflowDir(dir) deploys an on-disk package directory (the same shape the workflows directory holds).

For OAuth-protected MCP servers an agent() call connects to, engine.authorizeMcpServer(url, { onAuthorizationUrl }) performs the one-time interactive grant; after that, runs use (and silently refresh) the stored token headlessly — see SPEC.md §2.3.

The Boardwalk repos

  • sdk-typescript@boardwalk-labs/workflow, the TypeScript API a workflow program imports.
  • cliboardwalk: scaffold, validate, deploy, run.
  • examples — copyable workflow templates (boardwalk init --template).
  • plugins — coding-agent skills (Claude Code, Codex, Cursor, OpenClaw, OpenCode) + a control-plane MCP server.
  • runner — self-hosted runner: your machines execute hosted-scheduled runs.
  • runner-images — reproducible base images hosted runners execute in.

Hosted platform and docs: boardwalk.sh.

License

Apache-2.0 — see LICENSE.