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

@azlib/ui

v0.4.0

Published

The core React design system and UI library for the `azlib` ecosystem, built on Tailwind CSS v4 and featuring built-in routing, custom component runtimes, and lightweight form-validation tools.

Readme

@azlib/ui

The core React design system and UI library for the azlib ecosystem, built on Tailwind CSS v4 and featuring built-in routing, custom component runtimes, and lightweight form-validation tools.

AI Agent Quick Reference

Core Exports

| Entry Point / Import | Export | Type | Description | | --- | --- | --- | --- | | @azlib/ui | UI Components | React Components | Accordion, Alert, Autocomplete, Badge, Box, Button, Card, Checkbox, Container, DataGrid, DatePicker, DateRangePicker, Divider, Empty, FileDrop, Flex, FormField, Grid, HelpTooltip, Icon, Input, List, Modal, Pagination, Popover, Progress, RadioButton, Select, Skeleton, Snackbar, Stack, Stepper, Switch, Tabs, TagSelect, Textarea, Timeline, Toast, ToggleButton, TreeView, Typography. | | @azlib/ui | validate(rules: ValidationRule[]): ValidationErrors | Function | Run simple assertions against values and extract flat dotted-path errors map. | | @azlib/ui | RouterProvider | Component | Inject routes context tree (based on standard react-router-like structure). | | @azlib/ui | Router Hooks | React Hooks | useLoaderData, useActionData, useNavigate, useParams, useFetcher, etc. |

Styling Installation

Ensure you import the compiled CSS at the root of your application:

import "@azlib/ui/dist/styles.css";

Basic Usage (Form Validation)

import { validate, getError, FormField, Input } from "@azlib/ui";

const data = { name: "", email: "invalid-email" };

const errors = validate([
  { path: "name", message: "Name is required.", isValid: data.name.trim().length > 0 },
  { path: "email", message: "Email format is incorrect.", isValid: data.email.includes("@") },
]);

// Inside React Component:
return (
  <FormField label="Full Name" error={getError(errors, "name")}>
    <Input value={data.name} />
  </FormField>
);

Routing Integration

import { createBrowserRouter, RouterProvider } from "@azlib/ui";

const router = createBrowserRouter([
  {
    path: "/",
    element: <Layout />,
    loader: async () => fetchNavigationItems(),
    children: [
      {
        path: "dashboard",
        element: <Dashboard />,
      }
    ]
  }
]);

function App() {
  return <RouterProvider router={router} />;
}

Behavioral Gotchas

  • Tailwind v4 Engine: The compiled styles rely on Tailwind v4 CSS variables. Ensure the host project bundler matches compatibility specifications.
  • Nested Validation Paths: Dotted paths are supported by validate (e.g. fields.0.label). Use getChildErrors(errors, "fields.0") to collect errors scoped to a sub-array index.
  • Router Loaders: Loaders block navigation transitions unless handled asynchronously or with skeleton placeholders. Use the useNavigation hook to inspect active transition states.