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

@g-bits/ui-kit-make

v0.1.0

Published

`@dam/ui-kit-make` 是面向 Figma Make 的可发布设计系统包骨架。它的目标不是替代仓库内部的 `@dam/ui-kit`,而是提供一套更稳定、更容易发布、对宿主环境依赖更少的最小组件集合,作为 Figma Make kit 的代码事实源。

Downloads

80

Readme

@dam/ui-kit-make

@dam/ui-kit-make 是面向 Figma Make 的可发布设计系统包骨架。它的目标不是替代仓库内部的 @dam/ui-kit,而是提供一套更稳定、更容易发布、对宿主环境依赖更少的最小组件集合,作为 Figma Make kit 的代码事实源。

这个包的作用

  • 作为 Figma Make 可安装的 React design system package
  • 向 Figma Make 暴露 DAM 的基础 tokens、主题和稳定组件
  • 为 Make kit 提供统一的 dark / light theme 上下文
  • 为后续 Code Connect 和前端重构建立更清晰的设计系统边界

@dam/ui-kit 的关系

  • @dam/ui-kit
    • 当前仓库内部使用的 UI 组件库
    • 同时服务业务实现和现有页面
  • @dam/ui-kit-make
    • 面向 Figma Make 的发布友好子集
    • 优先选择最稳定、最容易在独立环境运行的组件
    • 尽量减少对宿主项目样式环境的隐式依赖

v1 组件范围

  • ThemeProvider
  • damTokens
  • Stack
  • Button
  • Card
  • Input
  • NumberInput
  • Select
  • TextArea
  • Chip
  • Avatar
  • Snackbar
  • Icon 及常用图标导出

使用方式

1. 引入样式

import '@dam/ui-kit-make/theme.css';

2. 包裹主题

import { ThemeProvider } from '@dam/ui-kit-make';

export function App() {
  return (
    <ThemeProvider>
      <YourScreen />
    </ThemeProvider>
  );
}

3. 使用组件

import {
  Avatar,
  Button,
  Card,
  Chip,
  Input,
  Select,
  Snackbar,
  Stack,
} from '@dam/ui-kit-make';

export function Example() {
  return (
    <Stack gap={16}>
      <Card
        title="Asset Browser"
        actions={<Button variant="ghost">Refresh</Button>}
      >
        <Stack gap={12}>
          <Input placeholder="Search assets" />
          <Select defaultValue="updated">
            <option value="updated">Recently updated</option>
            <option value="name">Name</option>
          </Select>
          <Stack direction="row" gap={8}>
            <Chip active>Published</Chip>
            <Chip>Review</Chip>
          </Stack>
          <Stack direction="row" gap={12}>
            <Avatar name="Design Ops" />
            <Button>Upload</Button>
            <Button variant="secondary">Share</Button>
          </Stack>
        </Stack>
      </Card>
      <Snackbar open message="Metadata saved" tone="success" />
    </Stack>
  );
}

发布前最小 smoke test

这个包内置了一个最小 smoke test,用来验证以下内容:

  • build 能通过
  • 关键导出存在
  • theme.css 路径存在
  • 基础组件能通过 SSR 静态渲染

运行命令:

pnpm --filter @dam/ui-kit-make smoke:test

Vite 浏览器 smoke host

这个包还附带了一个浏览器 smoke host,用来在真正发布给 Figma Make 之前肉眼检查:

  • dark / light 两套主题
  • Button / Card / Input / Select / TextArea / Chip / Avatar / Snackbar 的浏览器表现
  • DAM 工作台风格是否成立
  • Make kit 预期的视觉密度和层级是否稳定

启动开发服务器:

pnpm --filter @dam/ui-kit-make smoke:dev

默认地址:

http://localhost:4176

做静态构建验证:

pnpm --filter @dam/ui-kit-make smoke:build

这个 host 位于:

packages/ui-kit-make/smoke-host

它的定位是“发布前试衣间”,不是正式文档站,也不是 Storybook 替代品。

当前状态

目前这个包还是仓库内骨架,所以 package.json 仍是 "private": true。准备真正发布到 npm registry 或 Figma 私有 registry 时,再改为可发布状态并补充版本发布流程。