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

@clearcms/create

v0.4.0

Published

Scaffold a self-contained clear-powered site (admin + Astro frontend in one project).

Readme

@clearcms/create

Scaffold a self-contained clear-powered site.

npx @clearcms/create my-blog
cd my-blog
pnpm install
pnpm dev

Two processes start:

  • Admin (@clearcms/admin) on http://localhost:3001
  • Astro frontend on http://localhost:4321

Both read/write the same ./data/storage/ bucket. Files are the source of truth. The SQLite index at ./data/clear.db is derived.

On first boot the admin auto-bootstraps (migrate + seed), prints a generated owner password if CLEAR_OWNER_PASSWORD is unset, and you're editing in seconds.

What gets generated

my-blog/
├── package.json              admin + frontend deps in one
├── astro.config.mjs          static output, fs-backed
├── data/                     gitignored — created on first boot
├── public/
├── src/
│   ├── content.config.ts     Astro Content Layer wired to the bucket
│   ├── layouts/Base.astro
│   ├── pages/index.astro     lists `posts`
│   └── pages/[...slug].astro single-item route
├── .env.example
├── .gitignore                ignores /data, /dist, /.astro, etc.
└── README.md

The generated package.json runs admin + site together via concurrently:

"scripts": {
  "dev": "concurrently -n admin,site -c blue,green -k \"pnpm dev:admin\" \"pnpm dev:site\"",
  "dev:admin": "clear-admin start",
  "dev:site":  "astro dev",
  "build":     "CLEAR_BACKEND=fs CLEAR_BUCKET_ROOT=./data/storage astro build"
}

Options

npx @clearcms/create <target-dir> [options]

  --force         Overwrite a non-empty target directory
  --no-install    (cosmetic) Skip the install hint in the next-steps banner
  -h, --help      Show this help

<target-dir> is required. The directory's basename is normalized to a valid npm package name and substituted as the project name in package.json and README.md.

No git init, no auto-install — same convention as create-astro / create-next-app. Run git init and pnpm install yourself.

Two paths

  • Single-site (this scaffolder) — for one project, one bucket, one admin. The default. The whole site is one repo you can commit, version, and deploy as a unit.
  • Multi-project — for agencies / hosts running 5+ sites side-by-side. Lives upstream in the clearcms/cloud repo: a console UI that orchestrates many clear-admin processes against a central registry at ~/clear/registry.json.

The two paths share the same content protocol and the same admin code — @clearcms/create produces a project that uses @clearcms/admin exactly as the cloud console does when it spawns clear-admin start per project. Switching between the two later is just a matter of moving the ./data/ directory.

Workspace note

When developed inside the clear-platform monorepo, generated package.json deps stay as workspace:* so pnpm install resolves locally. When publishing to npm, pnpm rewrites those to real semver ranges at publish time.