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

@luxia/domain-docs

v0.0.8

Published

Agnos docs domain plugin

Readme

@luxia/domain-docs

npm version license

agnos domain plugin that owns the docs category: a structured documentation route with an auto-generated index and frontmatter rules that agents can read before they write.

What it does

  • Owns the docs block in agnos.json.
  • Scaffolds a documentation route (default .docs/) with an index.md, optional content.md, and a doc-rules.md file.
  • Defines a frontmatter metadata schema that every doc must satisfy. The default schema includes title, description, read_when, and agent_cant.
  • Generates and validates docs from the CLI.
  • Injects the docs index and rules into the project rules file (typically AGENTS.md) so every agent's first read includes it.
  • Watches the docs route for changes and re-injects on save.

Why a docs domain?

Most agents discover and use project docs through whatever lives in AGENTS.md. This domain gives that file a real index and a real ruleset, so an agent reading the rules file gets a structured map of what docs exist, when to read each one, and what it must not do with them.

Install

You usually get this for free with @luxia/agnos. Standalone:

pnpm add -D @luxia/domain-docs

Configuration

{
  "docs": {
    "route": ".docs",
    "indexName": "index",
    "contentName": "content",
    "docRulesName": "doc-rules",
    "injectIndex": true,
    "injectRules": true
  }
}

All fields are optional. The defaults shown above are applied when missing.

You can also customize the metadata schema:

{
  "docs": {
    "metadata": {
      "title": "Short, human-readable title.",
      "owner": "GitHub handle of the person responsible.",
      "agent_cant": "What the agent must not do with this file: read, write, delete, or a combination."
    }
  }
}

CLI

| Command | What it does | | ---------------------------- | -------------------------------------------------------------- | | agnos docs init | Scaffold the docs route. Idempotent. | | agnos docs generate | Generate index.md from the docs that live under route/. | | agnos docs validate | Check that every doc satisfies the metadata schema. | | agnos docs inject | Inject the index and rules blocks into the project rules file. | | agnos docs watch (default) | Watch the docs route and re-inject on change. |

License

MIT.