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

stoked-ds

v0.4.0

Published

A lightweight, accessible React design system with zero-runtime CSS

Downloads

710

Readme

stoked-ds

npm version npm downloads license install size TypeScript

A lightweight, accessible React design system with zero-runtime CSS.

Features

  • 27 Components - Full set of form controls, feedback, data display, layout, and navigation components
  • Zero-runtime CSS - CSS Modules with CSS Variables, no JavaScript runtime overhead
  • Accessible - WAI-ARIA compliant with keyboard navigation support
  • Dark Mode - Built-in dark theme via data-theme attribute
  • TypeScript - Full type definitions included
  • Tree-shakeable - Import only what you need

Installation

npm install stoked-ds

Quick Start

import { Button, Input, Sidebar, AppShell } from 'stoked-ds';
import 'stoked-ds/dist/index.css';

function App() {
  return (
    <div data-theme="dark">
      <Input placeholder="Enter your name" />
      <Button variant="solid" color="primary">
        Submit
      </Button>
    </div>
  );
}

Components

Form Controls

  • Button - Primary actions with solid, outline, ghost, and link variants
  • Input - Text input with label, helper text, and error states
  • SearchInput - Input with built-in search icon and Enter-to-search
  • Select - Dropdown selection
  • Checkbox - Single or multiple selection
  • Radio / RadioGroup - Single selection from options
  • Switch - Toggle on/off
  • ButtonGroup - Toggle group for mutually exclusive options

Feedback

  • Alert - Informational messages with success, warning, error, info variants
  • Modal - Dialog overlays
  • Toast / ToastProvider - Temporary notifications
  • Spinner - Loading indicator
  • Progress - Progress bar with animated and indeterminate states
  • Skeleton - Content placeholder with pulse and wave animations
  • Tooltip - Contextual information on hover

Data Display

  • Badge - Status indicators and labels
  • Tag - Removable labels with color variants (solid/outline)
  • Avatar - User images with fallback
  • Card - Content containers
  • StatCard - Metric card with icon, value, trend, and status
  • Accordion - Collapsible content sections
  • Tabs - Tabbed navigation
  • Table - Data tables

Layout

  • Sidebar - Collapsible sidebar navigation with sections and items
  • AppShell - Application layout wrapper (sidebar + header + content)

Navigation

  • Breadcrumb - Hierarchical navigation trail
  • Pagination - Page navigation with smart ellipsis

Integrations

stoked-ds provides optional adapters for popular third-party libraries. Import them from separate sub-paths — they won't affect your bundle if you don't use them.

React Hook Form

npm install react-hook-form
import { useForm } from 'react-hook-form';
import { Form, FormField } from 'stoked-ds/integrations/react-hook-form';
import { Input, Button } from 'stoked-ds';

function LoginForm() {
  const form = useForm({ defaultValues: { email: '', password: '' } });

  return (
    <Form form={form} onSubmit={(data) => console.log(data)}>
      <FormField
        control={form.control}
        name="email"
        render={({ field, error }) => (
          <Input {...field} label="Email" error={error?.message} />
        )}
      />
      <Button type="submit">Sign In</Button>
    </Form>
  );
}

TanStack Table

npm install @tanstack/react-table
import { DataTable } from 'stoked-ds/integrations/tanstack-table';
import type { ColumnDef } from 'stoked-ds/integrations/tanstack-table';

const columns: ColumnDef<User>[] = [
  { accessorKey: 'name', header: 'Name' },
  { accessorKey: 'email', header: 'Email' },
];

function UsersTable({ users }: { users: User[] }) {
  return (
    <DataTable
      columns={columns}
      data={users}
      enableSorting
      enablePagination
      pageSize={10}
      variant="striped"
    />
  );
}

react-day-picker

npm install react-day-picker
import { DatePicker, DateRangePicker } from 'stoked-ds/integrations/react-day-picker';

function BookingForm() {
  const [date, setDate] = useState<Date>();

  return (
    <DatePicker
      label="Check-in date"
      value={date}
      onValueChange={setDate}
      minDate={new Date()}
      size="md"
    />
  );
}

react-select

npm install react-select
import { AdvancedSelect } from 'stoked-ds/integrations/react-select';

const options = [
  { label: 'React', value: 'react' },
  { label: 'Vue', value: 'vue' },
  { label: 'Svelte', value: 'svelte' },
];

function TechPicker() {
  return (
    <AdvancedSelect
      label="Technologies"
      options={options}
      isMulti
      isSearchable
      isClearable
      size="md"
    />
  );
}

Recharts

npm install recharts
import { ChartCard, StokedLineChart } from 'stoked-ds/integrations/recharts';

const data = [
  { month: 'Jan', revenue: 4000, profit: 2400 },
  { month: 'Feb', revenue: 3000, profit: 1398 },
  { month: 'Mar', revenue: 5000, profit: 3800 },
];

function Dashboard() {
  return (
    <ChartCard title="Monthly Revenue">
      <StokedLineChart
        data={data}
        dataKeys={['revenue', 'profit']}
        xAxisKey="month"
        showLegend
      />
    </ChartCard>
  );
}

Coming Soon

  • React Flow — Styled nodes and controls for node-based UIs

Storybook

Run npm run dev to launch Storybook with:

  • All 27 component stories with controls and docs
  • 8 Page stories — Full-screen inventory management pages showing how components compose into real UIs (Dashboard, Inventory List, Inventory Detail, Warehouses, Stock Entry, Reports, Settings, Loading States)
  • 5 Integration demos (React Hook Form, TanStack Table, react-day-picker, react-select, Recharts)

Theming

Enable dark mode by adding data-theme="dark" to a parent element:

<div data-theme="dark">
  {/* Components will use dark theme */}
</div>

Light mode:

<div data-theme="light">
  {/* Components will use light theme */}
</div>

CSS Tokens

Import design tokens for custom styling:

@import 'stoked-ds/dist/tokens/index.css';

Available tokens:

  • Colors: --stoked-color-*
  • Spacing: --stoked-spacing-*
  • Typography: --stoked-text-*, --stoked-font-*
  • Borders: --stoked-radius-*
  • Shadows: --stoked-shadow-*
  • Transitions: --stoked-duration-*, --stoked-easing-*

Requirements

  • React >= 18.0.0
  • React DOM >= 18.0.0

License

MIT © Pablo Cabrol