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

@kuroshio-lab/design-system

v0.2.3

Published

Open-source design system and component library for Kuroshio Lab projects

Readme

@kuroshio-lab/design-system

An open-source design system and component library for Kuroshio Lab projects. Built with React, TypeScript, Radix UI, and Tailwind CSS.

Overview

This monorepo contains three packages:

Quick Start

Installation

# At the monorepo root
npm install
# or
pnpm install
# or
yarn install

Development

# Watch mode for all packages
npm run dev

# Build all packages
npm run build

# Lint all packages
npm run lint

# Type check all packages
npm run type-check

Structure

kuroshio-design-system/
├── packages/
│   ├── ui/                 # Radix UI-based components
│   │   ├── src/
│   │   │   ├── button.tsx
│   │   │   ├── card.tsx
│   │   │   ├── dialog.tsx
│   │   │   ├── form.tsx
│   │   │   ├── input.tsx
│   │   │   ├── label.tsx
│   │   │   ├── select.tsx
│   │   │   ├── badge.tsx
│   │   │   ├── scroll-area.tsx
│   │   │   ├── separator.tsx
│   │   │   ├── textarea.tsx
│   │   │   └── index.ts
│   │   └── package.json
│   │
│   ├── components/         # Domain-specific components
│   │   ├── src/
│   │   │   ├── observation/
│   │   │   │   ├── ObservationCard.tsx
│   │   │   │   └── ObservationModal.tsx
│   │   │   ├── species/
│   │   │   │   └── SpeciesSearch.tsx
│   │   │   ├── map/
│   │   │   │   └── MapComponent.tsx
│   │   │   ├── forms/
│   │   │   │   └── ShadcnDynamicForm.tsx
│   │   │   └── index.ts
│   │   └── package.json
│   │
│   └── styles/             # Styling utilities and config
│       ├── src/
│       │   └── index.ts
│       ├── tailwind.config.js
│       ├── postcss.config.js
│       └── package.json
│
├── tsconfig.json
├── turbo.json
├── package.json
└── README.md

Publishing to npm

Prerequisites

  1. Create npm account at https://www.npmjs.com
  2. Add npm credentials: npm login
  3. Create GitHub repository for this design system

Publishing Steps

# 1. Update version in root package.json and all packages
npm version patch  # or minor/major

# 2. Build all packages
npm run build

# 3. Publish to npm
npm publish

# 4. Publish @kuroshio-lab/ui
cd packages/ui && npm publish

# 5. Publish @kuroshio-lab/components
cd ../components && npm publish

# 6. Publish @kuroshio-lab/styles
cd ../styles && npm publish

Usage in Projects

In marine-species-tracker

# Install from npm
npm install @kuroshio-lab/ui @kuroshio-lab/components @kuroshio-lab/styles
// src/app/layout.tsx
import { tailwindConfig } from '@kuroshio-lab/styles/tailwind';

// src/components/page.tsx
import { Button } from '@kuroshio-lab/ui/button';
import { Card } from '@kuroshio-lab/ui/card';
import { ObservationCard } from '@kuroshio-lab/components';

In landing-page

npm install @kuroshio-lab/ui @kuroshio-lab/styles

In ocean-data-dashboard

npm install @kuroshio-lab/ui @kuroshio-lab/styles

Component APIs

@kuroshio-lab/ui

All components are styled with Tailwind CSS and built on Radix UI primitives.

import {
  Button,
  Card,
  Dialog,
  Form,
  Input,
  Label,
  Select,
  Badge,
  ScrollArea,
  Separator,
  Textarea,
} from '@kuroshio-lab/ui';

@kuroshio-lab/components

Domain-specific components from Kuroshio Lab projects.

import {
  ObservationCard,
  ObservationModal,
  SpeciesSearch,
  MapComponent,
  ShadcnDynamicForm,
} from '@kuroshio-lab/components';

@kuroshio-lab/styles

Shared styling utilities.

import { theme, cn } from '@kuroshio-lab/styles';

// Use theme colors
const color = theme.colors.primary;

// Use cn utility for conditional classes
const className = cn('p-4', isActive && 'bg-blue-500');

Adding Components

Adding a UI Component

  1. Create component file in packages/ui/src/ (e.g., accordion.tsx)
  2. Add export to packages/ui/src/index.ts
  3. Update packages/ui/package.json exports field

Adding a Domain Component

  1. Create directory structure in packages/components/src/ (e.g., src/observation/)
  2. Create component file
  3. Add export to packages/components/src/index.ts

Configuration Files

tsconfig.json

Path aliases for importing from packages:

{
  "paths": {
    "@kuroshio-lab/ui": ["packages/ui/src/index.ts"],
    "@kuroshio-lab/components": ["packages/components/src/index.ts"],
    "@kuroshio-lab/styles": ["packages/styles/src/index.ts"]
  }
}

turbo.json

Optimizes builds across the monorepo using Turbo.

Development Workflow

For Contributors

  1. Fork the repository
  2. Create a feature branch
  3. Make changes to component files
  4. Test locally: npm run dev
  5. Run type checks: npm run type-check
  6. Commit and push to GitHub
  7. Create a pull request

Local Testing with Other Projects

To test changes before publishing:

# In the project using the design system (marine-species-tracker)
npm install /path/to/kuroshio-design-system/packages/ui

Or use npm link:

cd kuroshio-design-system/packages/ui
npm link

cd ../../../marine-species-tracker
npm link @kuroshio-lab/ui

License

MIT - See LICENSE file for details

Contributing

We welcome contributions! Please read our contributing guidelines and submit issues or pull requests.

Links