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

@stepdown-dev/ts

v0.1.0

Published

TypeScript implementation of stepdown — a family of structural source analyzers enforcing top-down readability.

Readme

stepdown-ts

TypeScript implementation of stepdown, a structural source analyzer for top-down readability.

stepdown-ts v0.1.0 implements the grammar accepted in ADR-0001.

Family

What It Checks

Source should read top-down: high-level declarations appear before the supporting declarations they depend on, and public roots are followed by their private callees in depth-first order.

stepdown-ts checks TypeScript and TSX source structure only. It does not check formatting, style, runtime behavior, security, performance, semantic correctness, or API design.

The analyzer is a positive-grammar walker over the TypeScript compiler API. It has no project configuration, no local suppressions, and no rule toggles. Accepted TypeScript shapes change through ADR review when the grammar needs to expand.

Install

npm install --save-dev @stepdown-dev/ts@<version>

Invoke

npx @stepdown-dev/ts@<version> <path> [<path>...]

Or, after pinned local install:

npm exec stepdown-ts <path> [<path>...]

Help:

stepdown-ts -h
stepdown-ts --help
stepdown-ts -help

Output

Diagnostics are sorted text lines:

path:line:column: rule-name: description

Exit codes:

  • 0 - clean input or help
  • 1 - structural findings
  • 2 - tool, load, parse, or type-check error

Verification gates fail closed on any non-zero exit code.

Rule Set

  • section-order - module-level section out of order
  • declaration-zone-order - declaration-zone types, interfaces, and enums appear after values
  • dfs-public-root - helper appears before the public root that first reaches it
  • helper-placement - helper appears outside the public root's depth-first helper order
  • orphan-unexported-helper - helper is not reached from a same-file public root
  • accessor-pair - paired get and set accessors are not adjacent
  • class-member-order - class members appear outside fields, constructor, behavior, statics order

ADR-0001 is the canonical grammar reference.

Local Verification

Canonical repository gate:

npm run ci

That gate builds TypeScript, runs the test suite, runs stepdown-ts against src, and checks the positive witness fixtures under fixtures/positive.

Release dry-run:

npm run release:check

The release check runs the canonical gate and npm pack --dry-run so package contents include the executable wrapper, built output, README, and license before publication.

Reporting Grammar Gaps

Use the GitHub issue forms for:

  • valid TypeScript or TSX structure rejected by the analyzer
  • ADR-0001-invalid structure accepted by the analyzer
  • future structural rule proposals

Reports should include compileable source, exact diagnostics or missing diagnostics, and the ADR expectation. General style preferences belong outside this tool.

License

Apache-2.0 - 2026 Stinnett Holdings LLC.