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

@onenomad/przm-cortex-pipeline-code-dossier

v0.7.0

Published

Code dossier pipeline: 3-pass LLM extraction over a checked-out repo (structural -> synthesis -> brief). Emits ~20 high-signal architectural memories instead of ~1000 raw file chunks.

Downloads

132

Readme

@onenomad/przm-cortex-pipeline-code-dossier

Code dossier pipeline. Runs a 3-pass LLM-driven architectural extraction over a checked-out repo and emits a small number of high-signal memories — a brief-typed architectural dossier plus one decision per ADR and one reference per significant entry point.

This is a deliberate alternative to @onenomad/przm-cortex-pipeline-code, which walks every file and emits hundreds of low-signal chunks suitable for code search. The two pipelines coexist; callers (MCP tools, adapters) choose between them via a mode parameter.

Why it exists

A team using Cortex to "remember a repo" doesn't usually want code search — they want to know what the repo IS. The dossier pipeline captures architecture, key modules, design decisions, and tech stack at the level a new teammate would summarize them on a wiki page. The output reads like a hand-written architectural overview because that's what the synthesis prompt asks for.

Output shape

Each run() invocation produces a PipelineMemory[]:

| Type | Count | Content | | ----------- | ----------------------- | ------------------------------------------------- | | brief | 1 | The synthesized architectural dossier (markdown). | | decision | one per docs/ADR-*.md | The ADR file verbatim. | | reference | one per entry point | The entry point file verbatim. |

When ctx.llm is not available, the pipeline gracefully degrades to a single brief memory containing the raw structural payload (no synthesis). The caller can still re-run later under a configured LLM to upgrade quality.

Inputs

import type { CodeDossierInput } from "@onenomad/przm-cortex-pipeline-code-dossier";

const input: CodeDossierInput = {
  repoPath: "/abs/path/to/checkout",
  sourceIdPrefix: "github:OneNomad-LLC/cortex",
  project: "cortex",            // optional
  tags: ["dossier"],             // optional
  sourceUrl: "https://github.com/OneNomad-LLC/cortex", // optional
};

Re-derivation gating

computeInputsSha(input) returns a stable SHA-256 over the structural payload (sorted file paths + content hashes). Callers use it to decide whether to re-run synthesis; the pipeline itself always runs when invoked.

Prompts

Prompts live as markdown files in src/prompts/. Per ADR-007 they are never inlined in code — review and tuning happen in the .md files alongside the implementation.