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

v0.2.0

Published

Start a caracms site: npm create caracms makes a blank Astro site with caracms on it.

Readme

create-caracms

npm create caracms makes a new caracms site: a blank Astro site with caracms on it, ready to run.

pnpm create caracms

(or npm create caracms, yarn create caracms, bun create caracms: it uses whichever it was run with.)

It asks four things:

  • The site's folder. Made new, beside where you ran the command.
  • Tailwind? Yes by default.
  • Where it runs. CaraCMS Cloud (sign-in, media, email and forms come from the cloud) or Standalone (the site brings its own GitHub access, buckets and imgproxy).
  • Where it's deployed. Railway, which writes .railway/railway.ts, or decide later, which lists the variables any host needs.

Then it runs, in the new folder:

  1. create-astro with the minimal template (no install, no git, no agent files).
  2. An install of the newest published Astro, Tailwind if asked for, and caracms pinned to an exact version.
  3. git init and a first commit.
  4. caracms init --write, with your answers. This is the same command an existing site runs, so a new site gets the same config, page component, catch-all route, schemas, skills and CLAUDE.md block.
  5. A Home page as a caracms document (content/pages/index.json) in place of Astro's src/pages/index.astro, and Tailwind's stylesheet imported in the page component.
  6. A second commit.

When it's done, pnpm dev runs the site, with the editor at /admin. A Cloud site needs a key (CARACMS_CLOUD_KEY in .env, from app.caracms.com) before it will build.

Flags

Every question has a flag, so a script or an agent can run it without a terminal. Outside a terminal nothing is asked: the folder and --cloud or --standalone are required, and the rest take their defaults.

pnpm create caracms my-site --cloud --deploy railway
  • --cloud / --standalone
  • --deploy railway (default) or --deploy none
  • --tailwind (default) / --no-tailwind
  • --pm pnpm|npm|yarn|bun: default, the one the command was run with
  • --dry-run: print the commands and run nothing

With npm, flags go after a --: npm create caracms my-site -- --cloud.

An existing site

Run inside an Astro site, it stops and points at npx caracms init, which adds caracms to the site that's there.

If a step fails, what was made so far stays in the folder, with the command that failed and what it printed.

MIT licensed. caracms is unsupported: use it as it is.