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

@cngxjs/compodocx

v0.4.7

Published

Static documentation generator for modern Angular projects — signals, inject(), standalone components, theming tab, JS-based template overrides, Pagefind search.

Downloads

2,051

Readme

Why compodocx

A fork of compodoc focused on modern Angular only. Replaces the rendering layer (JSX templates, Tailwind v4, Pagefind, D3) and adds first-class support for signals, inject(), structured host metadata, and a Theming tab driven by JSDoc/SassDoc-style comments above your CSS / SCSS tokens. CLI flags and config-file shape stay backwards-compatible with compodoc, so most projects switch with a one-line package.json edit.

Requirements

  • Node.js 22 or newer
  • An Angular project with a tsconfig.json (Angular 17+; tested against 20 / 21)

Install

npm install --save-dev @cngxjs/compodocx

Inside an Angular workspace, the schematic seeds tsconfig.doc.json, registers npm scripts, and (if you are coming from @compodoc/compodoc) migrates existing artefacts in one pass:

ng add @cngxjs/compodocx

Quick start

# Generate static documentation into ./docs
npx compodocx -p tsconfig.app.json -d docs

# Generate, serve, open in browser
npx compodocx -p tsconfig.app.json -d docs -s -o

# Watch + rebuild on every change
npx compodocx -p tsconfig.app.json -d docs -s -w

# Coverage check that fails CI under 70%
npx compodocx -p tsconfig.app.json -d docs --coverageTest 70 --coverageTestThresholdFail

The CLI is also exposed as compodoc for drop-in compatibility with existing npm scripts.

Configuration

Drop a .compodocrc.json (or .yaml, .js) into your project root:

{
    "tsconfig": "./tsconfig.app.json",
    "output": "./docs",
    "theme": "ocean"
}

Full reference for every CLI flag and config key: docs/configuration.md or compodocx.dev/guides/options.

Documentation

| Topic | File | |-|-| | Configuration reference | docs/configuration.md | | Custom JS template overrides | docs/custom-templates.md | | Theme tokens in SCSS / CSS | docs/theming-tokens-authoring-guide.md | | Additional Markdown pages | docs/additional-pages.md | | Multi-version output | docs/versioned-docs.md | | Internationalization | docs/i18n.md | | Migrating from compodoc | MIGRATION.md | | Releasing | docs/RELEASING.md |

Development

git clone https://github.com/cngxjs/compodocx.git
cd compodocx
npm ci
npm run build
npm run test:all

| Task | Command | |-|-| | Unit tests | npm run test:unit | | CLI integration tests | npm run test:cli | | Playwright e2e | npm run test-e2e-playwright | | Lint / Format | npm run lint / npm run format:write |

The dev watcher rebuilds the docs site for one of the bundled fixtures whenever a source file changes:

npm run dev          # standalone fixture, port 8081
npm run dev:module   # NgModule fixture, port 8080

Issues and pull requests welcome at github.com/cngxjs/compodocx.

Acknowledgments

compodocx is a fork of compodoc by Vincent Ogloblinsky and contributors. The compiler, JSDoc tag handling, and route-graph layout are the foundation everything here builds on.

License

MIT. See LICENSE.