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 🙏

© 2025 – Pkg Stats / Ryan Hefner

tcce-design-system-test

v0.3.30

Published

This package provides reusable UI components to ensure consistency across all CRM frontend applications

Readme

TCCE Design System

Library repository for the TCCE CRM Design System. This package provides reusable UI components built with React, TypeScript, and Tailwind CSS to ensure consistency across all CRM frontend applications.

📋 Prerequisites

Before getting started, ensure you have the following installed on your system:

🚀 Quick Start

Option 1: Using Docker (Recommended)

The easiest way to get started is using Docker, which ensures a consistent environment across all systems.

1. Clone the repository

git clone <repository-url>
cd tcce-design-system

2. Build the Docker image

# Build the image
docker build -t tcce-design-system .

# Or use the npm script
npm run docker:build

3. Run the container

# Run with volume mounting for development
docker run -it --rm -p 6006:6006 --name tcce-design-system \
  -v $(pwd):/usr/src/app \
  -v /usr/src/app/node_modules \
  tcce-design-system

# Or use the npm script
npm run docker:run

4. Access the application

  • Storybook: Open http://localhost:6006 in your browser
  • The container will automatically start Storybook in development mode

Option 2: Local Development

If you prefer to run the project locally without Docker:

1. Install dependencies

# Install pnpm globally if not already installed
npm install -g pnpm

# Install project dependencies
pnpm install

2. Start development server

# Start Storybook for component development
pnpm run storybook

# Or start Vite development server
pnpm run dev

3. Access the application

🛠️ Development

Available Scripts

| Command | Description | | -------------------------- | ------------------------------------- | | pnpm run dev | Start Vite development server | | pnpm run build | Build the library for production | | pnpm run storybook | Start Storybook development server | | pnpm run build-storybook | Build static Storybook for deployment | | pnpm run preview | Preview the production build | | pnpm run lint | Run ESLint | | pnpm run lint:fix | Fix ESLint issues automatically | | pnpm run format | Format code with Prettier | | pnpm run docker:build | Build Docker image | | pnpm run docker:run | Run Docker container |

Project Structure

tcce-design-system/
├── src/
│   ├── components/          # Reusable UI components
│   ├── types/              # TypeScript type definitions
│   ├── main.ts             # Library entry point
│   └── globals.css         # Global styles
├── .storybook/             # Storybook configuration
├── dist/                   # Built library output
├── dockerfile              # Docker configuration
├── package.json            # Dependencies and scripts
└── vite.config.ts          # Vite build configuration

Adding New Components

  1. Create your component in src/components/
  2. Add corresponding Storybook stories (.stories.tsx files)
  3. Export the component from src/main.ts
  4. Test your component in Storybook

Code Quality

This project uses:

  • ESLint for code linting
  • Prettier for code formatting
  • TypeScript for type safety
  • Tailwind CSS for styling

Run pnpm run lint:fix and pnpm run format before committing changes.

🐳 Docker Configuration

Dockerfile Details

The project includes a multi-stage Dockerfile optimized for production:

  • Base Image: Node.js 24 Alpine (lightweight)
  • Package Manager: pnpm (faster than npm/yarn)
  • Port: 6006 (Storybook default)
  • Build Process: Automated Storybook build

Docker Commands Reference

# Build image
docker build -t tcce-design-system .

# Run container (development with volume mounting)
docker run -it --rm -p 6006:6006 --name tcce-design-system \
  -v $(pwd):/usr/src/app \
  -v /usr/src/app/node_modules \
  tcce-design-system

# Run container (production)
docker run -d -p 6006:6006 --name tcce-design-system tcce-design-system

# Stop and remove container
docker stop tcce-design-system && docker rm tcce-design-system

# View container logs
docker logs tcce-design-system

# Execute commands in running container
docker exec -it tcce-design-system sh

📦 Building for Production

Library Build

# Build the library
pnpm run build

# The built files will be in the `dist/` directory

Storybook Build

# Build static Storybook
pnpm run build-storybook

# The static files will be in the `storybook-static/` directory

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

👥 Team

🆘 Troubleshooting

Common Issues

Docker build fails:

  • Ensure Docker is running
  • Check if port 6006 is available
  • Try rebuilding without cache: docker build --no-cache -t tcce-design-system .

Storybook won't start:

  • Clear node_modules and reinstall: rm -rf node_modules && pnpm install
  • Check if port 6006 is already in use

Build errors:

  • Ensure all dependencies are installed: pnpm install
  • Check TypeScript errors: pnpm run build