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

@sabbz/archeion

v0.2.1

Published

Decision records turned into a registry of facts with history, and interactive views of it.

Readme

Archeion turns a repo's decision records (ADRs) into a registry of facts, one rule per fact, each with its history: when it was decided, amended, built and shipped, and why. From that registry it builds a self-contained page with six views of it:

  • Board: the concepts as columns and their rules as cards.
  • Agenda: every event, newest first, by day or by release.
  • Timeline: the concepts as lanes across the days, with each event a mark.
  • Hive: one axis per concept, and the links between rules of different concepts.
  • Map: every rule a point, placed near the concepts it links to most.
  • Sources: where the rules come from and where they live: keywords, ADRs and code.

It comes in three parts:

  • A skill for coding agents: it reads your ADRs, extracts the rules and opens them as a pull request for you to review.
  • A small CLI: check keeps the rules in step with the ADRs in CI, and build writes the page.
  • An open format for the registry that both share.

Live examples:

Contents

Status

0.2.0 is the current release, on npm's latest tag as @sabbz/archeion; 0.1.0 was the first. The code moved here from isoloop, where it was built on that project's real registry (527 rules), with its history.

How it works

  • You write decisions as ADRs, in your usual template; Archeion reads them with its own parser, no model involved.
  • Your agent turns each decision into rules (/archeion init, /archeion update) and opens them as a pull request for you to review.
  • Each decision's Rules: line names its rules, and each rule cites the decision back; archeion check fails when the two disagree.
  • In CI, a decision that changed needs a change to one of its rules; cosmetic edits pass on their own.
  • archeion ship dates rules by release, and archeion build writes the page.

The details, with a diagram: How Archeion works.

Install

Archeion needs Node 22.12 or later. There are three ways to run it.

Without installing, with npx. Good for trying it and for one-off commands such as skill. npx fetches the package for the command and adds nothing to the repo:

npx @sabbz/archeion <command>

As a dev dependency, for a team's Node repo. This is the recommended way when the repo has a package.json. The version is pinned in package.json and the lockfile, so everyone on the team, the skill and archeion check in CI run the same one:

npm install --save-dev --save-exact @sabbz/archeion
npx archeion <command>

Globally, for your own use across repos. One archeion command everywhere. Its version isn't pinned to any repo, so it can drift from the one the repo's skill expects; the skill never uses it:

npm install --global @sabbz/archeion
archeion <command>

Getting started

The skill ships in the package. From your repo's root:

npx @sabbz/archeion skill

It writes .agents/skills/archeion/, which Codex, Gemini CLI, GitHub Copilot and Cursor read, and also .claude/skills/archeion/ when the repo has a .claude/ folder or a CLAUDE.md. --dir <path> writes one skills folder of your choice instead. Commit what it writes, so everyone on the team runs the same version. Then ask your agent for /archeion init: it creates the Archeion folder, reads your ADRs and proposes the first rules as a pull request.

The skill runs the CLI of its own version: the repo's install when there is one, otherwise npx @sabbz/archeion@<that version>, which adds nothing to the repo. In a Node repo, /archeion init offers the dev dependency (Install). To upgrade, bump the version and run archeion skill again: it replaces copies nobody edited and refuses edited ones unless --force.

Commands

npx @sabbz/archeion <command>

| Command | What it does | | --- | --- | | serve | The site on localhost, on port 2724 or the next free one, rebuilt when a rule or an ADR changes. --port <n> is the first port to try. | | build | The rules README.md and the site: web/index.html (self-contained) and web/rules.json. --out <dir> and --base <path> for hosting it elsewhere; --specimen also writes the design system's specimen page. | | triage | What each ADR decides and what changed since the commit in state.json, read without a model: each decision with its Rules: line and the rules citing it, their mismatches, the alternatives, the blocks it couldn't read, and each change with its kind. It reads the working tree. --base <rev> reads changes against a PR's base; --json is the skill's input. | | check | Validates the registry: fields, ids, events, refs to ADRs and other decision documents, Rules: lines, and that each ADR heading's Rules: line names exactly the rules whose events cite it (ADR 0009), and that the README is current. It also pairs ADR changes with rule changes since the commit in state.json, decision by decision: each decision that changed needs a change to a rule on its Rules: line, or a new id there, and a cosmetic change needs none. It fails when a rule id disappears (ADR 0007). --base <rev> pairs against a PR's base instead; --no-rules and --rules-moved are the two exemptions; --record writes HEAD to state.json after a pass. For CI, with the full history checked out. | | ship <version> | Marks the rules planned for <version> as shipped, dated by the v<version> tag. --date <YYYY-MM-DD> dates them when there's no tag; --dry lists them without writing. | | skill | Installs or updates the skill for coding agents (see above). check notes a copy whose version differs from the CLI's. |

Every command except skill takes --root <dir>, and every command rejects flags it doesn't know.

Everything lives in one folder, .archeion/ by default (ADR 0002):

.archeion/
  archeion.json   config (see Configuration); it also marks the folder
  theme.json      optional: your own look, read when archeion.json sets "theme": "custom"
  rules/          the registry and its generated README.md
  state.json      the commit the registry matches the ADRs as of
  web/            the built site (gitignored)

