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

@content-workers/cli

v1.0.1

Published

Content Workers CLI - Command line interface for Content Workers CMS

Readme

@content-workers/cli

Standalone CLI for Content Workers CMS - a lightweight command-line interface that doesn't require installing the full core package.

Installation

Global Installation

npm install -g @content-workers/cli

Use with npx (no installation required)

npx @content-workers/cli dev

Usage

The CLI provides essential commands for Content Workers projects:

# Start development server
cw dev

# Build for production  
cw build

# Serve production build
cw serve

# Run database migrations
cw migrate

Commands

cw dev

Start the development server with hot reload.

Options:

  • -p, --port <port> - Port to run the server on (default: 6545)
  • -h, --host <host> - Host to bind the server to (default: localhost)

cw build

Build the application for production.

Options:

  • --no-minify - Disable minification

cw serve

Serve the production build.

Options:

  • -p, --port <port> - Port to run the server on (default: 6545)
  • -h, --host <host> - Host to bind the server to (default: localhost)

cw migrate

Run database migrations.

Options:

  • --rollback - Rollback the last migration
  • --reset - Reset all migrations
  • --fresh - Drop all tables and re-run migrations

Dependencies

The CLI automatically checks for required dependencies and provides helpful installation instructions if they're missing:

Required for all commands:

  • @content-workers/core - Main CMS engine

Required for development/production:

  • @content-workers/node-adapter - Node.js runtime adapter

Required for migrations:

  • A database adapter:
    • @content-workers/sqlite-adapter (recommended for development)
    • @content-workers/postgres-adapter (recommended for production)
    • @content-workers/libsql-adapter (for Turso/LibSQL)

Configuration

The CLI looks for configuration files in this order:

  1. cw.config.ts
  2. cw.config.js
  3. cw.config.mjs

Example Setup

# Install CLI globally
npm install -g @content-workers/cli

# Create new project directory
mkdir my-cms && cd my-cms

# Install core dependencies
npm install @content-workers/core @content-workers/node-adapter @content-workers/sqlite-adapter

# Create configuration file
# (see Content Workers documentation for config examples)

# Start development
cw dev

vs @content-workers/core

| Package | Size | Use Case | |---------|------|----------| | @content-workers/cli | ~120KB | Just need CLI commands | | @content-workers/core | ~2MB+ | Full CMS engine + CLI |

Choose @content-workers/cli if you:

  • Only need CLI functionality
  • Want faster installation
  • Are building deployment scripts
  • Prefer minimal dependencies

Choose @content-workers/core if you:

  • Need the full CMS engine
  • Are building plugins or extensions
  • Want everything in one package

License

BSL-1.0 (Business Source License)