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

living-ai-documentation

v3.52.0

Published

Local Markdown documentation hub with a built-in MCP server — coding agents create ADRs, draw diagrams and detect drift while you code.

Readme

Living Documentation

🇫🇷 Lire en français

A local workshop to generate, maintain, version, and automate your documentation.

Living Documentation is not a code generation tool. It is a documentation production tool: local Markdown, notes, processes, ADRs, diagrams, Git, AI agents, LLM providers, generated images, MCP, and automations.

Everything stays in your files. You start the tool, open the browser, and document. Then you can connect Git, your agents, your LLMs, and your workflows.

npm Node.js TypeScript License MCP

npx living-ai-documentation@latest

Living Documentation workshop


Why use it?

Documentation often ends up scattered: README files, notes, tickets, screenshots, ADRs, prompts, exports, diagrams, AI conversations, and attachments. Living Documentation brings all of that back into one local space that is readable, versionable, and usable by agents.

| Need | What Living Documentation provides | | --- | --- | | Write fast | Markdown editor, snippets, tables, images, attachments, annotations. | | Structure | Folders, categories, naming conventions, full-text search. | | Version | Git integration, automatic commits, visual comparison, block-level restore. | | Visualize | Diagram editor, images, exports, clickable links inside documents. | | Automate | Workspace, LLM providers, reusable agents, internal MCP tools. | | Stay in control | Local files, no imposed cloud, no proprietary database. |


Features that change the workflow

Local-first documentation

Your documents are simple Markdown files in a folder.

  • readable in any editor
  • versionable with Git
  • usable by your LLMs
  • portable from one project to another
  • easy to back up

Local-first model

Built-in Git, versions, and restore

When Git integration is enabled, Living Documentation can create a commit after each documentation save. You can then open a document history, compare HEAD with an older commit, and restore precise blocks into the current document.

Git, versions, and restore

Workspace, LLMs, and agents

The Workspace lets you configure LLM providers and create documentation agents: translation, correction, summary, image generation, Markdown improvement, draft production, document audit.

Agents can work in Chat only mode or with Living Documentation MCP tools when the provider supports them.

Workspace providers agents

Agents available from the whole app

Once created, agents are available from the Agents menu, no matter which page is open. Each execution produces a run document with status, input, response, and optional debug details.

Agents menu

Diagrams and sketches

Living Documentation includes a built-in diagram editor. You can draw manually, link diagrams to Markdown documents, export them, or let an agent propose a first version from a document.

Diagram example

Agentic automation lab

With Workspace, MCP, LLM providers, and internal tools, Living Documentation becomes an automation lab applied to documentation. You can create agents that read a document, transform it, generate an image, write meeting notes, or enrich your documentation base.

Agentic lab


Quick start

Requires Node.js 20.19 or newer.

# Detect an existing project nearby or create an EN/FR starter
npx living-ai-documentation@latest

# Or serve an existing folder
npx living-ai-documentation@latest ./docs

# Explicit port
npx living-ai-documentation@latest ./docs --port 4000 --open

Then open:

Without a folder argument, the CLI first looks for .living-doc.json in the current folder, then one level below it. If it finds an existing Living Documentation project, it offers to launch it; otherwise it creates a complete documentation starter, in French or English, with built-in guides for Home, Markdown, Workspace, Agents, and Diagram.

When a folder argument is provided but that folder has no .living-doc.json yet, the CLI initializes that folder instead of serving it as an unconfigured project.

The folder passed to the CLI must be a relative path (./docs, ../documentation). Absolute paths and ~ are rejected to keep .living-doc.json portable.


What the app contains

| Surface | Usage | | --- | --- | | Home | Read, create, edit, search, and organize Markdown documents. | | Workspace | Configure LLM providers, MCP, agents, and image providers. | | Agents | Run agents from any page. | | Diagram | Create and edit diagrams linked to documents. | | Files | Browse attachments and documentation assets. | | AI Context | Inspect AI context, rules, memory, and the MCP explorer. | | Admin | Configure theme, language, Git, patterns, file security, agent debug. |


Writing in Living Documentation

The Home viewer is also a Markdown editor.

Useful features:

  • inline editing with disk save
  • Markdown snippets
  • assisted tables
  • ASCII trees
  • collapsible blocks
  • callouts
  • images pasted from the clipboard
  • attachments
  • annotations
  • automatic table of contents
  • full-text search

Files are organized by real folders and by categories extracted from the file name:

PROCESS/2026_06_30_10_00_[GUIDE]_prepare_a_meeting.md

Here:

  • PROCESS is the folder
  • GUIDE is the category
  • prepare_a_meeting is the title

Git and versions

Git integration is optional, but strongly recommended.

It enables:

  • automatic commits after saves
  • push disabled or push every N commits
  • warning when Git is not configured
  • detection of changes outside the documentation folder
  • Versions button on documents
  • visual diff between HEAD and a selected commit
  • block-level restore from an older version

Living Documentation only commits the configured documentation folder. Changes outside this folder are ignored and reported.


Agents and MCP

Living Documentation exposes a local MCP server at:

http://localhost:4321/mcp

MCP-compatible agents can use the internal tools to:

  • list and read documents
  • create or update a document
  • manage metadata
  • generate diagrams
  • generate images through a configured image provider
  • read the sourceRoot when necessary
  • save an execution context

The GET /mcp endpoint returns the live schemas of available tools and prompts. This README intentionally does not duplicate that list: it evolves with the product.

Claude Code example

claude mcp add --transport http living-ai-documentation http://localhost:4321/mcp

Claude Desktop example

{
  "mcpServers": {
    "living-ai-documentation": {
      "type": "http",
      "url": "http://localhost:4321/mcp"
    }
  }
}

Use the same endpoint for Cursor, Continue, or any MCP client compatible with Streamable HTTP.


Configuration

Configuration is stored in .living-doc.json, inside the documentation folder.

Example:

{
  "filenamePattern": "YYYY_MM_DD_HH_mm_[Category]_title",
  "title": "Living Documentation",
  "theme": "system",
  "language": "en",
  "port": 4321,
  "sourceRoot": "..",
  "extraFiles": [],
  "gitIntegration": {
    "mode": "enabled",
    "pushMode": "never",
    "pushEveryCommits": 1,
    "commitMessage": "docs: update living documentation"
  }
}

Important points:

  • paths are stored relatively when possible
  • sourceRoot is used by source tools and agents
  • [Category] is used to classify documents
  • Git can remain unconfigured, disabled, or explicitly enabled
  • attachment extensions can be blocked in Admin

Exports

Living Documentation can export:

  • a document as printable HTML / browser PDF
  • an HTML bundle for Notion or Confluence
  • a complete Markdown bundle
  • diagrams as images or .drawio depending on the case

Local development

git clone https://github.com/craftskillz/living-documentation.git
cd living-documentation
npm install
npm run dev -- ./documentation

In development:

Useful commands:

npm run build
npm run test:e2e
npm run test:coverage
npm run setup-hooks

To test the package as it will be published:

npm run build
node dist/bin/cli.js ./documentation

npm pack
npx ./living-ai-documentation-*.tgz ./documentation

In production, there is no Vite server on :5174. The CLI serves the UI, API, and MCP from Express, on the configured port.


Contributing

The repository enforces a bilingual README contract: if you modify README.md, you must also update README.fr.md, and vice versa.

Enable local hooks after cloning:

npm run setup-hooks

The same check runs in CI through .github/workflows/readme-sync.yml.


License

AGPL-3.0, © Youssef MEDAGHRI-ALAOUI.