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 🙏

© 2025 – Pkg Stats / Ryan Hefner

specweave

v1.0.14

Published

Spec-driven development framework for Claude Code. AI-native workflow with living documentation, intelligent agents, and multilingual support (9 languages). Enterprise-grade traceability with permanent specs and temporary increments.

Downloads

17,012

Readme

SpecWeave

Finally. A Framework That Works on Legacy, Startup, AND Enterprise.

Drop it into a 10-year-old codebase — it understands everything. Use it on your weekend MVP — specs write themselves. Scale it to 50 teams — JIRA, GitHub, Azure DevOps sync automatically.

NPM Version License: MIT Tests Build Discord YouTube Run in Smithery

🎉 v1.0.2 — Critical Bug Fix!

npm install -g specweave

Critical Fix: GitHub private repos now properly fetched during init. Pattern matching (starts:, regex) works with private repos. See release notes →


🔄 Built With SpecWeave (Dogfooding)

SpecWeave is 100% built using SpecWeave. Every feature, every bug fix, every release — all spec-driven.

This isn't just a framework we made — it's the framework we use every day. Our entire development workflow runs on SpecWeave:

  • 140+ completed increments with full specs, plans, and tasks
  • Living docs that auto-update via event-driven hooks
  • DORA metrics tracking real delivery performance
  • Code-as-source-of-truth discrepancy detection built-in

Deploy Frequency Lead Time Change Failure Rate MTTR

→ Live Dashboard | → Detailed Report | → Browse Our Increments


Why Not BMAD or SpecKit?

Great tools for simple greenfield projects. But when things get real:

  • BMAD — Constant role-switching (PM → Architect → Dev). Multi-step prompts for every action. Works until you have 5+ services or existing documentation.
  • SpecKit — GitHub's excellent open-source toolkit (28k+ stars, Sept 2025). Same 4-phase workflow (Specify → Plan → Tasks → Implement). Clean and minimal — perfect for single-project greenfield MVPs.
  • Both — Break down with legacy codebases, multi-repo setups, existing documentation sprawl, and enterprise compliance requirements.

SpecKit → SpecWeave: The Mathematical Relationship

SpecKit is a particular case of SpecWeave — specifically, it's equivalent to creating ONE SpecWeave increment with no lifecycle management afterward:

SpecKit output    ≡  ONE SpecWeave increment (spec.md + plan.md + tasks.md)
SpecWeave         =  N increments + lifecycle + external sync + living docs + hooks

In set theory terms: SpecKit ⊂ SpecWeave — every SpecKit capability exists in SpecWeave, but SpecWeave adds the enterprise layer:

| Capability | SpecKit | SpecWeave | |------------|---------|-----------| | Workflow | Specify → Plan → Tasks → Implement | Same + living docs + hooks + quality gates | | Projects | Single project | Multi-project, multi-repo, umbrella setups | | External Tools | None | GitHub Issues, JIRA, Azure DevOps (bidirectional) | | Documentation | Snapshot (static specs) | Living docs (auto-update after every task) | | Codebase Type | Greenfield only | Greenfield + Brownfield (10-year legacy? Fine.) | | Team Scale | Solo/small team | Solo to 50+ teams | | Quality Gates | None | 3-gate validation (tasks, tests 60%+, docs) | | Plugin Ecosystem | Minimal | Hooks, skills, agents, multi-AI support |

SpecWeave — Drop into any codebase. Sync with JIRA/GitHub/ADO. Handle 50 teams or solo MVPs. One workflow.


What Makes SpecWeave Different

Every AI coding tool promises productivity. But after the chat ends:

  • Your specs disappear into chat history
  • Your architecture decisions are forgotten
  • Your tests are never written
  • Your GitHub/JIRA stays outdated
  • New team members start from zero

SpecWeave is the only framework where AI decisions become permanent, searchable documentation.


The Workflow


Quick Start

# Install SpecWeave (v1.0.1 — production ready)
npm install -g specweave

# Initialize your project
cd your-project
specweave init .  # Creates single-project config by default

Then in Claude Code:

/sw:increment "Add dark mode toggle"  # AI creates spec + plan + tasks
/sw:do                                # Autonomous implementation
/sw:done 0001                         # Quality-validated completion

Single-project by default: SpecWeave defaults to simple single-project mode. Need multiple projects? Run /sw:enable-multiproject when ready.

Pro tip: Use /sw:next to flow through the entire cycle. One command auto-closes completed work and suggests what's next — review specs/tasks when needed, otherwise just keep clicking "next".

Full Quickstart Guide


Key Strengths

  • Legacy to Enterprise — 10-year-old monolith? Startup MVP? 50-team enterprise? Works on all.
  • Any AI, Your Choice — Claude, GPT, Gemini, Copilot — your team uses whatever they prefer
  • Real Bidirectional Sync — JIRA/GitHub/ADO sync on command with permission controls
  • Code = Source of Truth — Discrepancy detection catches when docs drift from reality
  • Event-Driven Hooks — Living docs update on lifecycle events (done, archived, reopened)
  • Multi-Project Mode — Multiple repos, multiple teams, one source of truth
  • 3-Gate Quality Validation — Nothing ships without passing tasks, tests (60%+), and docs
  • 70%+ Token Reduction — Progressive loading means your AI stays fast and focused
  • Background Jobs — Large imports and analysis run asynchronously while you work

