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

barua-ui

v0.12.1

Published

Barua UI — Apple-DNA design system (glass materials, Barua blue) as React components over pure CSS.

Readme

barua-ui

Barua UI as React components — an Apple-DNA design system (Barua blue, real glass materials, HIG type) built on pure CSS, with thin typed React bindings on top. The CSS is the source of truth; components just compose the .b-* class system and add the interactive behaviors the React way.

What is in it

278 components and hooks — every block in the system has one. The full list, grouped, is at https://ui.barua.tz/docs/react.html, and every example in the documentation carries a React tab with the JSX that produces it.

import { Card, CardBody, Stat, Button, Icon } from "barua-ui";

<Card compact>
  <CardBody>
    <Stat label="Outstanding" value="TZS 4.2M" />
    <Button variant="primary">
      <Icon name="check" /> Mark paid
    </Button>
  </CardBody>
</Card>

Components render the documented markup and nothing else, so anything you read on the docs pages applies unchanged. Each one forwards className and its ref, so you are never boxed in.

Install

npm install barua-ui

Use

// 1. Load the stylesheet once (any bundler handles the @imports)
import "barua-ui/css";

// 2. Mount the provider at your root
import { BaruaProvider, Button, Card, CardBody, useToast } from "barua-ui";

function Root() {
  return (
    <BaruaProvider theme="auto" accent="blue" glass={false}>
      <App />
    </BaruaProvider>
  );
}

function App() {
  const toast = useToast();
  return (
    <Card variant="glass" interactive>
      <CardBody>
        <Button
          variant="primary"
          size="lg"
          onClick={() => toast({ title: "Karibu!", variant: "success" })}
        >
          Habari, Barua!
        </Button>
      </CardBody>
    </Card>
  );
}

SSR/Next.js: render <ThemeScript /> in <head> so the stored theme applies before first paint.

What's in the box

  • ProviderBaruaProvider (theme / accent re-tint / Liquid Glass glass mode / Tier-2 refraction), ThemeScript, useToast
  • ActionsButton, ButtonLink, Fab, Toolbar
  • FormsField, Input, Textarea, Select, Checkbox, Radio, Switch, Slider, OtpInput
  • ContentCard family (incl. StoryCard, flush iOS-Settings groups), List/ListItem, Badge, Tag, Chip, Avatar(+AvatarGroup), IconTile, Stat, EmptyState
  • FeedbackAlert, Progress, Spinner, Skeleton, StatusDot, toasts
  • OverlaysModal, AlertDialog, Sheet, BottomSheet, Popover (arrowed/card), Tooltip — all on native <dialog>, centered by default
  • NavigationSegmented, Tabs/TabPanel, Breadcrumbs

Anything not wrapped yet is still one className away — the entire .b-* system ships in barua-ui/css, documented in the Barua UI docs site.

Theming

<BaruaProvider theme="dark" accent="purple" glass refraction />
  • theme: "auto" | "light" | "dark"data-theme on <html>
  • accent: re-tints every component from one token
  • glass: Liquid Glass mode — re-skins the whole system
  • refraction: SVG-displacement refraction on liquid objects (Blink only, graceful elsewhere)

Modern evergreen browsers: light-dark(), @layer, color-mix(), Popover API, <dialog>.