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

@fysio-work/sdk

v0.0.4

Published

fysio.work SDK — the kit every module on the fysio.work clinic platform is built with. Early access: createModule v0 is a preview, tested against a fake core.

Readme

@fysio-work/sdk

The kit every module on fysio.work — the platform for physiotherapy clinics — is built with. Our own modules, our partners' and yours.

Early access · preview. createModule v0 exists and is tested against a fake core. The real platform core is not live yet, so do not run a module in production on this.

Your first module in 30 minutes

npx @fysio-work/sdk init mit-modul
cd mit-modul
npm install
npm run dev     # runs the module against a local sandbox and prints ready-made calls

Step by step, in Danish: docs/first-module.md. Every step of that guide is run by this repo's tests.

What is here

| Part | Where | |---|---| | Contracts as machine-readable specs | spec/ — runtime.json, manifest.schema.json (JSON Schema), module.openapi.json + core.openapi.json (OpenAPI 3.1), events.asyncapi.json (AsyncAPI 3) | | Generated TS (Zod schemas + core client) | src/generated/ — never edit by hand; npm run generate | | createModule v0 on Hono | src/module.ts | | fysio-work init <folder> | a new module from templates/module/ (manifest, createModule, GDPR, tests, CI, AGENTS.md for AI coding tools) | | fysio-work check [folder] [--json] | refuses: own server instead of createModule (own-server, no-create-module), a missing or invalid fysio-work.manifest.json (manifest-missing, manifest-invalid). Exit code 1 on any finding | | Local sandbox | @fysio-work/sdk/sandbox — a fake core in the same process (runSandbox, createSandbox). Never part of the module runtime |

Each core operation in core.openapi.json names the permission it needs (x-fysio-permission, generated into CORE_OPERATIONS); the generator refuses an operation without one.

Strict on input, tolerant on responses. An unknown field in a call to core or to a module is a 400 unknown_field — never silently stripped. An unknown field in a response is ignored, so core can add fields without breaking older modules.

A module

import { z } from "zod";
import { createModule, strictBody } from "@fysio-work/sdk";

const mod = createModule({
  manifest, // validated against spec/manifest.schema.json — the module does not start if it is invalid
  tickets,  // verifies the ticket on each call; { issuer: core's issuer, verify }
  gdpr: { exportPatient: async (id, ctx) => ({ /* … */ }), deletePatient: async (id, ctx) => {} },
});

mod.app.post("/notes", strictBody(z.object({ text: z.string() })), async (c) => {
  c.var.log.info("note.created", {});           // allowlist logging, never free text
  await c.var.core?.appendAuditEntry({ action: "note.created", outcome: "confirmed" });
  return c.json({ ok: true }, 201);
});

await mod.start(); // SIGTERM: stop new calls, finish the rest within 30 s, close

createModule sets up: ticket check (iss = core, aud = module:<your id>, org = the x-fysio-organization-id header, data_scope not none), organization context, trace id, allowlist logging (CPR filter as last guard), /health, the GDPR endpoints core calls, a readable Danish error on failure, and graceful shutdown.

It is developer help, not a security boundary. Everything here runs inside the module's container. Organization isolation, the audit log and outbound network control are enforced by core, Postgres and the network.

Not in v0 (waits on platform decisions)

  • The ticket bridge between the shell and a module backend, and which ticket a module presents to core (open decisions #1 and #3). tickets and core.ticketFor are injected until then.
  • A real ticket verifier against BID's JWKS.
  • Error reporting, per-organization limits, signed migrations.

Develop

npm ci
npm run generate   # after changing spec/
npm run typecheck
npm test           # tests + mutation guard (every mutation must turn the suite red)

License

MIT · broberg.ai, a division of WebHouse ApS