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

@gkssk/dstest

v0.1.2

Published

Internal design system package

Readme

@common/design-system

  • 공통 디자인 시스템 (shadcn/ui 기반)

📁 프로젝트 구조

company-design-system/
├── src/
│   ├── components/
│   │   ├── Button/
│   │   │   ├── Button.tsx          # 컴포넌트
│   │   │   ├── Button.stories.tsx  # 스토리북
│   │   │   └── index.ts            # export
│   │   ├── Input/
│   │   ├── Badge/
│   │   ├── Card/
│   │   └── Avatar/
│   ├── styles/
│   │   └── globals.css             # CSS 변수 (테마)
│   ├── lib/
│   │   └── utils.ts                # cn() 유틸
│   └── index.ts                    # 전체 export
├── .storybook/
│   ├── main.ts
│   └── preview.ts
└── .github/
    └── workflows/
        ├── publish.yml             # npm 자동 배포
        └── storybook.yml           # 스토리북 자동 배포

🚀 처음 세팅하는 법 (디자인 시스템 담당자)

1단계 - GitHub Repository 생성

GitHub에서 새 repo 생성: company-design-system
Organization repo로 만들면 @your-company/design-system 패키지명 사용 가능

2단계 - 로컬에서 초기 세팅

# repo clone
git clone https://github.com/your-company/design-system.git
cd design-system

# 의존성 설치
npm install

# 스토리북 실행 확인
npm run storybook
# http://localhost:6006 에서 확인

3단계 - package.json에서 회사명 변경

{
  "name": "@your-company/design-system",  ← GitHub 조직명으로 변경
  "publishConfig": {
    "registry": "https://npm.pkg.github.com"
  }
}

4단계 - GitHub Pages 활성화 (스토리북 배포용)

GitHub repo → Settings → Pages
Source: Deploy from a branch
Branch: gh-pages / root

5단계 - 첫 배포

# 버전 태그 붙이고 push → GitHub Actions가 자동으로 npm publish
git add .
git commit -m "feat: 초기 컴포넌트 세팅"
git push origin main

git tag v1.0.0
git push origin v1.0.0
# → GitHub Actions가 자동으로 npm publish 실행!

📦 다른 프로젝트에서 설치하는 법

1단계 - .npmrc 파일 생성 (프로젝트 루트에)

# .npmrc
@your-company:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN

GitHub Token 발급 방법 GitHub → Settings → Developer settings → Personal access tokens → Tokens (classic) 권한: read:packages 만 체크하면 됨

2단계 - 설치

npm install @your-company/design-system

3단계 - CSS 변수 추가 (프로젝트의 globals.css 또는 index.css에)

/* 프로젝트의 globals.css 또는 index.css */
@import "@your-company/design-system/dist/styles.css";

/* 공통 테마: --primary 하나만 바꾸면 primary 계열 스타일이 전체 반영됨 */
:root {
  --primary: 221 83% 53%;
}

예시:

/* 브랜드 블루 */
:root { --primary: 221 83% 53%; }

/* 브랜드 그린 */
:root { --primary: 160 84% 39%; }

4단계 - 사용

import { Button, Input, Badge, Card } from "@your-company/design-system"

export default function MyPage() {
  return (
    <div>
      <Button variant="default">클릭</Button>
      <Input label="이메일" placeholder="[email protected]" />
      <Badge variant="success">완료</Badge>
    </div>
  )
}

🔄 버전 업데이트 흐름

# 디자인 시스템 담당자가
npm version patch   # 1.0.0 → 1.0.1 (버그 수정)
npm version minor   # 1.0.0 → 1.1.0 (기능 추가)
npm version major   # 1.0.0 → 2.0.0 (Breaking change)

git push origin main --tags
# → GitHub Actions 자동 실행 → npm publish
# 각 프로젝트에서 업데이트 받으려면
npm update @your-company/design-system

🧑‍💻 로컬 개발

npm run storybook      # 스토리북 실행 (http://localhost:6006)
npm run build          # 빌드
npm run build-storybook # 스토리북 빌드

📋 컴포넌트 목록

| 컴포넌트 | 설명 | |---------|------| | Button | variant(6종), size(4종), isLoading 지원 | | Input | label, error, hint, leftIcon, rightIcon 지원 | | Badge | variant(6종) 지원 | | Card | CardHeader, CardTitle, CardDescription, CardContent, CardFooter | | Avatar | src, fallback, size(4종) 지원 |