External Tool Integration

SpecWeave keeps your project management tools in sync automatically:

| Platform | Capabilities | |----------|--------------| | GitHub Issues | Create, update, close, progress sync, checkbox tracking | | JIRA | Epic/Story hierarchy, status sync, custom fields | | Azure DevOps | Work items, area paths, status sync | | Linear | Coming Q1 2026 |

Sync Orchestration (NEW)

SpecWeave includes sync monitoring to keep track of external tool state:

/sw:sync-progress     # Push updates to GitHub/JIRA/ADO
/sw:sync-monitor      # Dashboard: sync status, notifications
/sw:notifications     # View/dismiss sync notifications

Key principle: Code is the source of truth. When your living docs describe one thing but code does another, SpecWeave detects the discrepancy and notifies you:

📋 DISCREPANCIES DETECTED

DISC-0001   ⚠️ MAJOR   function-signature   getUserById params changed
DISC-0002   ✅ MINOR   api-route            New endpoint added

Use '/sw:discrepancies accept DISC-0001' to update specs

What You Get

| Before | After SpecWeave | |--------|-----------------| | Specs in chat history | Permanent, searchable specs | | Manual JIRA/GitHub updates | Auto-sync on /sw:sync-progress | | Tests? Maybe later... | Tests embedded in tasks (60%+ enforced) | | Architecture in your head | ADRs captured automatically | | "Ask John, he knows" | Living docs, always current | | Docs drift from code | Discrepancy detection alerts you | | Large imports block work | Background jobs run async | | Onboarding: 2 weeks | Onboarding: 1 day |


The Three-File Foundation

Every feature generates three permanent files:

.specweave/increments/0001-dark-mode/
├── spec.md    ← WHAT: User stories, acceptance criteria, requirements
├── plan.md    ← HOW: Architecture, tech decisions, ADRs
└── tasks.md   ← DO: Implementation tasks with embedded tests

spec.md (WHAT)

## User Stories

### US-001: Dark Mode Toggle
As a user, I want to toggle dark mode so that I can reduce eye strain at night.

**Acceptance Criteria:**
- [x] AC-US1-01: Toggle switch in settings persists preference
- [x] AC-US1-02: Theme applies to all components instantly
- [ ] AC-US1-03: System preference detected on first visit

tasks.md (DO)

### T-001: Implement Theme Provider
**User Story**: US-001
**Satisfies ACs**: AC-US1-01, AC-US1-02
**Status**: [x] completed

**Embedded Tests** (AC-US1-01):
- test_theme_toggle_persists_to_localstorage
- test_theme_applies_to_all_components
- test_toggle_updates_ui_instantly

When to Use Increments

Not every change needs an increment. The rule of thumb:

| Change Type | Use Increment? | Why | |-------------|----------------|-----| | Typo fix, version bump | No | Zero learning, purely mechanical | | Bug fix that taught you something | Yes | Capture the knowledge for future devs | | Any user-facing change | Yes | Track delivery, enable DORA metrics | | Architecture decision | Yes | Needs ADR for future understanding |

The principle: If you'd explain this change to a colleague, document it in an increment.

Increments capture knowledge. Ad-hoc work is ephemeral. When teams routinely do meaningful work without increments, they lose:

  • Traceability — Why was this decision made?
  • Knowledge transfer — How does this system work?
  • Metrics accuracy — DORA metrics reflect reality

Quick check before ad-hoc work: "Will I remember why I made this change in 6 months?" If no → increment.


Key Features

Works With ANY AI Tool

SpecWeave's power isn't in Claude magic. It's in structure.

  • spec.md is just markdown — any AI can read it
  • tasks.md is just markdown — any AI can update it
  • Acceptance criteria are just checkboxes — universal

Team with mixed AI tools? Sarah uses Claude. Mike uses GPT-4. Alex uses Copilot. Everyone works on the same specs. Same tasks. Same acceptance criteria. The sync still works.

Claude Code gets the best experience (slash commands, hooks, skills). But any AI can participate.

Living Documentation (Event-Driven)

Documentation updates on lifecycle events via hooks — not on every edit, but when it matters:

| Event | What Updates | |-------|--------------| | increment.created | New spec entry added to living docs | | increment.done | Marked complete, archived if configured | | user-story.completed | Status line refreshed, progress synced | | increment.reopened | Restored from archive |

No more stale docs. The system detects when all tasks AND all ACs for a user story are complete, then fires the right hooks. Race conditions? Handled. Crashes? Graceful degradation.

Quality Gates

Three gates before any increment closes:

  1. Tasks: All tasks marked complete
  2. Tests: 60%+ coverage minimum (configurable)
  3. Documentation: Living docs updated

Token Efficiency