The page

One self-contained HTML file: no server, no network, no fonts to fetch. The top bar holds the title, the search, the colour mode, the tabs and the range. One tab fills the main column at a time.

The tabs

| Tab | Key | What it shows | | --- | --- | --- | | Board | 1 | The concepts as columns and their rules as cards, each card with its status, values and latest event. Columns start collapsed; each header counts its rules by status. | | Agenda | 2 | Every event in the range, newest first, by day or by release. By day shows a month at a time, by release up to 31 releases. Each day or release is a group that opens to its events, a page at a time (10, 25, 50 or 100). | | Timeline | 3 | The concepts as lanes across the days, release days marked, each event a mark. Events shows each event; Churn shows the amended, clarified and corrected events as a heat ramp. Presets set the range: all, 14 days, 7 days, around a release. | | Hive | 4 | One axis per concept, a dot per rule from its first event (centre) to its newest (tip), and links between rules of different concepts. Chips choose the link kinds: related, same ADR section, same symbol, same code file. Keys too common to draw are listed under the plot, each with a checkbox to draw it. | | Map | 5 | Every rule a point and every concept a region, placed near the concepts it links to most. The same registry always gives the same map. | | Sources | 6 | Three views: the keyword map (keywords that tag the same rules sit close together), which ADRs feed which concepts, and which code files hold the most rules. Picking a mark lists its rules. |

The tabs sit in groups: the Board; the Agenda and Timeline, about time; the Hive and Map, about links; and Sources.

The Hive and the Map pan and zoom: drag, scroll, pinch, or the controls in the top-left corner, which also fit everything and centre on the selected rule. Zooming spreads the marks apart rather than enlarging them.

