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 🙏

© 2025 – Pkg Stats / Ryan Hefner

create-any-cms

v3.0.0

Published

Create a new Any CMS application with zero configuration

Downloads

6

Readme

create-sonicjs

The easiest way to create a new SonicJS application

Version License

Quick Start

npx create-sonicjs my-app

That's it! Follow the interactive prompts and you'll have a running SonicJS application in minutes.

What It Does

create-sonicjs sets up everything you need for a modern headless CMS on Cloudflare's edge:

  • Project scaffolding - Complete project structure
  • Template selection - Choose from pre-built templates
  • Cloudflare resources - Optionally create D1 database and R2 bucket
  • Configuration - Auto-configured wrangler.toml
  • Dependencies - Installs all required packages
  • Git initialization - Ready for version control
  • Example code - Optional blog collection example

Usage

Interactive Mode (Recommended)

npx create-sonicjs

You'll be prompted for:

  • Project name
  • Template choice
  • Database name
  • R2 bucket name
  • Whether to include examples
  • Whether to create Cloudflare resources
  • Whether to initialize git

With Project Name

npx create-sonicjs my-blog

Command Line Options

npx create-sonicjs my-app --template=starter --skip-install

Available flags:

  • --template=<name> - Skip template selection (e.g., --template=starter)
  • --database=<name> - Set database name without prompt
  • --bucket=<name> - Set R2 bucket name without prompt
  • --include-example - Include example blog collection (no prompt)
  • --skip-example - Skip example blog collection (no prompt)
  • --skip-install - Don't install dependencies
  • --skip-git - Don't initialize git
  • --skip-cloudflare - Don't prompt for Cloudflare resource creation

Templates

Starter (Default)

Perfect for blogs, documentation, and content sites.

Includes:

  • Blog collection example
  • Admin dashboard
  • REST API
  • Media management

Coming Soon:

  • E-commerce template
  • Documentation site template
  • Portfolio template

Requirements

  • Node.js 18 or higher
  • npm 7 or higher (or yarn/pnpm)
  • wrangler (optional, for Cloudflare resources)

What Gets Created

my-app/
├── src/
│   ├── index.ts              # Application entry point
│   └── collections/          # Content type definitions
│       └── blog-posts.collection.ts
├── wrangler.toml             # Cloudflare Workers config
├── package.json              # Dependencies
├── tsconfig.json             # TypeScript config
├── .gitignore
└── README.md

After Creation

1. Navigate to your project

cd my-app

2. Create Cloudflare resources (if skipped)

wrangler d1 create my-app-db
# Copy the database_id to wrangler.toml

wrangler r2 bucket create my-app-media

3. Run database migrations

npm run db:migrate:local

4. Start development server

npm run dev

5. Open admin interface

Visit http://localhost:8787/admin

Default credentials:

Package Managers

Works with all major package managers:

# npm
npx create-sonicjs my-app

# yarn
yarn create sonicjs my-app

# pnpm
pnpm create sonicjs my-app

The CLI automatically detects your package manager from lock files.

Environment Variables

After creation, you may want to set up environment variables:

# .dev.vars (for local development)
ENVIRONMENT=development

Cloudflare Resources

D1 Database

If you create resources during setup, a D1 database is automatically created and configured.

Manual creation:

wrangler d1 create my-app-db

R2 Bucket

For media storage, an R2 bucket is created.

Manual creation:

wrangler r2 bucket create my-app-media

Troubleshooting

"wrangler is not installed"

Install wrangler globally:

npm install -g wrangler

"Directory already exists"

Choose a different project name or remove the existing directory:

rm -rf my-app

Dependencies fail to install

Try manually:

cd my-app
npm install

Cloudflare resource creation fails

You can create resources manually after project creation. See the After Creation section.

Advanced Usage

Skip All Prompts (Non-Interactive Mode)

npx create-sonicjs my-app \
  --template=starter \
  --database=my-app-db \
  --bucket=my-app-media \
  --include-example \
  --skip-install \
  --skip-git \
  --skip-cloudflare

Use in CI/CD

npx create-sonicjs test-app \
  --template=starter \
  --database=test-db \
  --bucket=test-bucket \
  --skip-example \
  --skip-install \
  --skip-cloudflare \
  --skip-git

Features

  • 🎨 Beautiful CLI - Colored output and progress indicators
  • Fast - Optimized for speed
  • 🔒 Type-safe - Full TypeScript support
  • 🌐 Edge-first - Built for Cloudflare Workers
  • 📦 Zero config - Works out of the box
  • 🔧 Customizable - Easy to extend

Examples

Create a blog

npx create-sonicjs my-blog
# Select "Starter" template
# Include example collection: Yes

Create without examples

npx create-sonicjs my-app
# Include example collection: No

Related

Contributing

Contributions welcome! See CONTRIBUTING.md.

License

MIT © SonicJS Team

Support


Built with ❤️ for developers | v2.0.0-alpha.1