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

@dimassetoid/verity

v0.2.1

Published

Multi-language spec-drift detector based on git provenance and normalized AST fingerprinting

Readme

Verity — Multi-Language Spec-Drift Detector & Integrity Gate

License: MIT Runtime: Bun Protocol: MCP

"Code as Truth, Docs as Intent"
Verity is a deterministic, multi-language integrity gate that detects when documentation, task briefs, and architectural decision records (ADRs) drift from actual code implementations.


1. Why Verity

Narrative docs rot when they drift from code (spec drift). Verity binds specs to code via Git provenance (commit SHA) + normalized AST fingerprints immune to cosmetic formatting — deterministic, zero LLM cost.


2. Supported Languages

Scanners are immune to cosmetic reformatting. Two tiers:

Tier 1 — Battle-Tested

Full AST slicing; Verity dogfoods these on itself.

| Language / Framework | Extensions | Immunity | |---|---|---| | TypeScript / JavaScript | .ts, .tsx, .js, .jsx | Prettier, ESLint, Biome | | Vue SFC | .vue | Prettier, vue-format | | Astro | .astro | Prettier Astro plugin |

Tier 2 — Extended (partial-format guarantee)

Tokenizing scanners via the pluggable ParserDispatcher; partial-format guarantee only. Tier-2 parsers live alongside the Tier-1 core in src/core/parser/ (go.ts, jvm.ts, python.ts, …).

| Language | Extensions | Immunity | |---|---|---| | Rust | .rs | rustfmt | | Python | .py | black, ruff | | Go | .go | gofmt, goimports | | PHP | .php | PHP-CS-Fixer, Pint | | C# | .cs | dotnet-format | | Java | .java | google-java-format | | Kotlin | .kt | ktlint | | Ruby | .rb | rubocop | | Generic Fallback | * | General whitespace |

3. Installation

bun add -g @dimassetoid/verity   # or: npm install -g @dimassetoid/verity
bunx @dimassetoid/verity init --yes  # or run on-demand without installing

4. CLI Usage

| Command | Purpose | |---|---| | verity init [--yes] [--hook] [--mindset] [--skills] | Scaffold drift-core (docs/brief/ + INDEX.md, starter brief, pre-commit hook); --mindset/--skills are opt-in layer-2 adapters | | verity link <brief> <anchor...> [--inline] [--supersedes <old-brief>] | Seal AST fingerprints + Git HEAD SHA into brief frontmatter (or inline tag); --supersedes marks <old-brief> as Superseded | | verity unlink <brief> <anchor... \| --all> | Remove dead anchors when subjects are intentionally deleted | | verity check [--quick] [--sync-index] [--ci] [--affected f1,f2] [--force-fresh] [--unsealed] [--sarif [path]] [--hook] [--strict] | Audit drift; --quick cache-aware, --affected scoped, --force-fresh bypass cache, --unsealed lists anchorless Completed briefs, --sarif writes SARIF report, --ci fails on STALE/unsealed, --hook is pre-commit mode (staged-only, fails on STALE only) | | verity find [query] [--target f] [--category c] [--status s] [--month YM] [--limit n] | Fuzzy search briefs / reverse-lookup governing briefs for a file | | verity diff <code-file \| brief> [--baseline sha] | Semantic AST + git diff since baseline provenance | | verity preflight <brief> | Validity evidence for a brief (anchor health, rival overlaps, recent touches); human owns the go/no-go verdict | | verity serve | Run as MCP server over stdio, CLI-only (see §5) |

verity init --yes
verity link docs/brief/2026-09/feature/auth.md src/auth.ts#login src/components/Login.vue#submitForm
verity check --sync-index
verity check --unsealed

5. MCP Server

Verity runs as an MCP server over stdio JSON-RPC. Add to agent config (mcpServers):

{ "mcpServers": { "verity": { "command": "verity", "args": ["serve"] } } }

| Tool | Maps to | |---|---| | verity_check | check (OK/STALE as structured JSON) | | verity_link / verity_unlink | link / unlink | | verity_find / verity_diff | find / diff | | verity_preflight | preflight (validity evidence before implementing a brief) | | verity_sync_manifest | check --sync-index |


6. Pluggable Parsers

ParserDispatcher accepts custom CodeParser implementations at runtime — no core changes needed (see tests/dispatcher-pluggable.test.ts for a .sql example).


7. Testing

bun test         # full suite: parsers, dispatcher, CLI, MCP, drift detection
bun run build    # rebuild local dist/ (gitignored) for `node dist/verity.js` trials

8. License

MIT License © 2026 Dimas Seto