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

@airdraft/react-ui

v0.1.29

Published

Airdraft React UI — schema editor and team management components

Downloads

3,321

Readme

@airdraft/react-ui

Drop-in React UI components for Airdraft. Provides a full CMS admin panel, entry editor, media manager, schema editor, and composable primitives — all built on Tailwind CSS and shadcn/ui.

Installation

npm install @airdraft/react-ui

Requires @airdraft/client and a configured Airdraft API.

Tier 3 — Drop-in Compounds

Ready-to-use full-page components. Mount them in your app and they handle all data fetching and state.

| Component | Description | |---|---| | <CMSAdmin> | Full CMS admin panel with sidebar navigation, collections, media, team, and schema editor. | | <CollectionsIndex> | Browse and search entries in a collection. | | <ContentManager> | Lists collections; navigates to CollectionsIndex on selection. | | <EntryEditor> | Edit a single entry. Renders dynamic fields from the collection schema, handles validation errors, optimistic concurrency (SHA conflict detection), and save state. | | <MediaManager> | Upload and browse media files. | | <TeamManager> | Manage team members and invitations. | | <SchemaEditor> | Visual editor for collection schemas (requires plugin-schema-editor). | | <AuditLogViewer> | Paginated audit event log (requires plugin-audit-log). | | <LoginForm> | Username/password login form. | | <AcceptInviteForm> | Accept a team invitation. |

Tier 2 — Composable Slots

For custom layouts, use the composable primitives:

import { SchemaEditorRoot, SchemaEditorSidebar, SchemaEditorContent, SchemaEditorFieldDrawer } from '@airdraft/react-ui'

Shared Components

| Component | Description | |---|---| | <PageHeader> | Page title + description + action slot. | | <ErrorAlert> | Displays an error with title and message. Supports compact mode. | | <EmptyState> | Empty state with icon and call-to-action. | | <EntryRow> | Single row in a collection list. | | <MediaCard> | Media item thumbnail card. | | <UploadZone> | Drag-and-drop file upload area. | | <ConfirmDialog> | Confirmation modal. | | <StatusBadge> / <RoleBadge> | Status and role indicator badges. |

Field Types

EntryEditor renders the appropriate input for each field type defined in the collection schema:

| Type | Input | |---|---| | string | Text input | | number | Number input | | boolean | Toggle switch | | date | Date picker | | select | Dropdown | | multiselect / list | Tag input | | richtext | Rich text editor | | url | URL input with inline link icon | | image / media | Media picker (single or multiple files via multiple: true) | | relation / relations | Relation picker | | object | Grouped sub-fields | | blocks | Structured nested fields — single block object or a repeatable array of block items (with multiple: true). Sub-fields are defined in the schema; the type picker excludes blocks nesting. |

media field with multiple: true

The media picker opens a modal with the full media library. In multiple mode, selections are staged and committed with a "Done" button. Legacy entries that stored a single string key are automatically coerced to an array on save.

Changelog

See CHANGELOG.md.