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

@oosa-life/ui-kit

v1.0.1

Published

- 設計 token 皆放於 `tokens/` 目錄,格式為 JSON。 - 使用 [Style Dictionary](https://amzn.github.io/style-dictionary/) 統一管理與輸出。 - 相關說明請見 `docs/tokens.md`。

Downloads

5

Readme

Design Tokens 與 Style Dictionary

  • 設計 token 皆放於 tokens/ 目錄,格式為 JSON。
  • 使用 Style Dictionary 統一管理與輸出。
  • 相關說明請見 docs/tokens.md

docs/

  • 放置設計 token、Style Dictionary、元件開發等相關說明文件。

產生 Tailwind 設定

npx style-dictionary build --platform tailwind

產生於 build/tailwind/tailwind-tokens.js,可用於自動化 Tailwind 設定。

Storybook & Ladle

  • Ladle:主要元件開發、互動測試環境,啟動:
    pnpm ladle
  • Storybook:專注於元件文件(docs),啟動:
    pnpm storybook:docs

@oosa-life/ui-kit

概述

本專案是一個 React UI 元件庫,使用 TypeScript 開發,並透過 Changesets 管理版本與自動化 npm publish 流程。

安裝

pnpm add @oosa-life/ui-kit

使用方式

本專案發佈到 npm 的內容為 dist 目錄下的檔案,包含:

  • dist/index.js:CommonJS 格式
  • dist/index.esm.js:ESM 格式
  • dist/index.d.ts:TypeScript 型別定義
  • docs/:說明文件目錄

範例

import { Button } from '@oosa-life/ui-kit';

function App() {
  return <Button label="Click me" />;
}

開發

安裝依賴

pnpm install

開發伺服器

pnpm run ladle

測試

pnpm run test

發佈

本專案使用 Changesets 管理版本與自動化 npm publish 流程,詳情請參考 Changeset Workflow

注意事項

  • 實際發佈到 npm 的內容為 dist 目錄下的檔案,請確保 dist 目錄已正確建置。
  • 如需自動產生 changelog 或有多 package monorepo 需求,可再調整設定。

其他

  • 所有元件皆為 tree-shakable,支援 ESM/CJS。
  • 若需更多元件與 props,請參考 Storybook 文件。