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

@aogusto/arui

v0.3.1

Published

Biblioteca de componentes React — Apple HIG + Tailwind 4 (shadcn-derived).

Downloads

843

Readme

Arui

Arui is an open-source React component library with an Apple HIG identity, distributed as an npm package. Import the components you need, add one theme stylesheet, and Tailwind v4 generates the rest.

  • Live showcase & component gallery: https://arui.vercel.app
  • Source: https://github.com/aogusto/arui

Instalação

npm install @aogusto/arui

arui assume React 19 e Tailwind 4 (peerDependencies).

Setup do tema (Tailwind 4)

No CSS da sua app:

@import "tailwindcss";
@import "@aogusto/arui/theme.css";
@source "../node_modules/@aogusto/arui/dist";
  • @aogusto/arui/theme.css traz os tokens HIG, o dark variant e a fonte Inter — já self-contained.
  • O @source é obrigatório: sem ele o Tailwind não escaneia node_modules e as classes dos componentes não geram CSS. Ajuste o caminho relativo à localização do seu arquivo CSS.

Uso

import { Button, Card, Sheet } from "@aogusto/arui"

export function Example() {
  return <Button>Olá</Button>
}

Forms (opcional)

Os componentes Form/FormField usam react-hook-form (peer opcional). Instale se for usá-los:

npm install react-hook-form

Validação com zod é escolha sua (zod + @hookform/resolvers) — a arui não os exige.

Components

57 components, exported flat from the package root (import { X } from "@aogusto/arui"), plus the cn() class-merge utility and the useIsMobile hook.

| Group | Components | |---|---| | Disclosure | accordion, collapsible | | Buttons & actions | button, button-group, toggle, toggle-group, kbd | | Forms & inputs | form, field, input, input-group, input-otp, label, checkbox, radio-group, select, native-select, combobox, switch, slider, textarea, calendar | | Layout & structure | card, separator, aspect-ratio, scroll-area, resizable, sidebar, item, direction | | Overlays & feedback | dialog, alert-dialog, sheet, drawer, popover, hover-card, tooltip, dropdown-menu, context-menu, menubar, command, sonner (toast), alert, empty, skeleton, spinner, progress, badge | | Navigation | tabs, breadcrumb, pagination, navigation-menu | | Data display | table, chart, carousel, avatar | | Foundation | glass-surface — the frosted material used by dialogs, sheets, popovers, etc. |

Each entry above is a Tailwind-styled React component (or set of subcomponents, e.g. Dialog, DialogTrigger, DialogContent, …) exported by name from "arui".

Example: dialog

import {
  Button,
  Dialog, DialogTrigger, DialogContent, DialogHeader,
  DialogTitle, DialogDescription, DialogFooter, DialogClose,
} from "@aogusto/arui"

export default function Example() {
  return (
    <Dialog>
      <DialogTrigger asChild>
        <Button variant="outline">Open dialog</Button>
      </DialogTrigger>
      <DialogContent>
        <DialogHeader>
          <DialogTitle>Glass surface dialog</DialogTitle>
          <DialogDescription>Backed by the Arui glass material.</DialogDescription>
        </DialogHeader>
        <DialogFooter>
          <DialogClose asChild><Button variant="ghost">Cancel</Button></DialogClose>
          <Button>Confirm</Button>
        </DialogFooter>
      </DialogContent>
    </Dialog>
  )
}

Example: a form (react-hook-form + zod)

The form export is a thin, accessible wrapper over react-hook-form. Pair it with input, label, and button:

npm install react-hook-form @hookform/resolvers zod
import { useForm } from "react-hook-form"
import { zodResolver } from "@hookform/resolvers/zod"
import { z } from "zod"

import {
  Button, Input,
  Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage,
} from "@aogusto/arui"

const schema = z.object({
  email: z.string().email("Enter a valid email"),
  displayName: z.string().min(2, "At least 2 characters"),
})
type FormValues = z.infer<typeof schema>

export function ProfileForm() {
  const form = useForm<FormValues>({
    resolver: zodResolver(schema),
    defaultValues: { email: "", displayName: "" },
  })

  const onSubmit = form.handleSubmit((values) => {
    // submit `values` to your API here
  })

  return (
    <Form {...form}>
      <form onSubmit={onSubmit} className="space-y-4">
        <FormField
          control={form.control}
          name="email"
          render={({ field }) => (
            <FormItem>
              <FormLabel>Email</FormLabel>
              <FormControl>
                <Input type="email" placeholder="[email protected]" {...field} />
              </FormControl>
              <FormDescription>We'll never share your email.</FormDescription>
              <FormMessage />
            </FormItem>
          )}
        />
        <FormField
          control={form.control}
          name="displayName"
          render={({ field }) => (
            <FormItem>
              <FormLabel>Display name</FormLabel>
              <FormControl>
                <Input placeholder="Ada Lovelace" {...field} />
              </FormControl>
              <FormMessage />
            </FormItem>
          )}
        />
        <Button type="submit">Save</Button>
      </form>
    </Form>
  )
}

Development

Working on the library itself (not consuming it):

npm install
npm run dev            # component gallery (Vite dev server)
npm run build           # tsup → dist/{index.js,index.d.ts,theme.css} (what gets published)
npm run build:preview   # tsc -b + vite build → showcase-dist/ (the arui.vercel.app site)
npm run preview         # serves the built showcase
npm run typecheck       # tsc -b

The showcase (preview/) dogfoods the package: it imports components from "arui", aliased in vite.config.ts straight to src/index.ts during local dev, so the gallery always reflects the real public API.

License

MIT — see LICENSE.