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

@fivespark/docs-template

v0.1.0

Published

Drop-in layered documentation system (OVERVIEW / ARCHITECTURE / specs / ADRs) scaffolded into any project's docs/ folder.

Readme

@fivespark/docs-template

A drop-in, layered documentation system you can scaffold into any project's docs/ folder with one command. Each layer has one declared audience and one job, and the layers link instead of duplicate — one source of truth per fact.

Usage

In the target project's root:

npx @fivespark/docs-template init

It prompts for a project name, then writes the docs tree into docs/. It never overwrites existing files (skips them) unless you pass --force.

npx @fivespark/docs-template init --name "Acme Portal"   # skip the prompt
npx @fivespark/docs-template init handbook                # target a different dir
npx @fivespark/docs-template init --force                 # overwrite existing files
npx @fivespark/docs-template init --help                  # all options

The only placeholder substituted on copy is {{Project Name}}. The other {{...}} markers ({{page}}, {{component}}, {{Theme}}, …) are intentional fill-in-later slots in the templates.

What it scaffolds

docs/
├── README.md            ← the map: every doc + its audience + purpose
├── OVERVIEW.md          ← 👥 "what & why", plain-language, meeting-friendly
├── ARCHITECTURE.md      ← 🛠️ "how it's built", for developers
├── PLANNING.md          ← 📋 build schedule / milestones (optional)
├── specs/               ← 🛠️ "exact details" — the source of truth per screen
│   ├── README.md
│   ├── _page-template.md
│   ├── _component-template.md
│   ├── OPEN-QUESTIONS.md
│   ├── pages/           ← one file per page (thin: composes + links out)
│   └── components/      ← one file per reusable block (owns its data/states)
└── decisions/           ← 🛠️ ADRs — the "why we chose X"
    ├── README.md
    ├── _template.md
    └── NNNN-*.md         ← numbered, never deleted (supersede instead)

The three rules that hold it together

  1. One source of truth per fact — link, don't duplicate. OVERVIEW summarizes and links the specs; it never re-explains them. A page spec stays thin and links out to component specs.
  2. Audience is declared. The root README.md maps each doc → audience → purpose, so anyone lands in the right place.
  3. Docs are alive — updated in the same PR as the code. A feature isn't "done" until its OVERVIEW status line and affected specs are updated.

Key patterns

  • Pages compose, components own. A page lists its blocks and links out; any block large enough to own its own data/states/estimate gets a component spec, linked from the page's Sub-component specs and linking back via Used on.
  • States + Estimate as tables. Every spec ends with a State | Behavior table and an Estimate table broken down by scope — the estimates roll up into PLANNING.md.
  • OPEN-QUESTIONS as a buffer. Park unresolved decisions in one consolidated, themed file; answer once and propagate the answer back into the affected specs.
  • ADRs are append-only. Number sequentially, never delete — supersede with a new ADR and flip the old one's status.

Publishing (from a monorepo subfolder)

This package can live inside a larger repo (e.g. an AI-docs repo) and still be published on its own — npm publish only ships what the files field whitelists (bin/, template/, this README), ignoring the rest of the repo.

cd docs-template      # the package folder inside your repo
npm version patch     # bump the version
npm publish           # publishConfig.access=public is already set for the scope

To dry-run exactly what would ship: npm publish --dry-run.

If the repo root has its own package.json, you can instead make this a workspace and publish with npm publish -w @fivespark/docs-template.