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

create-raft-app

v0.2.0

Published

Create Raft-native apps with Agent Login, OpenAPI, docs, and Cloudflare Workers templates.

Readme

create-raft-app

Create Raft-native apps from maintained templates.

The default template is hono-react-cfworker: a Cloudflare Worker API using Hono, a React admin frontend, generated OpenAPI, public docs, AGENTS.md, and Raft/Agent Login integration points. The package also includes the base third-party app templates from raft-app-templates for smaller Login with Raft, local CLI, HTTP action, OAuth action, and dual human/agent starters.

Usage

Requires Node.js 20.19 or newer, or Node.js 22.12 or newer.

Start the interactive scaffold:

npm create raft-app@latest my-raft-app

The interactive prompt lists every packaged template. Press Enter at the template prompt to use the default hono-react-cfworker template, or choose by number/name.

List templates without scaffolding:

npm create raft-app@latest -- --list-templates

List templates as stable JSON for agents:

npm create raft-app@latest -- --list-templates --json

Pass a template explicitly:

npm create raft-app@latest my-raft-app -- --template hono-react-cfworker

For non-interactive scaffolding:

npm create raft-app@latest my-raft-app -- --template hono-react-cfworker --yes

For non-interactive scaffolding with a machine-readable handoff:

npm create raft-app@latest my-raft-app -- --template hosted-dual-human-agent-app --yes --no-install --json

The JSON result includes the selected template, target directory, generated agent handoff files, required environment keys, callback or manifest URLs, and registration notes. When --json is used, stdout is reserved for the JSON payload so agents can parse it directly.

Local development from this repo:

node bin/create-raft-app.mjs my-raft-app --template hono-react-cfworker --no-install

To inspect the CLI options:

npm create raft-app@latest -- --help

Templates

Use hono-react-cfworker for a full production-oriented Cloudflare Worker app. The other templates are smaller starting points for one integration shape. They preserve the same Raft template descriptor/conformance contract, but are not all Cloudflare Worker apps.

| Name | Stack | Use | |---|---|---| | hono-react-cfworker | Hono Worker + React + Cloudflare Workers | Raft-native operational apps with browser console, Agent Login, OpenAPI, docs, and agent CLI conventions. | | pure-sign-in-web-app | Express + Login with Raft | User sign-in and userinfo/session only; no message access, actions, or agent-facing payloads. | | local-cli-wrapper | Node local CLI wrapper | Isolate HOME/XDG state and service-owned credential handoff for a local third-party CLI. | | hosted-http-action-service | Express HTTP action service | Manifest-declared hosted actions with public action envelopes and structured errors. | | oauth-http-action-service | Express OAuth + action service | Login with Raft plus service-local agent session and HTTP action endpoint. | | hosted-dual-human-agent-app | Express hosted dual app | Browser human login and direct agent callback sessions in one hosted service. |

Examples:

npm create raft-app@latest sign-in-demo -- --template pure-sign-in-web-app
npm create raft-app@latest cli-wrapper-demo -- --template local-cli-wrapper
npm create raft-app@latest action-demo -- --template hosted-http-action-service
npm create raft-app@latest oauth-action-demo -- --template oauth-http-action-service
npm create raft-app@latest dual-app-demo -- --template hosted-dual-human-agent-app

Generated app

The default hono-react-cfworker project contains:

  • worker/ — Hono Worker API, Raft Agent Login manifest, /api/auth/me, generated /openapi.json, /api-docs, and D1/R2/Queue bindings.
  • admin/ — Vite + React admin shell.
  • docs/public/ — public Markdown docs rendered into admin/public/docs.
  • AGENTS.md — repository entry point for AI agents.
  • .github/workflows/ci.yml — build validation for PRs.

The template is a starting point. Protected API routes intentionally fail closed until the app implements real Raft OAuth exchange, HttpOnly browser sessions, and agent Bearer-token verification. Fill in those auth paths and product domain routes before using a generated app in production.

The smaller Express/Node templates include their own README files after scaffolding. Read the generated README before registering or deploying the app: each template has different callback URLs, environment variables, and production hardening notes.

Publishing

The package is published as create-raft-app on npm. Publishing is handled by the manual GitHub Actions workflow .github/workflows/publish-npm.yml.

Before publishing a new version:

  1. Update package.json.
  2. Run npm test.
  3. Run the Publish npm package workflow with dry_run=true and the expected version.
  4. Re-run the same workflow with dry_run=false after the dry run passes.

The publish workflow uses npm trusted publishing through GitHub Actions OIDC, so it does not require a long-lived npm token secret.