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

rootspec

v4.4.1

Published

Hierarchical Specification Framework - Philosophy guides implementation

Readme

rootspec

Hierarchical Specification Framework CLI - Philosophy guides implementation

RootSpec is a five-level specification framework that helps teams build software with clear alignment from philosophy to implementation. The CLI automates framework setup, prompt generation, and project configuration.

Installation

# Install globally
npm install -g rootspec

# Or use directly with npx (no installation)
npx rootspec init

Quick Start

# Initialize RootSpec in your project
rootspec init

# Generate AI-assisted prompts with auto-detected project context
rootspec prompts init      # For new projects
rootspec prompts adopt     # For existing projects

# Add Cypress testing templates
rootspec cypress

# List all available prompts
rootspec prompts

Commands

rootspec init [options]

Initialize the RootSpec framework in your project.

Options:

  • --path <dir> - Installation directory (default: ./spec)
  • --full - Include Cypress templates
  • --yes - Skip prompts, use defaults

Example:

rootspec init --path ./docs --full

rootspec prompts [name] [options]

List or view AI workflow prompts with auto-detected project context.

Available prompts:

  • init - Create new specification
  • adopt - Adopt framework for existing project
  • validate - Validate specification compliance
  • add-feature - Add feature to spec
  • review - Review implementation vs. spec
  • generate-docs - Generate PRDs, TDDs
  • migrate - Migrate to newer version
  • cypress-merge - Merge Cypress templates

Options:

  • -o, --open - Open prompt in browser

Example:

rootspec prompts adopt     # Prints to stdout
rootspec prompts adopt -o  # Opens in browser

rootspec cypress

Add Cypress testing templates for YAML user story testing.

Copies:

  • cypress.config.ts with RootSpec tasks
  • cypress/ support files and test generators
  • templates/USER_STORIES/ examples

rootspec validate

Validate your specification for compliance with the framework.

Features

  • Auto-detection: Scans your project for framework (Next.js, React, Vue, etc.), source directories, and config files
  • Template engine: Fills AI prompts with your actual project context
  • Interactive mode: User-friendly prompts for all options
  • Non-interactive mode: --yes flag for CI/CD and scripting
  • Cypress integration: Automated E2E testing from YAML user stories

What is RootSpec?

RootSpec is a five-level hierarchical specification system:

  1. Level 1: Foundational Philosophy - WHY & WHAT EXPERIENCE (mission, design pillars)
  2. Level 2: Stable Truths - WHAT strategies and approaches
  3. Level 3: Interaction Architecture - HOW users interact (behavioral patterns)
  4. Level 4: Systems - HOW to implement (architecture)
  5. Level 5: Implementation - HOW MUCH (validation with tests & parameters)

Each level references only higher levels, creating a dependency-free hierarchy where changes flow downward naturally.

Documentation

Complete guides and framework reference:

Requirements

  • Node.js: >= 18.0.0
  • npm: >= 9.0.0

License

MIT © Corky Brown

Contributing

Contributions are welcome! See the contributing guide for details.

Support


Built with TypeScript | Powered by Claude Code