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

run-create-cli

v0.2.1

Published

A useful CLI tool for scaffolding features and generating code blueprints

Downloads

18

Readme

run-create-cli

A useful CLI tool for scaffolding features and generating code blueprints.

Installation

# Global installation (recommended)
npm install -g run-create-cli

# Or use directly with npx (no installation needed)
npx run-create-cli feat my-feature

Note: This is a CLI tool meant to be installed globally. Global installation allows you to use rcc command anywhere in your terminal.

CLI Commands

This package provides two CLI commands:

  • run-create-cli - Full command name
  • rcc - Short alias for convenience

Both commands work identically:

# Using full command name
run-create-cli feat user-profile
run-create-cli gen ./blueprints/user.js UserModel

# Using short alias (recommended)
rcc feat user-profile
rcc gen ./blueprints/user.js UserModel

Usage

Feature Scaffolding

Generate a complete feature with all necessary files:

# Create feature with tests (default in src/ folder)
rcc feat user-profile

# Create feature without tests
rcc feat user-profile --no-test

# Create in specific directory
rcc feat user-profile --dir features
rcc feat user-profile -d components

# Force overwrite existing files
rcc feat user-profile --force -d src/modules

Blueprint Generation

Generate code from custom blueprint files:

# Generate from blueprint file
rcc gen ./blueprints/user.js UserModel

# Generate with force overwrite
rcc gen ./blueprints/api.js AuthService --force

Commands

rcc feat <name> [options] (or run-create-cli feat)

Scaffolds a complete feature with:

  • Main implementation file
  • Type definitions
  • Index file for exports
  • Test file (unless --no-test is specified)

Options:

  • -d, --dir <directory> - Target directory (default: from config or src)
  • --no-test - Skip generating test files
  • --test - Generate test files (overrides config)
  • -f, --force - Overwrite existing files

rcc gen <blueprint> <name> [options] (or run-create-cli gen)

Generates code from a blueprint file (JS/JSON module).

Arguments:

  • <blueprint> - Path to blueprint file (e.g., ./blueprints/user.js)
  • <name> - Entity name for generation

Options:

  • -f, --force - Overwrite existing files

Features

  • 🚀 Fast scaffolding - Generate complete features in seconds
  • 📁 Smart file organization - Follows best practices for file structure
  • 🧪 Test-ready - Includes test files by default
  • 🎯 Type-safe - Full TypeScript support

Features

  • 🚀 Fast scaffolding - Generate complete features in seconds
  • 📁 Smart file organization - Follows best practices for file structure
  • 🧪 Test-ready - Includes test files by default
  • 🎯 Type-safe - Full TypeScript support
  • ⚙️ Configurable - Project-level configuration support
  • Lightweight - Minimal dependencies

Configuration

Create a rcc.config.js in your project root to customize defaults:

// rcc.config.js
export default {
  // Base directory for generated files (default: 'src')
  baseDir: 'src',
  
  // Skip test files by default (default: false)
  skipTests: false,
};

Configuration priority:

  1. CLI flags (highest priority)
  2. rcc.config.js in project root
  3. Built-in defaults (lowest priority)

Example:

# Uses baseDir from config (e.g., 'app')
rcc feat user-profile

# Overrides config with CLI flag
rcc feat user-profile -d lib

# Config has skipTests: true, but --test flag overrides it
rcc feat user-profile --test

Development

# Clone the repository
git clone https://github.com/pajarrahmansyah/run-create-cli.git
cd run-create-cli

# Install dependencies
npm install

# Run tests
npm test

# Build the project
npm run build

# Run in development mode
npm run dev

Contributing

Contributions are welcome! Feel free to open issues and pull requests.

Changelog

See CHANGELOG.md for a list of changes in each version.

License

MIT License - see LICENSE file for details.