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

create-project-scaffold

v1.0.0

Published

Generate context/ files and feature-specs/ backlog from an architecture document using the Ghost AI template pattern

Readme

create-project-scaffold

Generate context/ files, feature-specs/ backlog, and AGENTS.md from an architecture document using the Ghost AI template pattern.

Works anywhere — Node.js CLI tool, no AI assistant required.

Installation

npm install -g create-project-scaffold

Or use with npx (no installation):

npx create-project-scaffold <architecture-file>

Usage

create-project-scaffold ./ARCHITECTURE.md

Options

create-project-scaffold <architecture-file> [options]

Options:
  -o, --output <dir>         Output directory (default: current directory)
  --granularity <type>       Spec granularity: fine or coarse (default: fine)
  --markers <type>           Customization marker style: html, visible, or section (default: html)
  -V, --version              Output version number
  -h, --help                 Display help

Examples

# Generate in current directory
create-project-scaffold ./ARCHITECTURE.md

# Generate in specific directory
create-project-scaffold ./docs/spec.md -o ./my-project

# Use coarse-grained specs (fewer, larger files)
create-project-scaffold ./ARCHITECTURE.md --granularity coarse

# Use visible markers instead of HTML comments
create-project-scaffold ./ARCHITECTURE.md --markers visible

What it generates

Running the tool produces:

1. context/ folder (6 files)

  • project-overview.md — product definition, roles, features, scope
  • architecture-context.md — stack, multi-tenancy, storage, invariants
  • ui-context.md — theme, colors, typography, layout patterns
  • code-standards.md — conventions, file structure
  • ai-workflow-rules.md — development workflow, scoping rules
  • progress-tracker.md — phase tracking template

2. feature-specs/ folder (20-50 numbered specs)

  • Sequential build backlog: 01, 02, 03, ...
  • Foundation → entities → integration → production
  • Backend before UI (schema → actions → mock UI → wire)
  • Each spec: Goal → Implementation → Scope Limits → Check when done
  • <!-- CUSTOMIZE: ... --> HTML comment markers for adjustable choices

3. AGENTS.md

  • Entry-point that tells AI assistants to read context files first

Input requirements

Your architecture document should include:

  • Product overview and feature list
  • Tech stack (framework, database, auth, storage)
  • User roles and permissions (if applicable)
  • Data models or entities
  • UI/UX direction (theme, colors, typography)
  • Deployment target (Docker, Vercel, etc.)

Missing sections will be inferred with reasonable defaults based on common patterns.

Example workflow

# 1. Create your architecture document
vim ARCHITECTURE.md

# 2. Generate the scaffold
npx create-project-scaffold ./ARCHITECTURE.md

# Output:
# ✅ Scaffold generated successfully!
# 
# Output directory: /path/to/project
#   - context/ (6 files)
#   - feature-specs/ (27 files)
#   - AGENTS.md

# 3. Review and customize
# Edit the <!-- CUSTOMIZE --> blocks in context/ and feature-specs/

# 4. Start building
# Work through feature-specs/ in order, starting with 01

Template pattern

Uses the Ghost AI template pattern:

  • Fine-grained specs — backend and UI split, mock-data UI before wiring
  • HTML comment CUSTOMIZE markers — invisible when rendered, easy to grep
  • Flat numbering — 01, 02, ... N (no phase prefixes)
  • Reuse-first approach — specs mandate "follow existing pattern"
  • Security by default — org-scoped queries, role checks, server-side ownership

How it works

The tool parses your architecture document and:

  1. Extracts key information (stack, features, roles, models)
  2. Generates context files with project-specific details
  3. Creates a sequenced feature spec backlog
  4. Writes customization markers for team-specific decisions
  5. Produces an AGENTS.md entry point for AI assistants

All processing happens locally. No data is sent to external services.

Use with AI assistants

The generated files work with:

  • Claude Code — copy AGENTS.md and context/ to your project
  • Cursor — the .cursorrules equivalent
  • GitHub Copilot — context files guide suggestions
  • Any AI assistant — the pattern is tool-agnostic

Or use without AI — the specs are human-readable build instructions.

License

MIT

Contributing

Issues and PRs welcome at: https://github.com/yourusername/create-project-scaffold