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

htmlspec-kit

v0.1.0

Published

HTML-backed spec-driven development artifacts and CLI.

Downloads

10

Readme

HTMLSpec Kit

HTMLSpec is a lightweight spec-driven workflow for proposal -> specs -> design -> tasks. It stores each change as a browser-rendered HTML dossier. The editable source of truth is the JSON payload inside:

<script id="SPEC" type="application/json">
  { "format": "htmlspec" }
</script>

The default project folder is spec/.

Install Skills

This repo ships an agent-compatible skill under skills/htmlspec-kit.

npx skills add . --skill htmlspec-kit --agent '*' --copy -y
# or
bunx skills add . --skill htmlspec-kit --agent '*' --copy -y

CLI

Run from a project root:

npx htmlspec-kit init
npx htmlspec-kit new add-dark-mode --title "Add dark mode"
npx htmlspec-kit show add-dark-mode --json
npx htmlspec-kit task start add-dark-mode 2.1
npx htmlspec-kit task done add-dark-mode 2.1
npx htmlspec-kit task add add-dark-mode "Add e2e coverage" --group "Validation"
npx htmlspec-kit spec update add-dark-mode --from /tmp/spec-fragment.html
npx htmlspec-kit design update add-dark-mode --from /tmp/design-fragment.html
npx htmlspec-kit patch add-dark-mode --patch '[{"op":"replace","path":"/status","value":"ready"}]'
npx htmlspec-kit patch add-dark-mode --replace /proposal/whyHtml --string-value '<p>Why now...</p>'

bunx htmlspec-kit ... works the same way; pick whichever the project already uses.

For local development in this repo, use:

bun bin/htmlspec.ts init
bun bin/htmlspec.ts new add-dark-mode --title "Add dark mode"

Project Layout

spec/
  changes/              active change dossiers
  specs/                canonical specs, if you promote a change
  archive/              archived change dossiers
  templates/
    change-template.html

Data Model

Each dossier contains proposal, spec, design, tasks, and history sections:

  • proposal: why, what changes, capabilities, and impact.
  • spec: delta operations (ADDED, MODIFIED, REMOVED, RENAMED) with requirements and scenarios.
  • design: context, goals/non-goals, decisions, risks/trade-offs, migration plan, and open questions.
  • tasks: grouped tasks with todo, in-progress, or done.
  • history: CLI-maintained breadcrumbs.

Agents should usually read npx htmlspec-kit show <id> --json and mutate the SPEC payload through the CLI. Direct HTML edits are allowed when changing the visual template, Alpine rendering, CSS, metadata, or when a scoped manual JSON edit is clearer.

Test

bun install
bun run check
bun run e2e