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

@chughtapan/safer-spec-development

v0.2.0

Published

Per-folder MODULE.md TypeScript codemod. Generates structured specs from source + JSDoc directives; validates property-type coverage + classifier coverage + precondition pass rate against fast-check property tests.

Readme

@chughtapan/safer-spec-development

Per-folder MODULE.md codemod for TypeScript codebases. Generates structured specs from source + JSDoc directives + Effect Schema + fast-check property tests. Validates type-coverage, precondition-pass-rate, and branch-coverage-from-spec-tests as hard CI gates.

Status: early package. Public contracts, CLI surface, and property metadata are defined; mode implementations may still be incomplete.

Quickstart

pnpm add -D @chughtapan/safer-spec-development
# Onboard the first folder via the safer-spec-init coding-agent skill (see below).
pnpm safer-spec generate                       # regenerate MODULE.md per folder
pnpm test                                      # property tests; reporter writes execution sidecars
pnpm safer-spec validate --implemented         # CI gate (consumes execution sidecars)

Vitest reporter

validate --implemented reads per-folder .safer-spec/<slug>.execution.json files written by the package's Vitest reporter. Register it in your vitest.config.ts:

import { defineConfig } from "vitest/config";
import { SaferSpecExecutionReporter } from "@chughtapan/safer-spec-development/reporter";

export default defineConfig({
  test: {
    reporters: ["default", new SaferSpecExecutionReporter()],
  },
});

Import the reporter from the dedicated /reporter subpath, not the package root. The root barrel pulls in itSpec, which transitively imports vitest's test API — Vitest forbids that from a config file and will throw Vitest failed to access its internal state.

The reporter writes one sidecar per folder whose tests ran. Validate compares the sidecar's property-id set against the folder's current implemented properties so a stale sidecar (test set changed since the last run) fails as MissingImplError.

CLI surface

safer-spec generate [--folder X] [--write|--dry-run] [--watch]
safer-spec validate [--folder X] [--planned|--implemented]
safer-spec doctor                              health check
safer-spec explain <error-code>                error docs
safer-spec --version
safer-spec --help

Skills (agent-driven flows)

Folder onboarding (init) and format-version migration (migrate) are not CLI commands — they ship as coding-agent skills in skills/:

  • skills/safer-spec-init — scaffold a folder's first MODULE.md + property-test stub. The agent reads the existing index.ts (if any), picks the right runtime-named export to bind the stub against, and writes both files.
  • skills/safer-spec-migrate — walk committed SPEC artifacts for format-version transitions; produces a per-file diff for human review.

These flows depend on judgment (which export is value-bearing on a given barrel; which format-version diffs need human eyes) that a regex / ts-morph picker baked into the CLI handles unreliably — so they live as SKILL docs a coding agent reads and executes.

See docs/DESIGN.md for the architecture.