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

@dotdna-io/ui

v0.3.0

Published

Shared React components, design tokens, and charts for DOTDNA products

Readme

@dotdna-io/ui

Shared React component library, design tokens, and charts for DOTDNA products.

  • 18+ React primitives — AppShell, Badge, Button, ColorPicker, ConfirmDialog, EventTimeline, IconButton, InlineStatus, LoadingSpinner, Modal, Pagination, PasswordStrengthMeter, SearchableDropdown, SearchInput, Skeleton, EmptyState, Tabs, Tile, TimeRangeGroup, ToggleSwitch, Tooltip, and the Settings layout family.
  • React SVG charts — ButterflyChart, CircularGauge, ConcentricArcsChart, ConfidenceDonutGauge, SegmentedScoreBars, plus the DotDNAChart wrapper.
  • Design tokens — colors, typography, spacing, radii, shadows, with dark-mode overrides.
  • Hooks — useDarkMode / DarkModeProvider, useAdaptivePolling, useDocumentTitle, useInlineStatus.
  • Vanilla-JS chart library — 22 chart classes available without React.

ESM + CJS + TypeScript declarations. Peer dependency: React 18 or 19.

Install

npm install @dotdna-io/ui

Usage

Import the stylesheet once at your app entry, then use the components:

import '@dotdna-io/ui/styles';
import { Button, Modal } from '@dotdna-io/ui';

export function Example() {
  return <Button variant="primary">Click me</Button>;
}

Subpath exports

| Import | Contents | |---|---| | @dotdna-io/ui | All React components, charts, hooks, and utilities | | @dotdna-io/ui/styles | Full stylesheet bundle (tokens + dark mode + components) | | @dotdna-io/ui/styles/tokens.css | Design tokens only | | @dotdna-io/ui/styles/dark-mode.css | Dark-mode overrides only | | @dotdna-io/ui/charts-vanilla | Vanilla-JS chart library (populates window.DotDNA*) | | @dotdna-io/ui/charts-vanilla/style.css | Styles for the vanilla charts |

Dark mode is activated by adding the dark-mode class to <body>.

Design standards

See UI_STANDARDS.md for the design rules behind this package — tokens, the glossy card surface, badges/buttons/inputs, typography, animations, and the AppShell layout. Apply the signature surface with the global glossyCard class:

import '@dotdna-io/ui/styles';

<div className="glossyCard" style={{ padding: 16 }} />

License

MIT