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

@canceyd/react-npm-starter

v0.0.7

Published

A React component library with TypeScript, Vite, and shadcn/ui

Readme

@canceyd/react-npm-starter

A React component library built with TypeScript, Vite, and shadcn/ui. Optimized for tree-shaking and minimal bundle size.

Installation

npm install @canceyd/react-npm-starter
# or
pnpm add @canceyd/react-npm-starter
# or
yarn add @canceyd/react-npm-starter

Usage

Import individual components (recommended for minimal bundle size)

import { Button } from "@canceyd/react-npm-starter/button";
import { Container } from "@canceyd/react-npm-starter/container";

function App() {
  return (
    <Container>
      <Button variant="default">Click me</Button>
    </Container>
  );
}

Import from main entry point

import { Button, Container } from "@canceyd/react-npm-starter";

function App() {
  return (
    <Container>
      <Button variant="default">Click me</Button>
    </Container>
  );
}

Import global styles

To use the global styles (including Tailwind CSS, theme variables, and base styles), import them in your application's entry point:

// In your main.tsx, App.tsx, or root component
import "@canceyd/react-npm-starter/styles/globals.css";

Configure Tailwind CSS v4 to scan library components

Important: For Tailwind CSS v4 to detect and include classes from this library's components, you need to add a @source directive in your main CSS file.

In your consuming project's main CSS file (e.g., src/index.css or src/styles/globals.css), add:

@import "tailwindcss";
@source "../node_modules/@canceyd/react-npm-starter/dist/**/*.{js,ts,tsx}";

This tells Tailwind to scan the library's component files for class names. Without this, the library components won't have their Tailwind styles applied.

Example setup:

/* src/index.css or src/styles/globals.css */
@import "tailwindcss";
@source "../node_modules/@canceyd/react-npm-starter/dist/**/*.{js,ts,tsx}";

/* Your other styles */

Important Notes:

  • Make sure you have Tailwind CSS v4 configured in your consuming project, as the global styles depend on it.
  • Do NOT include /dist/ in the import path - use @canceyd/react-npm-starter/styles/globals.css (not @canceyd/react-npm-starter/dist/styles/globals.css).
  • If you're using a local version of this package (via pnpm link or file: protocol), make sure to rebuild the package after changes: pnpm run build.
  • If you encounter import errors, try reinstalling the package in your consuming project.

Components

Button

A flexible button component that can render as either a <button> or <a> element.

import { Button } from "@canceyd/react-npm-starter/button";

<Button variant="default" size="default">Default</Button>
<Button variant="outline" size="sm">Outline</Button>
<Button href="/about" newTab>Link Button</Button>

Container

A responsive container component with size variants.

import { Container } from "@canceyd/react-npm-starter/container";

<Container size="base">Content</Container>
<Container size="wide">Wide Content</Container>

Tree-Shaking

This package is optimized for tree-shaking. When you import individual components, only the code for those components will be included in your bundle.

License

MIT