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

v1.2.3

Published

Scaffold a new Colonel app from the command line.

Readme

create-colonel

Scaffold a new Colonel app from the command line.

Why Users Like It

  • scaffolds a working app with practical defaults
  • includes middleware and validation-ready patterns out of the box
  • keeps generated structure aligned with docs and framework conventions
  • supports a simple default flow plus optional --skip-install

npm version License: MIT Runtime: Bun Template

Usage

bunx create-colonel my-app

Optional flag:

bunx create-colonel my-app --skip-install

Template source flags:

bunx create-colonel my-app --template-ref main
bunx create-colonel my-app --template-tarball-url https://codeload.github.com/gwhitdev/colonel-framework/tar.gz/main

Framework dependency selection behavior:

  • Default uses npm package @coloneldev/framework@latest.
  • Override with --framework-version, for example:
bunx create-colonel my-app --framework-version ^1.1.9

Telemetry flags:

bunx create-colonel my-app \
	--telemetry yes \
	--telemetry-endpoint https://colonel-telemetery.vercel.app/api/ingest

By default, when telemetry consent is yes, create-colonel uses the public provisioning endpoint to fetch app credentials automatically.

Optional secure provisioning override:

bunx create-colonel my-app \
	--telemetry yes \
	--telemetry-endpoint https://colonel-telemetery.vercel.app/api/ingest \
	--telemetry-provision-endpoint https://colonel-telemetery.vercel.app/api/provision-app \
	--telemetry-provision-token <token>

When telemetry is enabled and provisioning succeeds, the scaffolded .env receives:

  • COLONEL_TELEMETRY_ENABLED
  • COLONEL_TELEMETRY_ENDPOINT
  • COLONEL_TELEMETRY_APP_ID
  • COLONEL_TELEMETRY_KEY

Regardless of telemetry consent, create-colonel sends a lightweight scaffold-created ping so telemetry can maintain:

  • total app scaffolds
  • total telemetry opt-outs

When telemetry consent is yes, create-colonel prints links to:

  • telemetry privacy notice (/privacy)
  • telemetry opt-out page (/opt-out)

Use --skip-install when you only want scaffolded files and prefer to install dependencies later.

Then run your new app:

cd my-app
bun run start

What It Does

  • Fetches the app template tarball from the colonel-framework repository.
  • Extracts scaffold source files from the tarball into a new folder.
  • Uses packages/create-colonel/template when present, otherwise falls back to examples/web.
  • Sets the generated package.json name from the folder name.
  • Installs dependencies automatically.
  • Prints next-step commands.

Requirements

  • Bun installed on your machine.
  • Network access to fetch the template tarball.
  • @coloneldev/framework published and available on npm.

Local Development

From this monorepo, you can run the generator directly:

bun packages/create-colonel/src/cli.ts my-app

When run inside this repository, the CLI auto-links the local framework package for easier development.

Tests

There are no dedicated automated tests for this package yet.

Recommended smoke test from repository root:

rm -rf /tmp/colonel-smoke && bun packages/create-colonel/src/cli.ts /tmp/colonel-smoke
cd /tmp/colonel-smoke
bun run start

Publishing

cd packages/create-colonel
npm publish --access public

Package: create-colonel