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

@formancy/server

v0.12.0

Published

The self-hostable formancy backend: Fastify routes and Postgres storage over @formancy/server-core.

Readme

@formancy/server

The self-hostable formancy backend: Fastify routes and Postgres storage over @formancy/server-core.

docker compose up -d     # Postgres on :5439
DATABASE_URL=… FORMANCY_AUTH_SECRET=… pnpm --filter @formancy/server dev

Two load-bearing decisions

Invariants live in the database, because application code can be bypassed. A published form_versions row can never be updated — a trigger raises instead — and a submission's foreign key to its version is ON DELETE RESTRICT, so orphaning a submission from the schema that produced it is structurally impossible. Both are proven by integration tests that try to break them against a real Postgres.

Two planes, split on purpose. The public plane (resolve, submit, drafts) needs no identity, because that is what a person filling in a form needs. The management plane (publish, catalog, submissions, export, users, keys) requires a session token or an API key. 401 means you have no identity; 403 means you have one that lacks the permission.

Tests

Integration tests run against a disposable Postgres via Testcontainers rather than mocks — versioning and submission bugs only manifest under real SQL semantics. Docker must be running.

Status

Beta. Has authentication, role-based authorization, per-IP rate limiting, a per-form origin allowlist, a request body cap, file uploads, drafts that carry their own key, audit logging, an opt-in proof-of-work challenge, and a token every form is handed out with, so that a response sent twice is stored once — an anonymous submission sends it back in X-Formancy-Submission-Token. Behind a reverse proxy the rate limits count the proxy unless FORMANCY_TRUST_PROXY names it; behind several replicas they count once, in the database the replicas share. Evaluate it; do not expose it publicly.

Docs: apps/docs (Quickstart: self-hosting) for the full endpoint walk-through.