Filters, the rule panel and the range

  • Filters: a drawer on the left, minimised to a rail. Its sections are Status, Concepts, Keywords and Health (the registry's own checks, such as concepts with no written link to another concept). Every tab follows them, and the search.
  • The rule panel: selecting a rule anywhere opens it on the right: its status, concept and the values it names, its statement, its related rules, and its history, each event with its date, its ref and its why. "Show in timeline" opens the Timeline on that rule.
  • The range: the slider in the top bar has a start and an end, from the first event to today by default, with the release days marked. The Board, Hive, Map and Sources show the rules as they stood at the end; the Agenda and Timeline show the events in between. "N changed" lists what changed across the range: new rules, ended rules, status changes and wording changes. The range is kept in the URL, as ?from=&to=, and the tab as #board and so on.
  • Tooltips: every mark and control has one. They show on hover and on keyboard focus.

Keyboard

? lists these on the page.

| Key | What it does | | --- | --- | | 1–6 | Board, Agenda, Timeline, Hive, Map, Sources | | / | Search | | j k | Next and previous rule; opens it in the panel | | f | Open or minimise the filters | | t | On a chart: show it as a table | | ← → ↑ ↓ | On a focused chart: move between rules or cells | | Enter | On a chart: open what the cursor is on | | + − 0 | On the Hive and the Map: zoom in, zoom out, fit everything | | [ ] | The range: move its end a step earlier or later | | , . | On the Agenda: the earlier or later page | | ← → Home End | On a range handle: a step, Shift for the next release, the first or last day | | c | The range: open or close the list of what changed in it | | Esc | Close the panel, a dialog, or the search | | ? | The list of keys |

Widths and accessibility

The page is made for a desk: designed at 1180 pixels and wider, fully usable from 760, and readable and working down to 400 (a phone, or a laptop zoomed to 320%). Below 1180 the rule panel covers the page, and below 760 the filters open over it.

Colours meet WCAG AA in both built-in themes, light and dark. Every chart has a keyboard path and a table (t), and every dot has a click target of at least 24 pixels.

Configuration

archeion.json in the Archeion folder. Every key is optional; archeion check fails on one it doesn't know.

| Key | What it sets | Default | | --- | --- | --- | | project | The project's name. The page and the rules README are called " Archeion", or just "Archeion" without one. | none | | theme | The page's look: "archeion", "neutral" or "custom" (see Theming). | "archeion" | | mark | false hides the Archeion mark, a link to this repo, from the page's top bar. | true | | adrDir | Where the ADRs live, relative to the repo root, as NNNN-title.md. | "docs/adr" | | rulesLinesFrom | From this ADR number on, every decision and amendment has a Rules: line. | "9999" (none) | | sources | Other folders of decision documents a ref can open, by kind: { "rfc": "docs/rfcs" } makes rfc/0001#anchor a ref. | {} | | github | { "owner": "…", "repo": "…" }, for links from refs; empty leaves refs unlinked. | empty | | packagesDir | Where published packages live, relative to the repo root, to read a shared version. | none | | links | { "cap": n }: a key shared by more than n rules in view is too common to draw as links. | { "cap": 12 } | | symbolsIgnore | Backticked names that aren't symbols worth linking or searching by. | [] | | readmeIntro | The rules README's first paragraph, in Markdown. | a generic one | | adr | File patterns and section names added to the ADR reader's defaults: { "files": ["RFC-<n>.md"], "decision": ["Proposal"], "alternatives": ["Rejected ideas"], "notUnits": ["Risks"] }; in a pattern <n> is the number and * any name. Tendermint-style ADRs, whose Decision section points to their Detailed Design, add "decision": ["Detailed Design"] (ADR 0009). | none |

Theming

"theme" picks the page's look:

  • "archeion", the default: Archeion's own look, light and dark.
  • "neutral": plain cool greys with the same accent and status colours.
  • "custom": your own, from a theme.json in the Archeion folder, so the page looks like the rest of your docs. Set only what differs from the archeion theme.

A theme.json for "custom":

{
  "brand": {
    "accent": "#0a7d5a",
    "fontSans": "Inter, system-ui, sans-serif",
    "fontSize": 15,
    "radius": 8,
    "density": "compact"
  }
}
  • brand: background, surface, text, muted, border, accent, accentText, success, warning and danger (hex colours), fontSans and fontMono (font-family lists), fontSize and radius (px), and density (compact or roomy).
  • dark: any of the colours again, for dark mode. When brand sets any colour, the whole dark palette is derived from your light colours, and dark overrides any of them. When it sets none, the archeion theme's own dark colours stay.
  • modes: ["light"] or ["dark"] for a page with one mode and no switch.
  • tokens: any design token by name, such as "cat-3": "#c2410c", when the brand isn't enough.

The page loads no fonts itself, so name fonts your site already serves, with a fallback. archeion check fails on a key or value it doesn't know, and on "custom" without a theme.json; it notes a theme.json that a built-in theme leaves unread, and build and check warn when a colour pair falls below WCAG AA contrast.

The format

The registry is JSON, one file per concept in rules/, plus concepts.json (the concepts, in order) and keywords.json (the keyword vocabulary). archeion check validates it with no library (ADR 0003). One rule, from this repo:

{
  "id": "cmd.skill-folders",
  "statement": "`archeion skill` always writes `.agents/skills/archeion/`, also writes `.claude/skills/archeion/` when the repo root has `.claude/` or `CLAUDE.md`, and writes nothing else; `--dir <path>` names one skills folder instead, read from the repo root unless absolute, and the skill goes in `archeion/` under it. It reports each folder it wrote and why.",
  "status": "decided",
  "target": "0.1.0",
  "related": ["cmd.skill"],
  "events": [
    {
      "type": "decided",
      "date": "2026-11-29",
      "ref": "adr/0002#amended-2026-11-29-distributing-the-skill",
      "why": "Codex, Gemini CLI, Copilot and Cursor read `.agents/skills/`; Claude Code reads only `.claude/skills/`."
    },
    {
      "type": "built",
      "date": "2026-11-29",
      "ref": "#22",
      "why": "archeion skill writes .agents/skills/ always, .claude/skills/ when Claude Code is found, or the one --dir folder."
    },
    {
      "type": "clarified",
      "date": "2026-11-29",
      "ref": "adr/0002#amended-2026-11-29-installing-the-skill-as-built",
      "why": "#22 settled what `--dir` names and where a relative path starts.",
      "prev": "`archeion skill` always writes `.agents/skills/archeion/`, also writes `.claude/skills/archeion/` when the repo root has `.claude/` or `CLAUDE.md`, and writes nothing else; `--dir <path>` writes that one folder instead. It reports each folder it wrote and why."
    }
  ]
}
  • id: <prefix>.<slug>, never changed. A renamed rule gets a new id and keeps the old one in aliases.
  • statement: what holds, in one or two present-tense sentences, with no why.
  • status: active, decided, proposed, withdrawn, rejected or superseded. A rule that stops holding changes status; it's never deleted.
  • Other fields: since and target (versions), values, knob, errors, code (paths), related, supersededBy, aliases, keywords, experimental, and repo for a rule about how the repo works rather than what it ships.

Each event has a type, a date, a ref a reader can open, and a one-line why:

| Event | What happened | Ref | | --- | --- | --- | | proposed | Put forward, not yet decided. | ADR, source document, PR or issue | | decided | Decided. | ADR or source document | | clarified | Reworded, with no change to what holds; carries prev. | ADR or source document | | amended | Changed; carries prev, what held before. | ADR or source document | | built | Merged, not yet released. | PR or issue | | shipped | Released. | Release tag | | corrected | The record put right, where it said something the decision didn't. | ADR or source document | | reopened | Open again after it was settled. | PR or issue | | removed | Taken out: it no longer holds. | ADR or source document | | rejected | Considered and turned down. | ADR or source document | | withdrawn | Proposed, then dropped. | ADR or source document | | superseded | Replaced by another rule. | ADR or source document |

A ref is adr/NNNN#anchor for an ADR heading (adr/<file name>#anchor when two ADR files share a number), <kind>/NNNN#anchor for another source document, #N for a PR or issue here (repo#N or owner/repo#N elsewhere), or vX.Y.Z for a release tag.

Licence

MIT