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

@byteion/react

v0.1.0-beta.1

Published

Typed React wrappers around the Byteion design system. Same markup, React props.

Downloads

154

Readme

@byteion/react

Typed React wrappers for the Byteion design system.

@byteion/core is the source of truth for tokens, themes, accessibility contracts, and canonical markup. @byteion/react turns that foundation into typed React components with the same data-bi-* contracts, Tailwind classes, and theme behavior.

Install

npm install @byteion/react @byteion/core

Install @byteion/js only when you want to bind the framework-agnostic behavior runtime yourself:

npm install @byteion/js

Setup

Import the core theme stack:

@import "@byteion/core/theme/generated/tokens.css";
@import "@byteion/core/theme/variables.css";
@import "@byteion/core/theme/themes/acme.css";
@import "@byteion/core/theme/themes/midnight.css";

@tailwind base;
@tailwind components;
@tailwind utilities;

Extend Tailwind with the core preset and scan the React package:

import preset from '@byteion/core/preset';

export default {
  presets: [preset],
  content: [
    './src/**/*.{ts,tsx}',
    './node_modules/@byteion/react/dist/**/*.{js,cjs}',
  ],
};

Usage

import { Button, Card, Input } from '@byteion/react';

export function SignInCard() {
  return (
    <Card>
      <Card.Header>
        <Card.Title>Sign in</Card.Title>
        <Card.Description>Use your workspace account.</Card.Description>
      </Card.Header>
      <Card.Body>
        <Input label="Email" type="email" autoComplete="email" />
      </Card.Body>
      <Card.Footer>
        <Button>Continue</Button>
      </Card.Footer>
    </Card>
  );
}

Entry Points

The main entry exports the full typed component surface:

import {
  Accordion, Alert, Avatar, Badge, Breadcrumb, Button, Calendar, Card,
  Checkbox, Combobox, DataTable, Datepicker, Drawer, Dropdown, EmptyState,
  FileUpload, FormField, Input, Kanban, KpiWidget, Layout, List, Modal,
  MultiSelect, Navbar, Pagination, Popover, Progress, Radio, Range, Search,
  Select, Sidebar, Skeleton, Spinner, StatCard, Stepper, Switch, Table, Tabs,
  TagsInput, Textarea, Timeline, ToastProvider, Tooltip, Typography,
  AuthSignin, AuthSignup, AuthOtp, AuthForgotPassword, AuthResetPassword,
} from '@byteion/react';

The client entry is available for frameworks that need an explicit client boundary:

import { Modal, Drawer, Dropdown, Popover, Tabs, ToastProvider } from '@byteion/react/client';

Component Coverage

@byteion/react covers all 50 @byteion/core component folders. The five auth screens are grouped in src/components/Auth.tsx, so the React package has 47 component files while still covering the full core surface.

Theming

Apply themes at the document root:

<html lang="en" data-theme="acme" className="dark">
  <body>{children}</body>
</html>

Components use semantic tokens like bg-card, text-foreground, and border-border, plus primitive scales like primary, success, warning, and danger.

Contracts

Every wrapper emits Byteion attributes so docs, tests, design tools, and optional runtime behavior can target the same DOM:

<button
  data-bi-component="button"
  data-bi-variant="solid"
  data-bi-tone="primary"
  data-bi-size="md"
>
  Continue
</button>

Utilities

import { cn, cva, type VariantProps, useByteionJs } from '@byteion/react';
  • cn(...) - className merger with no runtime dependency.
  • cva(base, config) - local class variance helper.
  • useByteionJs(ref, modules) - bind optional @byteion/js behavior to a subtree.

Quality Gates

npm run validate --workspace @byteion/react

Validation runs TypeScript, server-safety checks, Vitest, build output, and bundle-size budgets.