70%+ context reduction through:

  • Progressive plugin loading (load only what you need)
  • Skills auto-activate based on keywords
  • Context optimizer removes irrelevant specs
  • Sub-agent parallelization isolates context

Extensible by Design

SpecWeave is a framework, not a locked product. Customize everything through CLAUDE.md instructions:

# In your CLAUDE.md:

## Custom Sync Rules
When syncing to JIRA, always:
- Add custom field "Team: Backend" for backend increments
- Map "paused" status to "Blocked" instead of "On Hold"
- Include sprint field from our sprint naming convention

## Custom Quality Gates
Before closing any increment:
- Run `npm run lint:strict` in addition to tests
- Verify changelog entry exists
- Check that API docs are regenerated

## Custom Workflow
After completing a task:
- Post notification to #dev-updates Slack channel
- Update our internal tracking spreadsheet via webhook

What you can customize:

  • External sync behavior — Add fields, transform statuses, integrate with internal tools
  • Quality gates — Add custom validation, linting, security scans
  • Lifecycle hooks — Trigger actions on increment events (created, done, paused)
  • Agent behavior — Override default agent prompts for your domain
  • Naming conventions — Enforce team-specific ID formats, branch names

Why Skills, Not MCP?

Community insight: Anthropic's engineering team discovered that code execution beats direct tool calls for AI agent efficiency.

The MCP Problem: | Issue | Impact | |-------|--------| | Tool definition bloat | All tools loaded upfront → context waste | | Data duplication | Same data flows through model 2-3× | | Token explosion | 150,000 tokens vs 2,000 with code-first |

SpecWeave's Approach:

❌ MCP: Load 50 tools → model picks → fetch → model processes → call another
✅ Skills: Load 1 skill on-demand → Claude writes code → process locally

"LLMs are adept at writing code and developers should take advantage of this strength." — Anthropic Engineering

Result: 98%+ token reduction, deterministic execution, reusable skill library.


Commands Reference

Core Workflow (daily use): | Command | Purpose | |---------|---------| | /sw:increment "feature" | Plan new increment (PM → Architect → Tasks) | | /sw:do | Execute all tasks autonomously | | /sw:done 0001 | Complete with quality gate validation | | /sw:next | Auto-close + suggest next work (one-click flow) | | /sw:progress | Show real-time status |

Sync & Monitoring (stay in sync): | Command | Purpose | |---------|---------| | /sw:sync-progress | Sync to GitHub/JIRA/ADO | | /sw:sync-monitor | Dashboard: jobs, notifications, activity | | /sw:notifications | View/dismiss sync alerts | | /sw:discrepancies | Code-to-spec drift detection |

Brownfield (legacy codebases): | Command | Purpose | |---------|---------| | /sw:discrepancy-to-increment | Convert doc gaps to increments | | /sw:jobs | Monitor background analysis/import | | /sw:import-external | Import from GitHub/JIRA/ADO |

Quality (ship with confidence): | Command | Purpose | |---------|---------| | /sw:validate 0001 | Run quality checks | | /sw:tdd-cycle | Full red-green-refactor workflow | | /sw:check-tests | Validate test coverage |

53 total commandsFull Command Reference


Legacy, Startup, or Enterprise — It Just Works

10-Year-Old Legacy Codebase?

specweave init .
# During init, choose "Run brownfield analysis" to scan for documentation gaps
# Or run manually later: /sw:discrepancies

What happens? Brownfield analysis scans your codebase and creates discrepancies — actionable documentation gaps:

  • missing-docs — Undocumented code exports
  • stale-docs — Documentation out of sync with code
  • knowledge-gap — Single-contributor modules (bus factor risk)
  • orphan-doc — Docs for deleted code
  • missing-adr — Significant patterns without ADRs

Convert discrepancies to increments:

/sw:discrepancies                         # View all gaps
/sw:discrepancy-to-increment DISC-0001    # Create increment from gap

Fresh Startup MVP?

specweave init .
/sw:increment "Build user auth"  # Full spec in 60 seconds

50-Team Enterprise?

specweave init .                     # Start with single-project
/sw:enable-multiproject       # Explicit opt-in when ready
# Maps to JIRA projects, ADO area paths, GitHub repos automatically

Import from Notion, Confluence, GitHub Wiki. AI classifies docs automatically.


Requirements

  • Node.js 20+
  • Claude Code with Claude Opus 4.5 (recommended) — released Nov 2025
  • Git repository

Why Opus 4.5? 2-3x Faster Development!

With Claude Opus 4.5, development speed increases 2-3x (some report 5-10x!). The key: formulate small, well-defined increments (5-15 tasks), and Opus completes them almost without manual interaction. Just define requirements, run /sw:do, and review what's done.


Community


Contributing

git clone https://github.com/anton-abyzov/specweave.git
cd specweave
npm install && npm run build
npm test

Contributor Guide


License

MIT - github.com/anton-abyzov/specweave


Legacy. Startup. Enterprise. One framework that actually works everywhere.

npm install -g specweave

Fortune 500 companies pay millions for systems like this. This? Free. Open source.