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

@cisstech/specsmith

v0.1.0-beta.1

Published

Parse and validate a Foundry spec folder: flows, screens, states, edges, and the coherence checks that gate them.

Downloads

64

Readme

@cisstech/specsmith

Parse and validate a project spec: the folder of markdown files that is the single source of truth for a product's screens and navigation.

What it does

Reads a spec/ folder, turns it into a typed model, and runs a fixed set of coherence checks. A spec with a broken transition, an unreachable screen, a list missing its empty/loading states, an overlay with no way out, or a nav pointing nowhere does not pass. This is the gate that keeps a spec from drifting.

It does not render anything, and does not yet check form/detail states or that destructive actions confirm.

The spec folder

spec/
  project.md        identity, nav shell, global rules, ordered flow list
  flows/<name>.md   one flow per file: prose plus a single spec: YAML block

Each file mixes prose with exactly one spec: block holding the machine-read facts. The fields and the authoring rules are documented in the Spec format reference; ledger, aurora and lueur are complete examples.

API

import { loadProject, validate } from '@cisstech/specsmith';

const project = await loadProject('path/to/spec'); // read + parse the folder
const report = validate(project);                  // { ok, findings }

if (!report.ok) process.exit(1);
  • loadProject(dir) returns a Project. Throws SpecParseError on malformed YAML or a file that fails its schema.
  • validate(project) returns a Report = { ok, findings }. ok is false when any finding has severity error.
  • parseProjectSpec / parseFlow / extractSpecBlock / extractProse parse from strings. Parsed flows and the project also carry their prose (the markdown outside the spec block) so downstream tools like a renderer can read the intent.

This is a library. To validate a spec from the command line, use foundry check, which runs these checks and exits non zero on any error.

Checks

Six coherence checks run today: dangling edges, unreachable screens, lists without an empty or loading state, overlays with no way out, nav pointing at an unknown flow, and flow files missing from the plan. Four are errors, two are warnings. They are defined in src/validate.ts, the source of truth, and documented for authors in the Spec format reference. New guarantees join the set as the rule library grows.