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

@davidcjw/questlog

v0.1.1

Published

A zero-dependency CLI that scans a folder of git repos and reports which ones need attention: uncommitted changes, unpushed commits, stale repos, and missing README/AGENTS.md/tests.

Readme

questlog

npm version CI License: MIT Node Tests Runtime deps

A zero-dependency CLI that scans a folder of git repos and tells you, at a glance, which ones need attention — uncommitted changes, unpushed commits, stale repos, and missing README / AGENTS.md / tests.

Built for people who keep dozens of side projects in one folder and lose track of which ones have local work that never got committed or pushed.

$ questlog ~/code

  REPO                 BRANCH   DIRTY  UNPUSHED  STALE   GAPS
  ────────────────────────────────────────────────────────────────
  miles-wallet         main     ●3     ↑2        12d     —
  timesync             main     —      —         3d      tests
  osrs-hours-to-max    main     ●1     —         48d ⚠   README

  41 repos  ·  7 dirty  ·  3 unpushed  ·  5 stale (>30d)  ·  4 with gaps

The demo above was recorded with vhs against a sample folder — regenerate with vhs docs/demo.tape.

Table of Contents

Why

If ~/code holds 40 repos, "which ones have work I forgot to push?" is a real question. questlog answers it in one command, with no config and no runtime dependencies — it just shells out to the git you already have.

Install

Requires Node.js >= 18 and git on your PATH.

# run without installing
npx @davidcjw/questlog ~/code

# or install globally
npm install -g @davidcjw/questlog
questlog ~/code

# or clone and link for development
git clone <repo-url> questlog && cd questlog
npm install
npm link

Usage

questlog [path] [options]

path defaults to the current directory. If path is itself a git repo, only that repo is shown; otherwise its immediate subdirectories are scanned for repos.

Options

| Option | Description | | --- | --- | | --stale-days <n> | Days since last commit before a repo is "stale" (default 30). | | --depth <n> | How many folder levels deep to search (default 1). | | --dirty-only | Show only repos with uncommitted changes. | | --unpushed-only | Show only repos with unpushed commits. | | --stale-only | Show only stale repos. | | --gaps-only | Show only repos missing README / AGENTS.md / tests. | | --attention | Show only repos that need attention (any of the above). | | --json | Output machine-readable JSON. | | --no-color | Disable ANSI colors (also respects NO_COLOR). | | --ci | Exit with code 1 if any repo is dirty, unpushed, or stale. | | -h, --help | Show help. | | -v, --version | Show version. |

Examples

# everything in ~/code
questlog ~/code

# only repos that need attention, with a tighter staleness window
questlog ~/code --stale-days 14 --attention

# dump JSON for scripting
questlog ~/code --json > status.json

# fail a pre-push hook / CI step if the current repo is dirty or unpushed
questlog . --ci

What each column means

  • DIRTY●N: N changed or untracked entries in the working tree.
  • UNPUSHED↑N: N commits on the current branch not yet on its upstream. ? means no upstream is configured.
  • STALE — days since the last commit; once it crosses --stale-days.
  • GAPS — which of README, AGENTS.md, or tests are missing. (Tests are detected via a test/tests/__tests__/spec directory or a real package.json test script.)

JSON output

--json prints { root, summary, repos[] }, where each repo has name, path, branch, dirty, unpushed, ageDays, stale, gaps, and error. Useful for piping into jq or a dashboard.

How it works

questlog is intentionally small and layered so it's easy to reason about and test:

  • src/git.js — thin, best-effort wrappers around the git binary.
  • src/scan.js — repo discovery + filesystem heuristics (the only other I/O layer).
  • src/analyze.jspure functions: facts → report rows + summary (clock injected).
  • src/format.jspure presentation: rows → table or JSON.
  • src/cli.js — argument parsing and orchestration, written so it can be tested without spawning a process.

Development

npm install
npm test          # run the vitest suite
npm run coverage  # with coverage
npm start -- ~/code

Contributing

Contributions are welcome! Please open an issue first to discuss what you'd like to change.

  1. Fork the repo
  2. Create a feature branch (git checkout -b feature/your-feature)
  3. Commit your changes (git commit -m 'feat: describe change')
  4. Push and open a pull request

Please keep analyze.js / format.js pure (no I/O, clock injected) and make sure npm test passes before submitting a PR.

Code of Conduct

This project follows the Contributor Covenant v2.1. By participating you agree to uphold a welcoming, harassment-free environment.

License

Distributed under the MIT License. See LICENSE for details.

© David Chong

Roadmap

  • [ ] --fetch to compare against remotes before counting unpushed/behind commits
  • [ ] Show "behind upstream" counts alongside unpushed
  • [ ] Configurable columns and a --sort flag
  • [ ] Optional config file (.questlogrc) for default root, stale window, and ignores
  • [ ] Watch mode for a live dashboard

Acknowledgements

Built to tame a ~/code folder with dozens of side projects. Powered by the git you already have — no runtime dependencies.