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

@razerspine/create-app

v1.0.1

Published

CLI to scaffold production-ready SPA & MPA applications with a modular build system, Pug templates, and a lightweight reactive runtime.

Readme

@razerspine/create-app

npm version Vitest changelog license

Create a modern webpack project using production-ready SPA or MPA templates powered by the Razerspine ecosystem.


Table of Contents


Quick Start

npx @razerspine/create-app my-app

or using npm script locally:

npm run create-app -- my-app

CLI Usage

Interactive mode

npx @razerspine/create-app my-app

Prompts:

  • App type (SPA / MPA)
  • Style (SCSS / Less)
  • Script (JS / TS)

Non-interactive mode (CI-friendly)

npx @razerspine/create-app my-app \
  --app-type spa \
  --style scss \
  --script ts \
  --pm pnpm \
  --no-install

⚠️ All feature flags must be provided together.


CLI Options

| Option | Description |
|-----------------------------------|------------------------------| | --app-type spa \| mpa | Application architecture |
| --style scss \| less | CSS preprocessor |
| --script js \| ts | Script language |
| --pm npm \| yarn \| pnpm \| bun | Package manager to use |
| --no-install | Skip dependency installation |
| --dry-run | Do not write files |
| -v, --version | Show CLI version |
| -h, --help | Show help |


Package Manager Support

You can explicitly choose a package manager:

npx @razerspine/create-app my-app --pm pnpm

Supported:

  • npm (default)
  • pnpm
  • yarn
  • bun

Features

  • Auto script adaptation:
    • npm run buildpnpm build / yarn build
  • Adds packageManager field to package.json
  • Fallback to npm if not specified

Project Architectures

SPA (Single Page Application)

Powered by:

  • @razerspine/runtime

Includes:

  • DI container
  • Router
  • Route guards
  • Reactive state
  • Component lifecycle

MPA (Multi Page Application)

Features:

  • Multi-entry webpack setup
  • Independent pages
  • Lightweight architecture

Best for:

  • landing pages
  • marketing sites
  • classic websites

Project Structure

Example:

src/
  app/
  pages/
  shared/
  assets/
  styles/

Projects are:

  • standalone
  • production-ready
  • deployable out of the box

Template Resolution

Templates are resolved automatically:

| Type | Style | Script | Template | |------|-------|--------|-----------------| | SPA | SCSS | TS | spa-pug-scss-ts | | SPA | SCSS | JS | spa-pug-scss-js | | SPA | Less | TS | spa-pug-less-ts | | SPA | Less | JS | spa-pug-less-js | | MPA | SCSS | TS | mpa-pug-scss-ts | | MPA | SCSS | JS | mpa-pug-scss-js | | MPA | Less | TS | mpa-pug-less-ts | | MPA | Less | JS | mpa-pug-less-js |


Testing

Includes:

  • ✅ E2E tests (CLI behavior)
  • ✅ Integration tests (pipeline, installer)
  • ✅ Unit tests (utils, steps, CLI)

Highlights:

  • Real CLI execution via tsx
  • Temp directories per test
  • Automatic cleanup
  • Exit code validation
  • Timeout protection

How It Works

Pipeline-based architecture:

resolve template
  ↓
prepare directory
  ↓
copy files
  ↓
patch package.json
  ↓
install dependencies

Changelog (1.0.0)

Major Release

  • Full CLI rewrite
  • New package: @razerspine/create-app
  • New command: create

⚠️ Breaking Changes

  • create-webpack-startercreate-app
  • New binary: dist/index.cjs
  • Switched to tsup
  • Removed direct package.json imports

Features

  • Interactive CLI (inquirer)
  • Smart template resolution
  • Dry-run mode
  • Improved validation

Package Manager Support

  • Added --pm flag
  • Supports: npm, pnpm, yarn, bun
  • Script auto-adaptation
  • Injects packageManager field

Testing

  • Vitest migration
  • Full E2E coverage
  • Fixed cleanup race conditions

Architecture

  • Pipeline-based system
  • Clean separation:
    • CLI
    • core
    • steps
    • utils

DX Improvements

  • tsx instead of ts-node
  • Better logs (ora + kleur)
  • Improved CLI UX

Documentation

Detailed documentation is available in the /docs directory:


License

ISC License