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

@gitlaw/ui

v0.1.0

Published

GitLaw UI Component Library - A design system for legal tech applications

Readme

@gitlaw/ui

A modern React component library for legal tech applications, built with TypeScript and Tailwind CSS.

npm version Storybook React TypeScript Tailwind CSS

Live Storybook | Figma Source


Installation

npm install @gitlaw/ui
# or
yarn add @gitlaw/ui
# or
pnpm add @gitlaw/ui

Setup

  1. Import the styles in your app's entry point:
import '@gitlaw/ui/styles.css';
  1. Configure Tailwind (recommended) - add the library to your content paths:
// tailwind.config.js
module.exports = {
  content: [
    // ... your content paths
    './node_modules/@gitlaw/ui/dist/**/*.js',
  ],
};

Usage

import { Button, Input, Avatar, Icon } from '@gitlaw/ui';

function App() {
  return (
    <>
      <Button variant="primary" size="m">Get Started</Button>
      <Input label="Email" placeholder="[email protected]" showLabel />
      <Avatar type="initials" initials="JD" size="M" />
      <Icon name="check" className="size-6" color="#5E49D6" />
    </>
  );
}

Development

# Clone and install
git clone https://github.com/GitLaw-co/gitlaw-ui.git
cd gitlaw-ui
npm install

# Run Storybook
npm run storybook

# Build library
npm run build

Opens at http://localhost:6006

Components

Core

| Component | Description | |-----------|-------------| | Button | Primary, secondary, outline, ghost, destructive variants with 5 sizes | | Input | Text input with labels, icons, validation states | | TextField | Multi-line textarea with character count | | Select | Searchable dropdown with multi-select support | | Switch | Toggle for boolean settings |

Data Display

| Component | Description | |-----------|-------------| | Avatar | Images, initials, icons, or empty states | | Badge | Notification indicators with color variants | | Tag | Labels with optional icon and close button | | Card | File, template, and folder cards with actions | | Tooltip | Contextual hints in multiple sizes/positions | | Toast | Notification messages |

Navigation

| Component | Description | |-----------|-------------| | Tab | Tab navigation with badge support | | MenuItem | List items with icons, avatars, or checkboxes | | Sidebar | Collapsible navigation with user states |

Feedback

| Component | Description | |-----------|-------------| | Dialog | Modal dialogs with action buttons | | ChatInput | AI chat interface with quick actions |

Foundation

| Resource | Count | |----------|-------| | Icons | 1,474 searchable icons | | Illustrations | 100 Zest illustrations | | Colors | Semantic + primitive palette | | Typography | DM Sans, 7 size scales |

Design Tokens

/* Primary palette */
--primary: #5e49d6;
--primary-hover: #6f5eec;
--secondary: #ebe7ff;

/* Semantic colors */
--destructive: #e11d48;
--alert: #f97316;
--positive: #15803d;

/* Text */
--text-primary: #1b1b1f;
--text-secondary: #989898;

Scripts

| Command | Description | |---------|-------------| | npm run storybook | Start dev server on :6006 | | npm run build-storybook | Build static Storybook | | npm run build | Build component library | | npm run lint | Run ESLint |

Tech Stack

| Technology | Version | |------------|---------| | React | 18 | | TypeScript | 5 | | Tailwind CSS | 3 | | Storybook | 8 | | Vite | 5 |

Project Structure

src/
├── components/       # React components
│   ├── Button/
│   ├── Input/
│   └── ...
├── stories/          # Storybook stories
├── assets/           # Icons, illustrations
└── styles/           # Global styles, tokens

Resources

Contributing with Claude Code

This project is designed for AI-assisted development with Claude Code. Follow these steps to get set up:

1. Install Claude Code

Download and install from claude.ai/download

2. Clone the Repository

git clone https://github.com/GitLaw-co/gitlaw-ui.git
cd gitlaw-ui
npm install

3. Open Project in Claude Code

  1. Open Claude Code app
  2. Click "Open Folder" or use Cmd+O
  3. Select the gitlaw-ui folder
  4. Claude now has access to the codebase

4. Connect Figma MCP

Figma MCP lets Claude read designs directly from Figma.

  1. In Claude Code, go to SettingsMCP Servers
  2. Find Figma and click Connect
  3. Authorize access when prompted
  4. Done! Claude can now read Figma files

5. Workflow Examples

Once set up, you can ask Claude to:

"Look at this Figma frame and implement it: [paste Figma link]"

"Add this button variant from Figma"

"I've added an illustration to Assets/Zest Illustration Set/new-illustration.svg - please add it to the Storybook"

"Update the colors to match Figma"

6. Key Commands

| Task | Command | |------|---------| | Start Storybook | npm run storybook | | Deploy to GitHub Pages | npm run deploy | | Update illustration colors | node scripts/update-illustration-colors.js |

7. Git Workflow

# Create feature branch
git checkout -b feature/your-feature

# Make changes with Claude Code...

# Commit and push
git add .
git commit -m "Add new feature"
git push origin feature/your-feature

# Create Pull Request on GitHub

Traditional Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/new-component)
  3. Commit changes (git commit -m 'Add new component')
  4. Push to branch (git push origin feature/new-component)
  5. Open a Pull Request

License

MIT