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

@urbicon-ui/docs-gen

v6.3.8

Published

Next-generation documentation generator for UI components with TypeScript extraction and unified schema

Readme

@urbicon-ui/docs-gen

Documentation generator for UI component libraries. Extracts props, variants, and inheritance from TypeScript/Svelte components and generates API data files and LLM-friendly documentation.

Usage

From workspace root

# Generate docs for all packages (blocks, docs, table)
bun run docs:gen:all

# Generate for a specific package
bun run docs:gen:blocks
bun run docs:gen:docs
bun run docs:gen:table

From this package

bun run docs:gen           # Generate all targets

CLI

docs-gen [command] [options]

Commands:
  generate, build    Generate documentation (default)
  help              Show help

Options:
  --target <type>   Target: 'blocks', 'docs', 'table', or 'all' (default: 'all')

Architecture

The pipeline follows a strict sequence: Discovery → Extraction → Enrichment → Generation.

Phase 1: Discovery      → Find components via glob patterns (ComponentFinder)
Phase 2: Extraction     → Extract props, variants, inheritance from TypeScript
Phase 3: Enrichment     → Resolve cross-refs, calculate stats, produce APIData
Phase 4: Generation     → Write API file first, then LLM docs

Discovery yields one component per index.ts (named after its directory). A multi-component index.ts can opt additional exports into their own catalog entries via an @standalone JSDoc tag on the export's <Name>Props interface (plus a matching export { default as Name } from './Name.svelte') — used by the Guide surfaces. Exports without the tag are treated as compound subcomponents and stay folded into the directory component's entry.

Key modules

| Path | Purpose | |------|---------| | src/core/pipeline/PipelineOrchestrator.ts | Main pipeline coordinator | | src/core/discovery/ComponentFinder.ts | Component discovery | | src/core/extraction/ExtractionCoordinator.ts | Orchestrates extractors | | src/core/enrichment/APIDataGenerator.ts | API data generation | | src/core/generation/GenerationCoordinator.ts | Output coordination | | src/generators/api/APIFileGenerator.ts | Per-component api.ts files | | src/generators/llm/LLMDocumentationGenerator.ts | LLM text output |

Configuration

Configuration is built via DocsConfigurationBuilder and ConfigurationFactory. Presets:

  • ConfigurationFactory.blocks()@urbicon-ui/blocks
  • ConfigurationFactory.docs()@urbicon-ui/docs
  • ConfigurationFactory.table()@urbicon-ui/table

Output paths

| Target | API output | LLM output | |--------|-----------|------------| | blocks | apps/docs/src/routes/blocks/ | apps/docs/static/blocks/ | | docs | apps/docs/src/routes/docs/ | apps/docs/static/docs/ | | table | apps/docs/src/routes/table/ | apps/docs/static/table/ |

Scripts

| Script | Description | |--------|-------------| | bun run docs:gen | Generate documentation | | bun run test | Run Vitest | | bun run test:watch | Watch mode tests | | bun run build | Build TypeScript | | bun run typecheck | Type check only |