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

@tapestry-mud/spec-lint

v0.2.2

Published

Deterministic capability-spec linter for Tapestry projects

Downloads

809

Readme

@tapestry-mud/spec-lint

Deterministic capability-spec linter for Tapestry projects.

Enforces the spec contract - eight mechanical rules checked on every commit and CI run.

Installation

Add as a pinned devDependency (no ^ or ~):

{
  "devDependencies": {
    "@tapestry-mud/spec-lint": "0.1.0"
  }
}

Add an npm script:

{
  "scripts": {
    "spec-lint": "spec-lint specs/"
  }
}

Run npm ci to install from the lockfile. Run npm run spec-lint to lint.

For C# repos with no existing package.json, add a minimal tooling manifest:

{
  "private": true,
  "scripts": {
    "spec-lint": "spec-lint specs/"
  },
  "devDependencies": {
    "@tapestry-mud/spec-lint": "0.1.0"
  }
}

Usage

npm run spec-lint           # lint specs/ in strict mode
npm run spec-lint -- --lenient   # warn only, exit 0
npm run spec-lint -- --strict    # force strict even if config says lenient
spec-lint --explain         # print the effective contract for this repo

Commands

lint is the read-only gate; the others create or repair.

spec-lint [path]                    gate specs/ (read-only; --strict / --lenient / --explain / --json)
spec-lint init [path]               adopt: specs/ + lenient config + README block + empty index
spec-lint new <capability> [path]   scaffold a born-conformant capability spec + index row
spec-lint new change <slug> --release <ver> --specs a.md,b.md [path]
spec-lint fix [path]                mechanical repairs: managed block, sentinel, index rebuild

lint never writes. Passing --fix errors and redirects you to spec-lint fix. --json gives CI and agents machine-readable results (per-violation ERROR/WARNING level plus a summary) without scraping text. fix is idempotent and never invents prose - authoring-required failures stay lint failures. new change is the single generator of a change-record skeleton.

Config

Add specs/lint.config.json to extend or override the base rules:

{
  "mode": "lenient"
}

Available fields:

  • mode: "strict" (default) or "lenient". Strict exits 1 on any violation; lenient exits 0 with warnings.
  • sections.extra: additional required section headings beyond the base four.
  • anchorRegex: override the pinned anchor regex (rarely needed).
  • sentinelText: override the empty-reversal sentinel (rarely needed).

Precedence: --strict/--lenient flag > mode in config > default strict.

Skill (Claude Code plugin)

This repo self-hosts a Claude Code plugin so an agent can install the spec-lint authoring skills (five command-aligned skills - init, new-spec, new-change, fix, check - all ship in the one plugin):

/plugin marketplace add tapestry-mud/tapestry-spec-lint
/plugin install spec-lint@tapestry-spec-lint

One install makes all five skills available. Refresh with /plugin marketplace update. The plugin version mirrors the npm package version. The skills are guidance; the pinned lint in each repo is the version-locked backstop, so a slightly stale skill can never ship a bad spec.

The eight checks

Mode: strict

Required sections: Overview, Behavior, Rejected and Reverted, Change Log

Anchor regex (Behavior): ([@\w./\-]+.(cs|js|ts|json|ya?ml|md)(:\d+(-\d+)?)?[^)]*)

Empty-reversal sentinel: - None on record.

Change Log: list, newest-first by date, not a table. Empty is valid for unmodified capabilities.

Index sync: every capability .md on disk appears in README index; every indexed file exists on disk; index date matches file last-updated.

Currency: for each change record naming a capability, the top Change Log entry references that record and last-updated >= record date. A capability named by zero records may have an empty Change Log.

Tombstone: a change record with status:reverted requires a tombstone entry in the capability Rejected and Reverted (not the empty sentinel).

License

AGPL-3.0-only. See LICENSE.