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-handover

v0.4.8

Published

Scaffold a new Handover client site — the white-label admin boilerplate for the Handover CMS platform

Readme

create-handover

Scaffold a new Handover client site — a white-label admin boilerplate that connects to the Handover CMS platform via API key.

Usage

Scaffold a new project

pnpm create handover@latest
# or
npx create-handover@latest
# or with a target directory:
pnpm create handover@latest my-client-site

The interactive setup lets the user choose pnpm, npm, yarn, or bun for dependency install and the printed next-step commands.

Add agent-friendly component mappings

pnpm handover add homepage.hero.title "Ship faster with Handover"
pnpm handover deploy
# or without global install
npx create-handover@latest add homepage.hero.title "Ship faster with Handover"

This command writes to .handover/agents.json by default (override with --file). It also copies your Handover API key into the registry when found in process.env, .env.local, or .env. Run pnpm handover deploy to push the local registry to your live Handover project.

Remote deploys use the Handover API URL/key from your env file. Admin sessions are only needed for direct admin API updates, not handover deploy.

The CLI will prompt you for:

  • Project directory name — where to scaffold the project
  • Template selection — pick between bundled framework starters (arrow keys + Enter)
  • tRPC placeholder — optional tRPC env stub (Next.js template only)
  • Package manager — choose pnpm, npm, yarn, or bun for install and next-step commands
  • Handover credentials — optionally write API URL and key into the generated env file
  • Dependency install — optionally install dependencies after scaffolding
  • Git setup — optionally initialize a repository on main

Scaffolds include .handover/context.json, which gives coding agents the template metadata, API env names, and known site component slots.

What you get

Bundled templates:

  • next — production-ready Next.js admin template pre-wired to Handover
  • vite-react — Vite + React + TypeScript admin starter
  • tanstack-start — TanStack Start + Vite + TypeScript admin starter
  • astro — Astro content starter with docs/blog routes and image-key rendering

All templates are sourced from templates/ at the workspace root and packed into this package for npm releases.

All templates include:

  • /admin — password-protected content & media management dashboard
  • /admin/login — authentication gate
  • /docs and /blog routes where supported by the framework starter
  • White-label branding surface via framework-specific lib/branding module
  • User management (create/update/disable/delete/reset)
  • Lock-state (HANDOVER_LOCKED) handling built in

Setup after scaffolding

cd my-client-site
# Use the package manager selected during setup, for example:
pnpm install
# `.env.local` is created automatically from `.env.example`
# Fill in your API key and URL values
pnpm dev

Environment variables

| Variable | Description | |---|---| | NEXT_PUBLIC_HANDOVER_API_URL | Your Handover platform URL for Next.js | | NEXT_PUBLIC_HANDOVER_API_KEY | Project API key (ho_live_*) for Next.js | | VITE_HANDOVER_API_URL | Handover platform URL for Vite React and TanStack Start | | VITE_HANDOVER_API_KEY | Project API key for Vite React and TanStack Start | | PUBLIC_HANDOVER_API_URL | Handover platform URL for Astro | | PUBLIC_HANDOVER_API_KEY | Project API key for Astro | | NEXT_PUBLIC_SITE_NAME | Display name for the admin UI (optional) |

Options

--template <id>         Choose bundled template id (next, vite-react, tanstack-start, astro)
--list-templates        Print bundled templates and exit
--template-dir <path>   Use a custom local template instead of the bundled one
--api-url <url>         Write Handover backend URL into the scaffold env file
--api-key <key>         Write Handover API key into the scaffold env file
--package-manager <pm>  Choose pnpm, npm, yarn, or bun for next steps/install
--install               Install dependencies after scaffolding
--no-install            Skip dependency install
--git                   Initialize a git repository after scaffolding
--no-git                Skip git initialization
--file <path>           Override registry path for `add` command
-y, --yes               Skip prompts; pass --template or --template-dir

Remote deploy env:
HANDOVER_API_URL or framework public variants (NEXT_PUBLIC_ / VITE_ / PUBLIC_)
HANDOVER_API_KEY or framework public variants (NEXT_PUBLIC_ / VITE_ / PUBLIC_)

tanstack-router is accepted as a backward-compatible alias and maps to tanstack-start.

Deploy content from local files

pnpm handover deploy
pnpm handover deploy --manifest ./handover.content.json --mode merge
pnpm handover deploy --docs ./docs
pnpm handover deploy --blog ./blog
pnpm handover deploy --assets .handover/assets

Markdown frontmatter can set title, slug, excerpt, collection, and status. Uploaded images get a stable Handover key so generated sites can render them through content.imagesByKey.<key>.url.

Agents should keep Handover-managed images as local files in .handover/assets. A plain pnpm handover deploy uploads that folder when it exists; pnpm handover deploy --assets .handover/assets is the explicit form. Supported image extensions are .png, .jpg, .jpeg, .webp, .svg, and .gif. Do not store image bytes or temporary upload URLs in .handover/agents.json.

HANDOVER_TEMPLATE_DIR=/path/to/template   Env-based template override

Links