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

@incorta/ui

v1.3.2

Published

Incorta design system — shadcn components on Base UI, Tailwind v4, React 19

Readme

@incorta/ui

Incorta's design system: shadcn components built on Base UI, styled with Tailwind CSS v4, targeting React 19.

Published to npm as @incorta/ui.

Installation

pnpm add @incorta/ui

Peer dependencies: react@^19 and react-dom@^19. Styling requires Tailwind CSS v4 in the consuming app (the package ships design tokens and unstyled class names, not compiled CSS).

Usage

Components are imported via their subpath, not a barrel (avoids name collisions across 60+ components and keeps bundles lean):

import { Button } from '@incorta/ui/components/button';
import { Card, CardContent, CardHeader } from '@incorta/ui/components/card';
import { useIsMobile } from '@incorta/ui/hooks/use-mobile';
import { cn } from '@incorta/ui'; // the only root export

Tailwind setup

In your app's Tailwind v4 CSS entry, import the package stylesheet. It brings in Tailwind, the Incorta design tokens, and an @source directive that makes Tailwind scan this package for class usage:

@import '@incorta/ui/globals.css';

If your app manages its own Tailwind layers (e.g. scoped/unlayered setups inside a microfrontend), import only the tokens and register the package as a source yourself:

@import 'tailwindcss';
@import '@incorta/ui/tokens.css';
@source '../node_modules/@incorta/ui/dist';

Dark mode follows the shadcn convention: add the dark class to an ancestor element.

Development

pnpm install
pnpm typecheck
pnpm build      # emits ESM + d.ts to dist/ via tsc, copies styles

New components are added with the shadcn CLI (configured by components.json):

pnpm dlx shadcn@latest add <component>

Testing changes locally in a consumer app

To try an unpublished change in a real app (e.g. incorta-apps) without cutting a release, symlink the consumer's node_modules/@incorta/ui straight at this repo, so rebuilding here is immediately visible there — no publish/push step per change.

Deliberately don't use pnpm link/npm link for this: in a pnpm workspace, pnpm link <path> doesn't just touch node_modules — it recorded the link as a persistent overrides entry in the workspace root package.json/pnpm-workspace.yaml as a side effect (observed with incorta-apps on pnpm 10.26.1), which is exactly the kind of change that could get committed by accident. A plain filesystem symlink (ln -s) achieves the identical resolution result without touching any file pnpm or git track.

A raw symlink means this repo's own node_modules/react (installed here to build/test the library) sits alongside the consumer's, which can cause duplicate-React "Invalid hook call" errors. Consumers that link this package must add dedupe: ['react', 'react-dom'] to their bundler's resolve config (e.g. Vite's resolve.dedupe) to force a single instance — see incorta-apps/apps/web/vite.config.ts for a working example.

In this repo, build once (and keep rebuilding on change):

pnpm run build         # one-off
pnpm run build:watch   # or leave this running while you iterate

In the consumer app, wire up a pair of scripts like incorta-apps/apps/web/package.json's ui:local/ui:remote:

"ui:local": "target=$(cd <relative-path-to-this-repo> && pwd) && ln -sfn \"$target\" node_modules/@incorta/ui",
"ui:remote": "pnpm install"

Resolve the path via cd ... && pwd rather than passing a relative path straight to ln: a relative symlink target resolves relative to the symlink's own directory (easy to miscount when it's nested several node_modules levels deep), and — critically — piping a failed cd straight into ln's argument via ln -sfn "$(cd bad/path && pwd)" ... fails silently: the substitution returns an empty string but ln still runs and happily creates a broken symlink pointing nowhere. Assigning to a variable first (target=$(cd ... && pwd) && ln ...) makes the cd failure propagate through the &&, so a wrong path aborts loudly instead of quietly corrupting node_modules/@incorta/ui.

ui:local swaps in the symlink; ui:remote reinstalls from the lockfile to restore the real published dependency. Neither touches package.json or the lockfile — nothing to accidentally commit.

The build is bundler-targeted ESM: import specifiers are left extensionless and internal #components/* / #lib/* / #hooks/* aliases are resolved through the package.json imports field, so consumers need a bundler (Vite, webpack, Next.js, …).

Releases

Releases are fully automated with semantic-release (modeled on layout-dev/Layout): every push to main runs the Release workflow, which determines the next version from Conventional Commits, publishes to npm, and creates the GitHub release. main is a protected branch, so nothing is committed back to it: the changelog lives on GitHub Releases, and the version field in the committed package.json is a placeholder that gets stamped with the real version only in the published tarball.

  • feat: → minor, fix:/docs:/chore:/refactor:/… → patch, feat!: or a BREAKING CHANGE: footer → major.
  • Commit messages are enforced locally by commitlint (husky commit-msg hook).
  • npm auth uses Trusted Publishing (OIDC): the workflow authenticates as Incorta/[email protected] directly — no long-lived npm token. Provenance attestations are off: npm only supports them for public source repositories, and this repository is private.
  • One-time bootstrap: npm cannot trust-publish a package that doesn't exist yet, so the first-ever publish needs a short-lived npmjs granular token in the NPM_TOKEN repo secret. After that release, configure the trusted publisher on the package's npmjs Settings page (GitHub Actions / Incorta / ui / release.yml) and delete the secret.

There is no manual version bumping: package.json#version is managed by the release pipeline.