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

@dicabrio/durable

v0.4.4

Published

Durable execution engine CLI with local embedded mode and separate production serve, worker, scheduler and migrate entrypoints.

Readme

@dicabrio/durable

Durable execution engine CLI.

Local development

npx @dicabrio/durable
# equivalent: durable dev
# embedded PostgreSQL + API + scheduler + workers + dashboard on :3030

The first run downloads PostgreSQL into ~/.durable/pgdata. Dev workspaces are reset on each start, then Durable discovers DURABLE_DEV_APP_URL (default http://localhost:3000/api/durable), retrying until it is available. This mode is for local development, not production HA.

Production entrypoints

All production commands require an external DATABASE_URL:

durable migrate
durable serve
durable worker
durable scheduler

| Command | Responsibility | Health | |---|---|---| | serve | API, dashboard, realtime and Prometheus | /live, /ready, /metrics on PORT | | worker | callback execution and batch queue claims | /live, /ready, /metrics on DURABLE_HEALTH_PORT (3031) | | scheduler | timers, cron, retention and failure delivery | /live, /ready, /metrics on DURABLE_HEALTH_PORT (3032) | | migrate | advisory-locked migrations, then exit | process exit code |

Workers use PostgreSQL LISTEN/NOTIFY for low-latency wakeups with polling as the durable fallback. Unconstrained jobs use lock-free SKIP LOCKED batch claims; constrained jobs keep exact multi-rule gating. Short hot continuation chains reuse their queue row but acquire a fresh fenced lease for every callback. All long-running processes drain on SIGTERM.

| Variable | Default | Purpose | |---|---:|---| | PORT | 3030 | serve/dashboard port | | DURABLE_PG_PORT | 5434 | embedded dev PostgreSQL port | | DURABLE_PG_DIR | ~/.durable/pgdata | embedded dev data directory | | DURABLE_DEV_APP_URL | http://localhost:3000/api/durable | local endpoint to discover | | DURABLE_WORKERS | 4 worker / 2 dev | callback slots | | DURABLE_HEALTH_PORT | process-specific | worker/scheduler probes | | DURABLE_MAX_ATTEMPTS | 3 | total attempts when no function override exists | | DURABLE_CALLBACK_TIMEOUT_MS | 30000 | app callback timeout | | DURABLE_MANIFEST_TIMEOUT_MS | 10000 | pull-registration timeout | | DURABLE_MAX_BODY_BYTES | 1048576 | API and cumulative invocation limit | | DURABLE_MAX_RESPONSE_BYTES | 1048576 | callback/manifest response limit | | DURABLE_ADMIN_TOKEN | required in production | dashboard/admin authentication | | DURABLE_METRICS_TOKEN | unset | optional Bearer token for /metrics | | DURABLE_RETENTION_COMPLETED_DAYS | 0 | completed retention; zero disables automatic deletion | | DURABLE_RETENTION_FAILED_DAYS | 0 | failed retention; zero disables automatic deletion | | DURABLE_RETENTION_CANCELLED_DAYS | 0 | cancelled retention; zero disables automatic deletion |

Self-hosted operators remain responsible for PostgreSQL HA/PITR, backup restore drills, load balancing, scaling, secrets/TLS, monitoring and controlled upgrades. See the repository DEPLOY.md and ops/prometheus-alerts.yml.