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

commonloom

v0.1.0

Published

Adapter-neutral Markdown content pipeline for validated, traceable renderer-ready records.

Readme

Commonloom

Commonloom is the standalone TypeScript home for the reusable Markdown content pipeline maintained in this repository.

The imported implementation now lives in this repository:

  • src/ for Commonloom core modules
  • test/ for Commonloom core behavior tests
  • docs/ for requirements, ADRs, DDD, BDD, and roadmap notes
  • .github/workflows/ and .githooks/ for validation gates

Purpose

Commonloom is intended to be a reusable TypeScript library for compiling Markdown content into validated, traceable, renderer-ready records.

It owns generic content-pipeline behavior:

  • parse Markdown and frontmatter
  • render safe static HTML
  • extract headings, links, images, and source trace data
  • validate local media references and path confinement
  • report normalized diagnostics
  • expose adapter hooks for project-specific route and link resolution

It should not own website-specific behavior. Product routes, renderer record shapes, generated module names, and Svelte integration belong in consuming adapters.

Current API Snapshot

The in-repo package currently exports:

  • compileCommonloom
  • parseFrontmatter
  • parseMarkdown
  • renderMarkdownHtml
  • extractMarkdownReferences
  • resolveLinkReferences
  • classifyLinkTarget
  • validateMediaReference
  • resolveInsideRoot
  • createSourceTrace
  • hashContent

Core public types include:

  • CommonloomConfig
  • CommonloomResult
  • CommonloomDiagnostic
  • CommonloomSourceTrace
  • CommonloomManifestEntry
  • CommonloomCompiledDocument
  • CommonloomLinkPolicy
  • CommonloomHtmlPolicy
  • CommonloomLimitsPolicy

This is the 0.1.0 public surface for the first standalone release. The package remains on the 0.x line, so minor releases may still refine API shape before a future 1.0.0 stability commitment.

Status

Phase 1 imported the Commonloom package source and tests. Phase 2 added the local and CI quality gate. Phase 3 expanded unit coverage, added integration and end-to-end compiler tests, and added static verification for boundaries, traceability, and phase/ticket process rules. Phase 4 added npm release automation. Phase 5 completed audit-driven compiler, workflow security, and documentation hardening. This release/0.1.0 branch prepares [email protected] for merge to main and the v0.1.0 release tag.

Use Node.js 24 or newer.

Install dependencies:

npm ci

Install the repository pre-commit hook:

npm run hooks:install

Run the full validation gate:

npm run check

Focused commands:

npm run lint
npm run lint:docs
npm run format:check
npm run verify
npm run typecheck
npm run build
npm run pack:dry-run
npm run publish:dry-run
npm run publish:dry-run:ci
npm run test:battery
npm run test:unit
npm run test:integration
npm run test:e2e
npm test

The design and extraction knowledge base lives in docs/index.md.

Expected next steps:

  1. Merge release/0.1.0 to main after CI passes.
  2. Tag the resulting main head as v0.1.0 to run trusted publishing.
  3. Record release workflow and npm publication evidence in the vault.
  4. Document adapter integration examples without moving adapter behavior into the core package.

Project Layout

commonloom/
├── src/                 # TypeScript library source
├── test/                # Vitest behavior tests
├── docs/                # Obsidian-style design and planning vault
├── scripts/             # Documentation validation helpers
├── .github/workflows/   # GitHub Actions quality gate
├── .githooks/           # Local pre-commit gate
├── package.json         # npm scripts, exports, and dependencies
└── tsconfig*.json       # TypeScript build and check configuration

Design Boundary

Commonloom should stay adapter-neutral.

Keep inside this package:

  • Markdown/frontmatter parsing
  • HTML sanitization policy hooks
  • diagnostics and source traces
  • link and media reference extraction
  • filesystem-safe path resolution
  • generic manifest and compiled record contracts

Keep outside this package:

  • consuming-application route ids
  • Svelte components
  • website navigation models
  • product copy and media
  • generated website module names
  • renderer-specific record transforms

License

MIT. See LICENSE.md.