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

rundoc

v0.1.0

Published

AI-Native Markdown Docs for running teams.

Readme

RunDoc

AI-native Markdown docs for running teams.
面向高速运转团队的 AI-native Markdown 文档系统。

RunDoc keeps documentation close to the work that changes it. It watches repository state, understands what changed, maps those changes to the right Markdown files, and prepares reviewable documentation updates.

RunDoc 的目标不是“多一个文档站”,而是让文档跟随项目一起运行:代码、配置、产品规则一变,文档就能被识别、映射、更新和审核。

Detect -> Understand -> Map -> Patch -> Commit

Why RunDoc

Most documentation systems solve publishing. Running teams have a harder problem: documentation decays as the product changes.

大多数文档系统解决的是“怎么展示文档”。真实团队更难的问题是:产品和代码每天都在变,文档很快就过期。

RunDoc treats documentation as an operational system:

  • Markdown remains the source of truth.
  • Git remains the review and history layer.
  • AI agents receive structured context instead of scraping pages.
  • Every update should be traceable to project changes.
  • Existing docs are patched before new summaries are generated.

RunDoc 把文档视为团队运行系统的一部分:

  • Markdown 仍然是唯一事实源。
  • Git 负责审核、历史和协作。
  • AI 读取结构化上下文,而不是猜网页内容。
  • 每次文档更新都应该能追溯到项目变化。
  • 优先更新已有文档,而不是制造孤立总结。

Product Shape

RunDoc has two layers.

1. Documentation Engine

The engine is the AI-native core.

Git / Repo State
  -> Detect changed files and commits
  -> Understand impacted domains
  -> Map changes to docs
  -> Patch Markdown
  -> Commit or prepare review

2. Documentation UI

The UI is a clean React + Vite docs site for reading docs/.

It includes:

  • sidebar navigation
  • full-text search metadata
  • page table of contents
  • previous/next navigation
  • Markdown rendering
  • AI-oriented document structure

Repository Layout

docs/                         Official documentation source
  00-positioning/             Positioning and product thesis
  01-product/                 Product pages and behavior
  02-business/                Business process and roles
  03-technical/               API, schema, architecture, runtime
  04-ai/                      AI context, change maps, acceptance checks
  05-decisions/               Decision records
  06-ops/                     Deployment and operations
  07-archive/                 Deprecated or historical docs

.rundoc/                      RunDoc runtime workspace
  config.yml                  Project policy and schedule
  prompts/                    Stable prompts for documentation tasks
  agents/                     Agent protocols for Codex / Claude
  state/                      last_commit, last_scan, doc_index
  reports/                    Scan and task reports

scripts/rundoc.mjs            RunDoc CLI
src/                          React documentation UI

CLI

RunDoc can run through npm scripts or as a linked CLI.

npm install
npm link
rundoc config
rundoc check
rundoc scan
rundoc task

Equivalent npm scripts:

npm run rundoc:config
npm run rundoc:check
npm run rundoc:scan
npm run rundoc:task

Commands

| Command | Purpose | | --- | --- | | rundoc init | Initialize .rundoc/ and standard docs structure | | rundoc init --rebuild | Move existing docs/ into docs_legacy/ and rebuild the standard skeleton | | rundoc check | Validate required RunDoc structure | | rundoc config | Print effective YAML + .env configuration | | rundoc scan | Analyze last_commit..HEAD and create an impact report | | rundoc task | Generate an agent task from the latest scan report | | rundoc advance | Mark current HEAD as the new scan baseline |

Quick Start

npm install
npm run rundoc:init
npm run rundoc:check
npm run rundoc:scan
npm run rundoc:task

Run the docs UI:

npm run dev

Build the site:

npm run build
npm run check:docs

Configuration

RunDoc uses .rundoc/config.yml for project policy and .env for local overrides.

project:
  name: RunDoc
  docs_root: docs
  default_locale: zh-CN

schedule:
  cadence: daily
  run_at: "09:00"
  timezone: "Asia/Shanghai"

Environment overrides:

RUNDOC_DEFAULT_LOCALE=zh-CN
RUNDOC_SCHEDULE_CADENCE=daily
RUNDOC_SCHEDULE_RUN_AT=09:00
RUNDOC_SCHEDULE_TIMEZONE=Asia/Shanghai

Agent Protocol

RunDoc uses a stable-protocol plus per-run-task model.

Stable protocols:

.rundoc/agents/AGENT.md
.rundoc/agents/CLAUDE.md

Per-run task files:

.rundoc/reports/YYYY-MM-DD-task.md

This keeps long-term agent behavior stable while each run remains scoped to the current project changes.

AI-native Direction

RunDoc is designed to expose structured context for AI systems.

Planned interfaces:

GET /api/docs/tree
GET /api/docs/doc/:id
GET /api/docs/search?q=
GET /api/docs/context?path=
GET /api/docs/related?path=
POST /api/rundoc/scan
POST /api/rundoc/write
POST /api/rundoc/check
POST /api/rundoc/commit

The long-term contract is a document model that AI can rely on:

doc_id
path
title
section
summary
headings
chunks
links
updated_at
source_hash

中文说明

RunDoc 是一个项目变更驱动的 Markdown 文档维护系统。

它不是传统 CMS,也不是 docsify 包装层。RunDoc 关注的是团队运行时的文档问题:当代码、配置、接口、页面和产品规则变化时,系统能判断哪些文档受影响,并生成可审核的更新任务。

核心闭环:

  1. Detect:读取 Git diff、commit、文档变化。
  2. Understand:判断影响域,例如 product、technical、ai、ops。
  3. Map:映射到 docs/ 中的目标文档。
  4. Patch:对 Markdown 做最小必要修改。
  5. Commit:生成可审核提交或 MR 任务。

推荐使用方式:

npm install
npm link
rundoc init
rundoc check
rundoc scan
rundoc task

如果是历史项目迁移:

rundoc init --rebuild

这会把旧 docs/ 移到 docs_legacy/YYYY-MM-DD/,并生成标准化 docs/00~07 文档结构。

Status

Current MVP:

  • React + Vite documentation UI
  • Markdown content build pipeline
  • search index generation
  • docs structure validation
  • RunDoc CLI skeleton
  • scan report generation
  • agent task generation
  • AI agent protocol files

Next:

  • automatic Markdown patching
  • branch / commit automation
  • GitLab MR integration
  • document freshness checks
  • structured AI context API

License

TBD.