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

@iotype/casys

v0.1.4

Published

React + TypeScript component library for building CA-style practice management apps — designed by Iotypes Private Limited.

Readme

@iotype/casys

React + TypeScript component library for building CA-style practice management apps — designed by Iotypes Private Limited.

  • 20+ components, all typed (.d.ts shipped)
  • Zero runtime dependencies beyond React — uses only native DOM + CSS
  • One stylesheet, one import — no CSS-in-JS, no Tailwind, no build-step gymnastics
  • Design tokens exposed as CSS variables — override any colour, radius, or font at a single selector
  • Ships ESM + CJS, Node / Vite / Next / CRA all work

Install

npm install @iotype/casys
# peer deps
npm install react react-dom

Usage

// 1. Import the stylesheet once, at the app entry point.
import '@iotype/casys/styles.css';

// 2. Use components.
import {
  AppShell, Sidebar, SidebarBrand, NavGroup, NavItem,
  PageHeader, PageContent,
  KPIRow, KPI,
  Button, Badge, HomeIcon, LayersIcon, PlusIcon,
} from '@iotype/casys';

export function Dashboard() {
  return (
    <AppShell
      sidebar={
        <Sidebar>
          <SidebarBrand mark="M" name="Mehta & Co." role="Rohan · Admin" />
          <NavGroup label="Practice">
            <NavItem icon={<HomeIcon />} label="Overview" active />
            <NavItem icon={<LayersIcon />} label="Tasks" count={12} />
          </NavGroup>
        </Sidebar>
      }
    >
      <PageHeader
        title="Overview"
        subtitle="Your practice at a glance"
        actions={<Button variant="accent" leftIcon={<PlusIcon />}>New task</Button>}
      />
      <PageContent>
        <KPIRow>
          <KPI label="Overdue" value={4} delta="Needs attention" danger />
          <KPI label="Due in 7 days" value={9} delta="Across 6 clients" />
          <KPI label="Awaiting docs" value={3} delta="Auto-reminded" />
          <KPI label="Active tasks" value={28} delta="82 clients total" />
        </KPIRow>
      </PageContent>
    </AppShell>
  );
}

Component index

| Category | Components | |---|---| | Primitives | Button, Badge, Avatar, Icon + 28 named glyphs | | Layout | AppShell, PageHeader, PageContent, Sidebar, SidebarBrand, NavGroup, NavItem, TopBar, TopBarTab, TopBarPill | | Data display | KPI, KPIRow, Panel, Section, EmptyHint, DataTable<T>, DetailCard, KeyValue, DetailSide, TwoCol, Timeline, TimelineItem, DocumentList, DocumentRow, Calendar, ServiceCard, ServiceGrid, ServiceCardChip, ClientCell | | Forms | Field, FieldRow, Input, Select, Textarea, UploadDrop, Composer | | Overlays | Modal | | Helpers | formatDate, formatDateTime, daysUntil, getInitials, STATUS_META | | Types | TaskStatus, TaskPriority, Client, Service, Task, TeamMember |

Run the Previewer (npm run preview from the repo root) for live examples, code snippets, and prop tables for every component.

Theming

Override any token at :root — or a scoped class if you want a themed subtree:

/* Change the brand accent globally */
:root {
  --accent:      #0EA5E9;
  --accent-soft: #E0F2FE;
  --accent-ink:  #0369A1;
}

/* Or only inside .client-portal */
.client-portal {
  --bg:   #FAFAF7;
  --ink:  #1F1E1A;
}

Full token list lives in @iotype/casys/tokens.css (also re-exported in styles.css).

Generic DataTable

DataTable<T> is the one component that meaningfully benefits from generics — it gives you typed row access inside column renderers:

interface Task { id: string; client: string; due: string; status: TaskStatus }

<DataTable<Task>
  rows={tasks}
  getRowKey={t => t.id}
  onRowClick={t => open(t.id)}
  isRowSelected={t => t.id === selectedId}
  columns={[
    { key: 'client', header: 'Client', render: t => <ClientCell name={t.client} /> },
    { key: 'due',    header: 'Due',    render: t => formatDate(t.due) },
    {
      key: 'status', header: 'Status',
      render: t => {
        const m = STATUS_META[t.status];
        return <Badge tone={m.tone}>{m.label}</Badge>;
      },
    },
  ]}
/>

Conventions

  • CSS class names are preserved verbatim from the original app (btn, badge, kpi, ca-sidebar, etc.). If you've already been hand-rolling markup against these classes, the components are fully compatible — switch incrementally, class by class.
  • All components forward standard HTML props (onClick, style, className, aria-*) unless explicitly typed to prevent collisions (see note on title below).
  • title prop naming: Some components accept title as a content prop (e.g. Panel, Section, ServiceCard). Where this would have collided with the native HTML title tooltip, the title tooltip attribute has been omitted from the component's accepted props. Use aria-label instead if you need a tooltip.

Building locally

npm install
npm run typecheck   # tsc --noEmit
npm run build       # tsup → dist/ (ESM + CJS + .d.ts)
npm run preview     # opens the component previewer

License

MIT