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

lgtm-specs

v0.0.6

Published

Versioned knowledge graph of LGTM specs (rules + agents + integration protocol).

Readme

LGTM Specifications

CI version downloads

LGTM Specifications is a versioned knowledge graph of engineering standards (Rules) and an agent workforce (Modes/Roles) that tools can run to plan, build, and audit changes with high assurance.

Quick Links

  • Rules: rules/README.md
  • Agents: agents/README.md
  • Integration protocol: integrate/README.md
  • Docs: docs/README.md
  • Contributing: docs/CONTRIBUTING.md

Knowledge

We turn industry best practices and internal standards into atomic, enforceable rules:

  1. Source material lives in docs/meta/**.
  2. Atomic rules live in rules/** and cite their sources.
  3. Runtimes inject only the relevant rules for a given task (tag/domain based) instead of loading the entire graph.

Start here:

Workflows

LGTM runs as operating modes that orchestrate a specialist team (Lead, Explorer, Counsel, Planner, Builder, Reviewers).

Modes:

  • @Build: production changes (rules + plan + proof + specialist review).
  • @Hack: fast iteration (lighter gates).
  • @Review: read-only audit.

Core roles:

  • 🧠 Lead: orchestrates and arbitrates.
  • 🗺️ Explorer: maps the target repo.
  • ⚖️ Counsel: selects minimal relevant rule paths.
  • 📐 Planner: produces an execution/audit plan.
  • 🏗️ Builder: implements and produces proof.
  • 🔬 Reviewers: audit from specialized perspectives.

Start here:

Consume

Tools consume this repo as a read-only spec database.

Install via npm (recommended):

npm install --save-dev lgtm-specs

# or:
bun add -d lgtm-specs

The specs live at node_modules/lgtm-specs/.

Versioning:

  • VERSION matches integrate/README.md **Spec Version**:
  • See integrate/versioning.md for consumption options (tags, submodules, npm)

Integrating

Start here:

You are implementing integration for the LGTM specs repo (yyforyongyu/lgtm-specs).

Goal: wire this repo into a coding tool so it can run the LGTM agent workflows.

Read and follow `integrate/README.md` exactly, including:
- Parsing `agents/**/*.md` and honoring placeholders like `{{injected_rules}}`.
- Running Counsel and enforcing its JSON output schema.
- Hydrating rule paths into rule content and injecting role-appropriate subsets per reviewer.
- Resolving models using `models/registry.yaml` in list order (preference order) with deterministic availability checks.

Output:
1) a concise implementation checklist,
2) the minimal data structures you will use (schemas),
3) pseudocode for: index loading -> counsel -> rule hydration -> per-agent injection -> execution.

Contributing

Contributions should preserve atomicity, indexing, and link integrity.

Start here:

You are contributing to the LGTM specs repo (yyforyongyu/lgtm-specs).

Read `docs/contribute/README.md` and `docs/contribute/checklist.md` and follow them strictly.
Run `bun run check` before finalizing your changes.

Constraints:
- One rule per file; follow the rule template used in this repo.
- Add new files to the parent directory index README(s).
- Use repo-relative links only and ensure every link target exists.

Task:
1) identify the smallest set of atomic rule/doc changes needed for the request,
2) propose exact file edits,
3) run `python3 scripts/validate_specs.py` and report any failures.