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

harness-auto-docs

v0.4.4

Published

Auto-generate Harness Engineering docs on git tag

Readme

translation

harness-auto-docs

Auto-generate Harness Engineering style documentation when your project creates a git tag. Routine doc updates commit directly; significant changes open a PR.

Usage

GitHub Actions

Add .github/workflows/harness-docs.yml to your project (see examples/github-workflow.yml), then set:

  • GitHub repository settingSettingsActionsGeneralWorkflow permissions: choose Read and write permissions if your org default is read-only, and enable Allow GitHub Actions to create and approve pull requests so the default GITHUB_TOKEN can open or update pull requests.
  • ANTHROPIC_API_KEY / OPENAI_API_KEY / MINIMAX_API_KEY / … — API key for the chosen provider (see Supported models below)
  • AI_MODEL — model name, e.g. claude-sonnet-4-6, gpt-4o, or MiniMax-M2.7
  • GITHUB_TOKEN — provided automatically by GitHub Actions
  • HARNESS_DOCS_BASE_BRANCH (recommended in Actions) — PR base branch, e.g. ${{ github.event.repository.default_branch }}. Avoids relying on origin/HEAD in shallow or tag-only checkouts.
  • HARNESS_DOCS_STRATEGY (optional) — auto (default) commits routine per-tag output directly when only core targets run, and opens a PR when conditional targets fire; direct always commits to the base branch; pr always opens a PR.

Merge strategy: With auto, core targets are the files the tool always generates (docs/design-docs/vX.Y.Z.md, design-doc index, tech-debt tracker). Entry docs such as AGENTS.md / ARCHITECTURE.md are not auto-appended—keep them curated in-repo. Conditional targets (frontend, security, infra, schema, new features/deps) still widen the scope and trigger a PR in auto mode.

When PRs are used, re-running the workflow for the same tag updates the existing harness-docs/v* branch: the CLI fetches that branch and pushes with --force-with-lease so a new doc commit can replace a previous one without a non-fast-forward error.

GitLab CI/CD

Add the job from examples/gitlab-ci.yml to your .gitlab-ci.yml, then set these CI/CD Variables (Settings → CI/CD → Variables):

  • GITLAB_TOKEN — a Project Access Token or Personal Access Token with api + write_repository scopes (CI_JOB_TOKEN is used as a fallback for same-project MRs)
  • ANTHROPIC_API_KEY / OPENAI_API_KEY / … — API key for the chosen provider
  • AI_MODEL — model name

When you push a tag (git tag v1.2.0 && git push --tags), a Merge Request is automatically opened with updated documentation.

What gets updated

| File | Always | Conditional | |------|--------|-------------| | docs/design-docs/vX.Y.Z.md | ✓ | | | docs/design-docs/index.md | ✓ | (list line after HTML marker) | | docs/exec-plans/tech-debt-tracker.md | ✓ | (## vX.Y.Z section per release) | | AGENTS.md, ARCHITECTURE.md, docs/DESIGN.md, docs/QUALITY_SCORE.md | | Not auto-written — maintain manually | | docs/FRONTEND.md | | frontend files changed | | docs/SECURITY.md | | auth/security files changed | | docs/RELIABILITY.md | | infra files changed | | docs/generated/db-schema.md | | SQL/schema files changed | | docs/product-specs/index.md | | new features detected | | docs/references/ | | new dependencies added |

Local run

AI_MODEL=claude-sonnet-4-6 ANTHROPIC_API_KEY=sk-ant-... GITHUB_TOKEN=ghp_... npx harness-auto-docs

Supported models

Model routing is determined by the prefix of AI_MODEL:

| Prefix | Provider | API key env var | Example models | |--------|----------|-----------------|----------------| | claude-* | Anthropic | ANTHROPIC_API_KEY | claude-sonnet-4-6, claude-opus-4-6 | | gpt-* | OpenAI | OPENAI_API_KEY | gpt-4o, gpt-4o-mini, o3 | | MiniMax-* | MiniMax | MINIMAX_API_KEY | MiniMax-M2.7 | | qwen-* | Qwen (阿里云) | QWEN_API_KEY | qwen-turbo, qwen-plus, qwen-max | | glm-* | 智谱 | ZHIPU_API_KEY | glm-4, glm-4-flash | | deepseek-* | DeepSeek | DEEPSEEK_API_KEY | deepseek-chat, deepseek-coder | | doubao-* | 豆包 (ByteDance) | DOUBAO_API_KEY | doubao-pro-4k | | moonshot-* | Kimi (Moonshot) | KIMI_API_KEY | moonshot-v1-8k, moonshot-v1-32k | | grok-* | Grok (xAI) | GROK_API_KEY | grok-2, grok-beta |

Future

  • GitLab self-hosted instance support (custom CI_SERVER_HOST)