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

@patro-io/create-cms

v0.1.0-beta.14

Published

Create a new PatroCMS application with zero configuration

Readme

@patro-io/create-cms

The easiest way to create a new PatroCMS application with Effect architecture.

Version License: FSL-1.1-MIT Status: Beta

⚠️ Beta Notice: PatroCMS is currently in Beta. Use with caution in production environments.

Quick Start

pnpm create @patro-io/cms my-app

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

What It Does

@patro-io/create-cms sets up everything you need for a modern headless CMS on Cloudflare's edge:

  • Project scaffolding - Complete project structure
  • Effect Architecture - Built with a significant portion in Pure Effect for reliability
  • Multilingual Ready - Admin interface supports multiple languages out-of-the-box
  • AI Powered - Ready for AI-assisted content creation and translation
  • Cloudflare resources - Optionally create D1 database and R2 bucket
  • Configuration - Auto-configured wrangler.jsonc
  • Dependencies - Installs all required packages (including @patro-io/cms core)
  • Git initialization - Ready for version control
  • Example code - Optional blog collection example

Usage

Interactive Mode (Recommended)

pnpm create @patro-io/cms

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

pnpm create @patro-io/cms my-blog

Command Line Options

pnpm create @patro-io/cms 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

Requirements

  • Node.js 18 or higher
  • pnpm (recommended) or npm/yarn
  • 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.jsonc             # 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)

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

pnpm wrangler r2 bucket create my-app-media

3. Run database migrations

pnpm db:migrate:local

4. Start development server

pnpm dev

5. Open admin interface

Visit http://localhost:8787/admin

Default credentials:

Package Managers

Works with all major package managers:

# pnpm (Recommended)
pnpm create @patro-io/cms my-app

# npm
npm create @patro-io/cms my-app

# yarn
yarn create @patro-io/cms my-app

The CLI automatically detects your package manager.

Environment Variables

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

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

Troubleshooting

"wrangler is not installed"

Install wrangler globally or use via pnpm:

pnpm add -g wrangler

"Directory already exists"

Choose a different project name or remove the existing directory:

rm -rf my-app

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)

pnpm create @patro-io/cms my-app \
  --template=starter \
  --database=my-app-db \
  --bucket=my-app-media \
  --include-example \
  --skip-install \
  --skip-git \
  --skip-cloudflare

Related

License

FSL-1.1-MIT © The Patro Authors