Install
Install
Payload-blind durable work scheduling and settlement core
For a published npm release:
npm install @fungi.computer/watchdogpnpm, Yarn and Bun work the same way.
Entrypoints
Section titled “Entrypoints”@fungi.computer/watchdog@fungi.computer/watchdog/effect@fungi.computer/watchdog/d1@fungi.computer/watchdog/postgres@fungi.computer/watchdog/node-sqlite
What comes with it
Section titled “What comes with it”Installing @fungi.computer/watchdog also installs @fungi.computer/cairn, effect, @cloudflare/workers-types, pg, @types/pg.
Install or set up
Section titled “Install or set up”npm install @fungi.computer/watchdogWatchdog is ESM-only. The SQLite entrypoint runs anywhere you have a synchronous
SQLite handle, such as Cloudflare Durable Object storage or node:sqlite in
Node 24. It depends on effect, pg and @cloudflare/workers-types, which npm
installs for you.
Entrypoints:
@fungi.computer/watchdog: the Promise API,Watchdog.make, and the public job types and schemas.@fungi.computer/watchdog/effect: the same runtime as Effect values, viamakeRuntime.@fungi.computer/watchdog/node-sqlite:fromNodeSqlite(database)for a caller-owned Node SQLite database. It returnsNodeSqliteOwner; itsNodeSqliteCursorprovidestoArray()andone(), which returns exactly one decoded row and throws for zero or multiple rows.@fungi.computer/watchdog/d1: a runtime over a migrated Cloudflare D1 database.@fungi.computer/watchdog/postgres: a runtime over a migrated PostgreSQL database.