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

@specforge-driven/specforge

v1.0.3

Published

Spec-Driven Development Kit by d2railabs

Readme

SpecForge

Spec-Driven Development Kit by d2railabs — Define your API with YAML specs, generate production-ready code.

Features

  • Spec-first workflow: Define models and endpoints in .spec.yaml files
  • Code generation: Generate models, Prisma schemas, Fastify routes, tests, docs, and middleware
  • Full development lifecycle: Constitution → Specify → Clarify → Plan → Tasks → Analyze → Implement
  • Diff & Watch: See what would change before generating, auto-validate on spec changes
  • GitHub integration: Create issues from generated tasks
  • Claude Code integration: Auto-configures CLAUDE.md and slash commands on init

Quick Start

# Install globally
pnpm add -g specforge

# Create a new project
npx create-specforge my-app
cd my-app

# Or initialize in an existing project
specforge init .

# Define your spec in spec/*.spec.yaml, then:
specforge validate
specforge generate

Commands

| Command | Description | |---------|-------------| | specforge init [name] | Scaffold a new project or init in existing one | | specforge validate | Validate spec YAML files | | specforge generate | Generate code from specs | | specforge constitution | Create/amend project constitution | | specforge specify <name> | Create a structured feature spec | | specforge clarify <spec-id> | Scan spec for ambiguities | | specforge plan <spec-id> | Generate implementation plan | | specforge tasks <spec-id> | Generate dependency-ordered task list | | specforge analyze [spec-id] | Cross-artifact consistency check | | specforge implement <spec-id> | Run full pipeline (clarify → plan → tasks → analyze → generate) | | specforge diff | Show what generate would change | | specforge watch | Watch specs and auto-validate | | specforge issues <spec-id> | Create GitHub Issues from tasks | | specforge remove | Remove SpecForge from project |

Spec File Format

name: User
tableName: users
fields:
  - name: id
    type: uuid
    primary: true
  - name: email
    type: string
    unique: true
    validations:
      - type: email
  - name: name
    type: string
    validations:
      - type: minLength
        value: 2

endpoints:
  - method: GET
    path: /users
    description: List all users
  - method: POST
    path: /users
    description: Create a new user
    body:
      - field: email
        required: true
      - field: name
        required: true

Generator Plugins

  • model — TypeScript interfaces and Zod schemas
  • prisma — Prisma schema models
  • fastify — Fastify route handlers
  • test — Vitest test suites
  • docs — OpenAPI 3.0 spec, Mermaid ER diagrams, API README
  • middleware — JWT auth, request validation, error handler

Monorepo Structure

packages/
  core/        — Types, validation, spec parsing, planning logic
  cli/         — Commander.js CLI with 15 commands
  generator/   — Handlebars-based code generation with 6 plugins
  create-specforge/ — Project scaffolding (npx create-specforge)

License

ISC