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

@fastyoke/cli

v0.2.0

Published

CLI for scaffolding, building, and publishing FastYoke extensions

Readme

@fastyoke/cli

Scaffold, build, and publish FastYoke extensions.

Install

npm install -g @fastyoke/cli

Commands

fy init [name]

Scaffolds a new extension project in ./<name>. Omit name to initialize the current directory.

fy init my-extension
cd my-extension
npm install

fy dev

Builds the extension in watch mode. Rebuilds on file changes.

fy dev

fy build

One-shot build to dist/bundle.mjs. Uses esbuild with the FastYoke-required externals (react, react/jsx-runtime, react-dom, @fastyoke/sdk) so the host app supplies them at runtime.

fy build

Templates

fy init supports two templates via --template <kind>:

  • extension (default) — a FastYoke extension built against @fastyoke/sdk, driven by fy dev / fy build / fy publish.
  • nextjs — a standalone Next.js (App Router, TypeScript, Tailwind) consumer app pre-wired against a tenant's public form-submission and signed-URL PDF download endpoints. Driven by npm run dev / npm run build directly; fy lifecycle commands do not wrap it.

fy init <name> --template nextjs quickstart

fy init my-app --template nextjs
cd my-app
cp .env.local.example .env.local      # set FASTYOKE_TENANT_URL
npm install
npm run dev

Visit http://localhost:3000/forms/<token>, where <token> is the public submission token your tenant admin published for the form. The route uses the token (not the form's slug) — keep the token opaque.

Customize:

  • src/app/forms/[token]/page.tsx — server-side schema fetch.
  • src/app/forms/[token]/FormView.tsx — schema-driven renderer.
  • src/lib/form-actions.ts — submit server action.

The starter renderer covers text / email / textarea / checkbox / signature field types. Extend FormView.tsx for the field types your forms use.

fy publish --tenant <url> --token <jwt>

Uploads manifest.json + dist/bundle.mjs to a running FastYoke instance. --token is a tenant admin JWT — the CLI decodes its tenant_id claim to populate the multipart request.

fy publish --tenant https://my-tenant.fastyoke.example.com --token "$FASTYOKE_TOKEN"

| Flag | Required | Description | |------|----------|-------------| | --tenant <url> | yes | Base URL of the FastYoke instance, e.g. https://app.fastyoke.example.com | | --token <jwt> | yes | Tenant admin JWT. tenant_id is read from the token's claims. | | --manifest <path> | no | Defaults to ./manifest.json | | --bundle <path> | no | Defaults to ./dist/bundle.mjs |

Run fy build before publishing if you've made changes.

Extension shape

fy init produces this layout:

my-extension/
├── package.json     # scripts + devDependencies only; host provides react at runtime
├── tsconfig.json
├── manifest.json    # id, version, components, pages, required_scopes
├── src/
│   └── index.tsx    # default export: { components?, pages? }
└── dist/            # generated by `fy build`
    └── bundle.mjs

The bundle's default export is what the host's <ExtensionProvider> imports and registers. See the examples/hello-fastyoke reference extension in the FastYoke repo for a working example.