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

@synexusjs/react

v0.2.0

Published

Shared React UI primitives, hooks, and utilities extracted from the CMPC Orchestration client.

Downloads

341

Readme

@synexusjs/react

Shared React UI primitives, hooks, and utilities extracted from the CMPC Orchestration client.

Exports

Main entry (@synexusjs/react)

| Category | Exports | | ------------- | -------------------------------------------------------------------- | | Utils | cn, readLocalStorage, writeLocalStorage, removeLocalStorage, buildPaginationTokens, resolveTotalPages | | Hooks | useDebounce, useDisclosure, useEventListener, useLockBodyScroll, useFocusTrap, usePageTitle | | Primitives| Button, Badge, LiveIndicator | | Forms | Input, Textarea, Select | | Feedback | ContentState, Tooltip | | Data | Table, TableHeader, TableBody, TableHead, TableRow, TableCell, AnimatedTableBody, AnimatedTableRow, JsonBlock | | Navigation| Tabs | | Layout | Card, CardHeader, CardContent, CardFooter | | Overlays | Modal |

Animations entry (@synexusjs/react/animations)

tableStateMotion, tableContainerMotion, tableRowsMotion, tableRowMotion, tableLoadingMotion

Requires motion as a peer dependency.

Progressive Adoption

Replace imports one module at a time. No big-bang migration required.

- import { Button } from '@/shared/ui/Button';
+ import { Button } from '@synexusjs/react';

- import { cn } from '@/shared/utils/cn';
+ import { cn } from '@synexusjs/react';

- import { useDebounce } from '@/shared/hooks/use-debounce';
+ import { useDebounce } from '@synexusjs/react';

- import { tableRowsMotion, tableRowMotion } from '@/shared/animations/table.animations';
+ import { tableRowsMotion, tableRowMotion } from '@synexusjs/react/animations';

Migration order (recommended)

  1. Utils first (cn, local-storage, pagination) — zero UI risk, pure functions
  2. Hooks — no rendering changes, behavioral only
  3. Primitives (Button, Badge, LiveIndicator) — leaf components, no children dependencies
  4. Forms (Input, Textarea, Select) — isolated form elements
  5. Feedback + Data (ContentState, Tooltip, Table, Tabs, JsonBlock) — composite but self-contained
  6. Layout + Overlays (Card, Modal) — may have more integration points

Validation per step

After each group, run:

cd client && npx tsc --noEmit && npm run build

Peer Dependencies

  • react >= 19.0.0
  • react-dom >= 19.0.0
  • tailwindcss >= 4.0.0

Optional Peer Dependencies

  • lucide-react — icons in Button, Modal close button
  • motion — only needed if using AnimatedTable* components or @synexusjs/react/animations

Theming

Components use CSS custom properties from the host app's theme:

  • --org-primary-color / --org-primary-hover / --org-primary-active
  • --org-border-radius

These must be defined in the consuming app's CSS. Components fall back to neutral Tailwind colors when custom properties are not set.

Development

# TypeScript check
cd packages/synexusjs-react && npx tsc --noEmit

# Build (when publishing is needed)
cd packages/synexusjs-react && npx vite build

Re-running the migration

# Analysis only (no file changes)
npx tsx scripts/migrate-to-package.ts

# Copy files + rewrite imports
npx tsx scripts/migrate-to-package.ts --copy

# Dry run (prints what would happen)
npx tsx scripts/migrate-to-package.ts --dry-run