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

@kleroterion/krites

v0.0.4

Published

Autonomous reviewer/merger: reviews the PRs Praktor opens against Boule's acceptance criteria, posts a GitHub review, and enables gated auto-merge — closing the Boule → Praktor → Krites loop.

Readme

krites

κριτής — "judge / critic." The reviewer/merger that closes the kleroterion loop.

Krites is an autonomous CLI that reviews the pull requests Praktor opens — checking each PR against the acceptance criteria of the Boule Task it implements, plus code quality, tests, and security — posts a GitHub review, and (when satisfied) enables gated auto-merge. It is built on @kleroterion/koine and is the third stage of the pipeline:

Boule (grooms backlog: Designs → Requirements → Tasks)
  → Praktor (implements a ready Task, opens a PR)
    → Krites (reviews the PR, approves, enables gated auto-merge)   ← you are here

Safety model

Krites can influence merges to the default branch, so it is deliberately conservative:

  • Branch protection is the real gate. Krites is granted no Administration scope and never force-merges. It posts an approving review and merges via the REST API pinned to the reviewed SHA; with no bypass, GitHub branch protection still enforces required checks/reviews server-side and rejects the merge if they are unmet (a 405/409 is handled as "not yet", never a crash). Both doctor and the deterministic canMerge gate refuse to proceed if branch protection is absent.
  • The LLM is advisory only. The reviewer is read-only and returns a strict, fenced verdict. A deterministic, default-deny canMerge predicate — not the model's prose — is the sole authority on whether auto-merge is enabled. All PR content (diff, title, body, comments) is treated as untrusted data, never as instructions.
  • Trusted-author only. Auto-merge is enabled only for PRs authored by the trusted Praktor bot identity (verified by login, not a user-settable label) that link a boule:managed kind:task.
  • Bounded blast radius. A per-run merge cap (KRITES_MAX_MERGES, default 1), single-concurrency workflow, SHA-pinned review (a force-push under the claim invalidates it), live boule:halt re-poll before enabling merge, and --dry-run for safe planning.
  • Own, least-privilege identity. Krites uses its own GitHub App with no Administration scope, so it cannot edit its own branch protection or CI workflows.

Commands

krites doctor     # preflight: config, credentials, repo + Discussion categories, merge-capability,
                  # and branch-protection probe (fails if protection is absent)
krites next       # list reviewable PRs (trusted-author, linked Task, not draft/merged/reviewed)
krites status     # pipeline snapshot: candidate / approved / changes-requested PRs + active claims
krites review     # claim → review → post review → gated auto-merge-enable for one PR

Global flags: --repo, --project, --budget, --max-turns, --dry-run, --json, --verbose.

Configuration

See .env.example. Krites resolves its GitHub identity from the KRITES_APP_* trio (preferred) or a KRITES_GITHUB_TOKEN / GITHUB_TOKEN PAT fallback. Behaviour knobs (KRITES_MERGE_METHOD, KRITES_REQUIRE_CI, KRITES_MAX_MERGES, KRITES_TRUSTED_AUTHOR) are validated by a zod schema with safe defaults.

License

MIT © Bill Schumacher