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

@kitlangton/lgtm

v0.3.0

Published

Auto-approve selected contributors' pull requests with whimsical AI reviews

Readme

LGTM

Tiny Bun CLI process that discovers contributors in the current GitHub repo, lets you choose who to auto-approve, and then keeps polling for their open pull requests with overly literary review bodies.

How it works

  • You run lgtm inside a local git checkout.
  • LGTM resolves the repo from git remote origin.
  • It asks GitHub who the contributors are and lets you multi-select the people to auto-approve.
  • It saves that per-repo config to ~/.config/lgtm/config.json.
  • It polls GitHub every 60 seconds on a fixed Effect schedule.
  • For each matching open PR, it skips PRs you already approved, then runs gh pr review --approve with a generated review body.
  • Draft PRs get Looks <random G-word> To Me! (EVEN THOUGH IT'S STILL A DRAFT, GREAT JOB @author!) plus a haiku.
  • Ready PRs get Looks <random G-word> To Me! plus a sonnet.
  • The poem is generated by opencode run -m opencode/kimi-k2.5 from the PR title and description.
  • On macOS, lgtm background ... manages a per-repo launchd agent for daemon-style watching.

Architecture

  • src/services/lgtm.ts is the main orchestration service.
  • src/services/background.ts manages launchd agents for background mode on macOS.
  • src/services/github.ts, src/services/repo.ts, src/services/config-store.ts, src/services/prompt.ts, and src/services/logger.ts are Effect services with layers.
  • src/models.ts defines schema-backed runtime models used to decode config and GitHub JSON.
  • src/errors.ts defines tagged Effect errors for shell, config, prompt, and decode failures.
  • src/services/lgtm.test.ts covers the main orchestration paths with mocked layers.

What it does

  • Detects the current repo from your local git checkout
  • Uses gh auth for the current GitHub user
  • Lists contributors and prompts for who to auto-approve
  • Polls GitHub for open PRs authored by those contributors
  • Approves matching PRs with a generated haiku or sonnet review body
  • Can install and manage a background watcher per repo on macOS
  • Stores config in ~/.config/lgtm/config.json

Run

bun run start

Or after publishing to npm:

bunx @kitlangton/lgtm

Run it from inside the repository you want to watch.

Options

bun run start --setup   # reconfigure current repo
bun run start --once    # poll once and exit
bun run start background start
bun run start background status
bun run start background logs
bun run start background list
bun run start --help

Published CLI equivalents:

lgtm background start
lgtm background stop
lgtm background restart
lgtm background status
lgtm background logs
lgtm background list
lgtm background uninstall

Install

bun install -g @kitlangton/lgtm
lgtm

Notes

  • Requires gh auth login
  • Requires opencode with access to opencode/kimi-k2.5
  • Polls every 60 seconds
  • background uses launchd under the hood on macOS, including list, status, and logs
  • Approves drafts too
  • Skips PRs you already approved
  • Falls back to a templated poem if OpenCode generation fails
  • Prints colored status updates as it polls
  • bun run check runs typecheck + tests