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

@nonoun/native-ui

v0.7.132

Published

Zero-dependency web component library with an OKLCH CSS design system, signal-based reactivity, and composable trait controllers

Readme

@nonoun/native-ui

Zero-dependency web component library with an OKLCH CSS design system, signal-based reactivity, and composable trait controllers. No shadow DOM — styling via CSS custom property inheritance, light-dark() theming, and zero-specificity attribute selectors.

Install

npm install @nonoun/native-ui

Quick Start

1. Load CSS (required — CSS is not bundled with JS):

<link rel="stylesheet" href="node_modules/@nonoun/native-ui/dist/foundation.css">

Or via a bundler:

@import '@nonoun/native-ui/css';

2a. Register all elements (simplest):

import '@nonoun/native-ui/register';

2b. Or import individual classes (tree-shakeable):

import { NButton, define } from '@nonoun/native-ui';
define('n-button', NButton);

3. Use in HTML:

<n-button variant="primary" intent="accent">Save</n-button>
<n-input placeholder="Email" name="email"></n-input>
<n-select placeholder="Country" options='[{"value":"us","label":"United States"}]'></n-select>

Entry Points

| Import | Description | Size | |--------|-------------|------| | @nonoun/native-ui | All component classes + reactivity + core + icons (tree-shakeable) | ~138 KB | | @nonoun/native-ui/register | Side-effect import that registers all ~47 custom elements | ~140 KB | | @nonoun/native-ui/kernel | Kernel + A2UI protocol (advanced) | ~107 KB | | @nonoun/native-ui/traits | Trait controllers + reactivity (no components) | ~2 KB + shared chunks |

CSS

| Import | Description | |--------|-------------| | @nonoun/native-ui/css | Full CSS: colors + layout + components (everything) | | @nonoun/native-ui/css/colors | OKLCH primitives, semantic tokens, themes | | @nonoun/native-ui/css/layout | Reset, utilities, containers | | @nonoun/native-ui/css/components | Component tokens, utilities, icons, all component styles | | @nonoun/native-ui/css/foundation | Alias for ./css |

CSS Architecture

CSS is distributed separately from JavaScript. Components have no shadow DOM and no adopted stylesheets — all styling flows through CSS custom properties and zero-specificity :where() attribute selectors in @layer ui.

This means:

  • You must load CSS via <link> or @import — it is not automatic
  • You can override any component style with a single class selector
  • Theming works via 9 OKLCH environment parameters on :root
  • Dark mode is automatic via light-dark() — no class toggles needed

Components

30 interactive components, 11 structural containers, 26 trait controllers, and a Phosphor icon system.

Interactive

n-button n-input n-textarea n-select n-combobox n-command n-checkbox n-switch n-radio n-segmented-control n-tabs n-accordion n-dialog n-drawer n-calendar n-table n-listbox n-tree n-range n-input-otp n-pagination n-breadcrumb n-slideshow n-tooltip n-avatar n-badge n-nav n-chat n-field

Containers

n-card n-panel n-stack n-grid n-divider n-inset n-header n-body n-footer n-section n-toolbar

Traits

Composable behaviors available as controllers (imperative) or via <n-controller> (declarative):

PressController DismissController PopoverController RovingFocusController FocusTrapController DragController DropZoneController RangeSelectController CollapsibleController ToastController ValidateController ResizeController VirtualScrollController CopyController SortController HoverController IntersectController SelectionController SearchController ClipboardController SwipeController EditController DialogController ListNavigateController PresentController GatewayController

Documentation

Full documentation lives in the docs/ directory on GitHub — 12 focused files optimized for LLM/coding-agent consumption. Start with docs/README.md for a navigation index, then load topic files on demand.

Note: The docs/ directory is not included in the npm package. Fetch from GitHub when you need detailed reference beyond this README.

Browser Support

Modern browsers only. Requires native support for:

  • Custom Elements v1 + ElementInternals
  • CSS @layer, :where(), oklch(), light-dark()
  • Popover API + anchor positioning
  • <dialog> element

License

MIT