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

@zen-ui-capri/system

v1.2.3

Published

zeN-UI // CAPRI — Universal Multi-Framework Design System (51 Primitives, 40 Vector Icons, 8 Dark/Light Themes & Capri 5-Subroutine AI Co-Pilot)

Readme

@zen-ui-capri/system (zeN-UI // CAPRI) — v1.2.1

Universal, zero-dependency, multi-framework design system and component library (320px mobile to 4K ultrawide) for React 19, Angular 20+, Vue 3, Svelte 5, and Vanilla HTML/CSS, paired with the Capri 5-Subroutine AI Co-Pilot & Security Guard CLI in a single versioned npm package (0 runtime dependencies).

npm install @zen-ui-capri/system

1. System Architecture & Subpath Exports

flowchart TD
  subgraph Layer1["Layer 1: Zero-Runtime CSS Token Engine (@zen-ui-capri/system/tokens.css)"]
    Tokens["dist/lib/tokens.css (8 Dark/Light Themes · 3 Radii · 2 Densities)"]
    UtilityClasses[".zen-btn · .zen-input · .zen-select · .zen-table · .zen-card · .zen-badge"]
    Tokens --> UtilityClasses
  end

  subgraph Layer2["Layer 2: Modular Multi-Framework Entrypoints"]
    ReactPrimitives["@zen-ui-capri/system (51 UI Modules · Tree-Shakable ESM)"]
    UniversalElements["@zen-ui-capri/system/universal (W3C Custom Elements)"]
    AudioModule["@zen-ui-capri/system/audio (Procedural Web Audio Synth)"]
    CapriModule["@zen-ui-capri/system/capri (Capri Security & Docu Engine)"]
    Tokens --> ReactPrimitives
    Tokens --> UniversalElements
  end

  subgraph Layer3["Layer 3: Capri AI Co-Pilot & On-Demand CLI (0 ms Runtime Cost)"]
    CapriCLI["bin/capri.mjs (npx capri docu | npx capri skill <subroutine>)"]
    AgentSkills["AGENTS.md · CLAUDE.md · .agents/skills/capri-zen-ui/SKILL.md"]
  end

  ReactPrimitives --> ConsumingReact["React 19 / Next.js / Vite Apps"]
  UniversalElements --> ConsumingMulti["Angular 20+ / Vue 3 / Svelte 5 / HTML Apps"]
  AgentSkills -.->|"Guides AI Assistants"| ConsumingReact
  AgentSkills -.->|"Guides AI Assistants"| ConsumingMulti

2. Core Capabilities

  1. 51 Selectable Modules & Primitives (@zen-ui-capri/system):
    • Actions & Icons (5): ZenButton, ZenCopyButton, ZenIconButton, ZenIcon (40 typed vector glyphs), ZenSegmentedControl.
    • Forms & Inputs (10): ZenInput, ZenTextarea, ZenDropdown (onMouseDown zero blur-race commit), ZenNumberStepper (IEEE-754 precision), ZenSwitch, ZenCheckbox, ZenRadioGroup, ZenSlider, ZenChipFilter, ZenFileUpload.
    • Navigation & Wayfinding (6): ZenNavbar (responsive desktop + mobile drawer), ZenTabs, ZenBreadcrumbs, ZenPagination, ZenStepper, ZenSidebar.
    • Surfaces & Overlays (10): ZenCard, ZenHeading, ZenModal (focus-trapped), ZenDrawer, ZenCommandPalette (Ctrl+K), ZenAccordion, ZenTooltip, ZenDivider, ZenArchitectureNote, ZenCheckList.
    • Data & Telemetry (10): ZenDataTable (generic <T> sortable), ZenKpiCard, ZenSparkline, ZenMetricStrip, ZenProgressBar, ZenCircularGauge, ZenAvatar, ZenCodeBlock, ZenDossierPanel, ZenTimelineCard.
    • Feedback & Subpath Modules (10): ZenBadge, ZenTagList, ZenKbd, ZenAlert, ZenSkeleton, ZenEmptyState, ZenAIConstruct, ZenAmbientBackground, ZenAudioController (/audio), CapriEngine (/capri).
  2. 8 Dark & Light Polarity Themes (ZenThemeProvider / zenTheme):
    • 4 Dark Themes: blackwall-crimson (Capri // Capricorn), obsidian-gold, neon-emerald, midnight-cobalt.
    • 4 Light Themes: atelier-paper, nordic-snow, kyoto-matcha, cyber-daylight.
    • Geometry & Density Controls: data-radius="sharp" | "architectural" | "soft" and data-density="comfortable" | "compact".
  3. Isolated Showcase Workbench (src/site/ -> dist/site/):
    • The interactive 51-module Storybook & Workbench lives in src/site/ and builds exclusively to dist/site/, completely isolated from the published dist/lib/ npm package bundles.

3. Capri AI Subroutines (Voice Disabled by Default · Opt-In via --voice)

Talk to Capri in Claude Code, OpenAI Codex, Gemini, or Cursor, or run npx capri in the terminal:

| Subroutine Command | Opt-In Voice Command | Purpose & Enforced Ruleset | | :--- | :--- | :--- | | "Capri guard" | "Capri guard --voice" | Security, Anti-Prompt-Injection & WCAG Guard: Blocks prompt-injection payloads (capri.scanPromptInjection(), capri.sanitizeForPrompt()), prevents DOM XSS (escapeZenHtml) & secret leaks, enforces onMouseDown dropdown selection, explicit ariaLabel, and 0px horizontal overflow (320px to 4K). | | "Capri orion" | "Capri orion --voice" | UI Synthesis: Builds screens using the 51 @zen-ui-capri/system primitives and 40 <ZenIcon> glyphs (never rendering <ZenAIConstruct /> in business apps). | | "Capri architect" | "Capri architect --voice" | Multi-Stack & Token Governance: Enforces zero any, readonly T[] arrays, zero hardcoded hex colors (--zen-* tokens), and Angular 20+ / Vue / React interop. | | "Capri zen" | "Capri zen --voice" | Theme Polarity & 60fps Motion: Verifies contrast across all 8 dark/light themes, --zen-ease-spring (0.97x) tactile press physics, and prefers-reduced-motion collapse. | | "Capri docu" | "Capri docu --voice" | Automated Documentation: Generates architecture dossiers, component inventories, user flows, and Mermaid flowchart TD diagrams (npx capri docu). |


4. Commands & Verification

npm run dev                        # Start local showcase workbench (port 5180)
npm run build:lib                  # Build clean NPM package into dist/lib/ (ESM + .d.ts + tokens.css)
npm run build:site                 # Build isolated showcase website into dist/site/
npm run test:e2e                   # Run Playwright multi-viewport & Storybook E2E verification
npx capri docu                     # Generate static architecture & user-flow Markdown dossier (0 ms build cost)
npx capri skill guard              # Print guard subroutine ruleset (Voice OFF by default; add --voice to enable)