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

@gururaj/react-vite-lib

v1.0.4

Published

A modern React component library built with Vite.

Readme

React Vite Component Library

This project is a modern React component library built with Vite and TypeScript. It supports per-component imports, per-component CSS, and a shared common CSS file for easy integration and tree-shaking.

Usage

1. Install the Library

If published to npm:

npm install react-vite-lib

For local development/testing, see the Local Development section below.

2. Import Components and CSS

Per-component import:

import Button from 'react-vite-lib/Button';
import 'react-vite-lib/Button/Button.css';

import Card from 'react-vite-lib/Card';
import 'react-vite-lib/Card/Card.css';

import Alert from 'react-vite-lib/Alert';
import 'react-vite-lib/Alert/Alert.css';

Import shared/common styles:

import 'react-vite-lib/common.css';

3. TypeScript Support

All components include .d.ts type definitions for full TypeScript support.

4. External Peer Dependencies

This library does not bundle react, react-dom, or react/jsx-runtime. Make sure your project has compatible versions installed:

npm install react react-dom

Local Development & Testing

To test this library in another local app before publishing:

Option A: npm link (symlink)

  1. In the library folder:
    npm run build
    npm link
  2. In your test app folder:
    npm link react-vite-lib

Option B: file: protocol

  1. In your test app's package.json:
    "dependencies": {
      "react-vite-lib": "file:../path/to/react-vite-lib"
    }
  2. Then run:
    npm install

Project Structure

  • src/components/Button/ — Button component and styles
  • src/components/Card/ — Card component and styles
  • src/components/Alert/ — Alert component and styles
  • src/components/common.css — Shared/common styles

Building the Library

npm run build

Outputs ES modules and CSS files for each component in dist/.


License

MIT