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

@trackany-device/components

v1.7.0

Published

Shared React components for the Track Any Device platform.

Readme

@trackany-device/components

Shared React component library for the Track Any Device platform.
Built with React 19, Tailwind CSS v4, Radix UI primitives, and shadcn/ui conventions.

Socket Badge

Install

npm install @trackany-device/components

Peer dependencies — install the ones you use:

npm install react react-dom lucide-react tailwindcss

Optional peers (only needed for specific components): @dnd-kit/*, @tanstack/react-table, @xyflow/react, recharts, react-hook-form, zod


Setup

1. Import the styles

In your app's CSS entry point (e.g. app.css):

@import "tailwindcss";
@import "@trackany-device/components/styles/themes.css";

/* If you use KeenIcons: */
@import "@trackany-device/components/styles/keenicons.css";

2. Wrap your app with a theme

Apply a data-theme attribute to your root element (or <html>):

<html data-theme="blue">   <!-- or green, purple, red, orange … -->

Add .dark for dark mode:

<html data-theme="blue" class="dark">

3. Set up the Platform adapter

The library abstracts routing/forms behind a PlatformProvider. Pick the adapter for your framework:

// Next.js
import { PlatformProvider, createNextjsAdapter } from '@trackany-device/components';

export default function RootLayout({ children }) {
    return (
        <PlatformProvider adapter={createNextjsAdapter()}>
            {children}
        </PlatformProvider>
    );
}
// Inertia.js (Laravel)
import { PlatformProvider, createInertiaAdapter } from '@trackany-device/components';

createInertiaApp({
    setup({ el, App, props }) {
        createRoot(el).render(
            <PlatformProvider adapter={createInertiaAdapter()}>
                <App {...props} />
            </PlatformProvider>
        );
    },
});

Usage

import { Button, Card, CardContent, CardHeader, CardTitle } from '@trackany-device/components';

export default function Example() {
    return (
        <Card className="w-80">
            <CardHeader>
                <CardTitle>Hello world</CardTitle>
            </CardHeader>
            <CardContent className="flex gap-2">
                <Button variant="primary">Save</Button>
                <Button variant="outline">Cancel</Button>
            </CardContent>
        </Card>
    );
}

Themes

21 brand colour schemes are included. Apply via data-theme on any ancestor element:

| Token | Colour | |-------|--------| | default / blue | Blue-600 | | green | Green-600 | | purple | Purple-600 | | red | Red-600 | | orange | Orange-500 | | rose | Rose-600 | | sky | Sky-500 | | teal | Teal-600 | | cyan | Cyan-600 | | indigo | Indigo-600 | | violet | Violet-600 | | emerald | Emerald-600 | | lime | Lime-600 | | yellow | Yellow-500 | | amber | Amber-500 | | pink | Pink-500 | | fuchsia | Fuchsia-600 | | neutral | Neutral-700 | | slate | Slate-600 | | gray | Gray-600 |

Each theme ships with a matching dark variant — add .dark to the same element.


Components

App chrome

AppShell · AppHeader · AppSidebar · AppSidebarHeader · AppContent · NavMain · NavUser · NavFooter · NotificationBell · AppLogo · Breadcrumbs · AppearanceTabs

UI primitives

Button · Input · Select · Checkbox · Switch · Slider · Textarea · Label · Badge · Avatar · Card · Dialog · Drawer · Sheet · Popover · Tooltip · DropdownMenu · Tabs · Accordion · Progress · Skeleton · Spinner · Separator · Alert · Sonner (toast)

Data

DataGrid · DataList · Chart · StatCard · Pagination

Forms & auth

LoginForm · RegisterForm · ForgotPasswordForm · ResetPasswordForm · ConfirmPasswordForm · OtpForm · VerifyEmailForm · SmsChallengeForm

Icons

KeenIcon — ~1 200 icons in four styles (duotone · filled · outline · solid):

import { KeenIcon } from '@trackany-device/components';
// Don't forget: import '@trackany-device/components/styles/keenicons.css';

<KeenIcon icon="home" style="duotone" className="size-5" />

Storybook

Browse all components interactively — includes a Theme toolbar to switch between all 21 colour schemes and a Color Mode toggle for dark mode.

npm run storybook        # dev server on :6006
npm run build-storybook  # static build → storybook-static/

Docker (static Storybook)

docker build -t tad-storybook .
docker run -p 8080:80 tad-storybook
# open http://localhost:8080

Development

npm install
npm run storybook       # live-reload component dev
npm run types:check     # TypeScript validation

Release

Releases are fully automated via semantic-release on every push to main.

| Commit prefix | Version bump | |---------------|-------------| | fix: | patch — 1.0.0 → 1.0.1 | | feat: | minor — 1.0.1 → 1.1.0 | | feat!: / BREAKING CHANGE | major — 1.1.0 → 2.0.0 | | chore: docs: ci: style: refactor: | no release |

On release, semantic-release automatically:

  1. Calculates the next version from commit messages
  2. Updates package.json and CHANGELOG.md
  3. Creates a GitHub release with notes
  4. Publishes to npm

License

UNLICENSED — private, all rights reserved.