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

@snowui-design-system/components

v0.1.0

Published

> **版本**: v1.1.0 > **更新**: 2026-02-05 > **职责**: 项目结构与开发环境说明

Readme

SnowUI Components 项目说明

版本: v1.1.0 更新: 2026-02-05 职责: 项目结构与开发环境说明

1. 项目概览

技术方案

  • 框架: Svelte 5 (Runes API)
  • 构建: Vite + TypeScript
  • 包管理: npm workspaces
  • 样式: 原生 CSS + snowui.css (Design System)

依赖关系

  • @snowui-design-system/resource-svelte:
    • 用途: 提供图标、头像、插画等静态资源组件。
    • 引用方式:
      • 生产代码: import { IconName } from "@snowui-design-system/resource-svelte";
      • Vite 配置: 开发环境已通过 alias 映射到本地 workspace 源码。

2. 文件夹结构

| 目录 | 描述 | | :--- | :--- | | src/components/ | 组件源码 (.svelte)、文档 (.md)、测试 (.test.ts) | | src/logic/ | 共享 TypeScript 逻辑 (FrameProfile, Context) | | src/styles/ | 共享 CSS (layout.css, skeleton.css) | | src/test/ | 组件预览和测试环境 | | src/demo/ | AI 调试用 Demo 文件 (不提交生产) |


3. Frame 组件 (核心)

Frame 是所有 SnowUI 组件的基石。开发任何组件前,必须了解 Frame 的能力

  • 文档: Frame.md
  • 能力: 响应式、上下文、截断、状态机、动效编排
  • Profile: Surface, Container, Field, Anchor

4. 开发规范

核心文档: 所有开发活动必须遵循 AI_GUIDELINES.mdComponentGuidelines.md

样式系统 (snowui.css)

本项目严禁使用 Tailwind CSS。必须使用 snowui.css 提供的 Token 变量与工具类。


5. 测试与验证

测试项目 (src/test)

  • 启动: npm run dev
  • 组件注册: 新组件必须在 src/test/component-registry.ts 注册,并在 src/index.ts 导出

调试 Playground

  • 用户测试: src/Playground.svelte (不要修改)
  • AI 调试: src/demo/Demo.svelte (不提交生产)
  • 测试列表: 访问 /?page=test-list

6. 文档规范

  • 位置: 组件文档与源码同名同级 (Button.svelteButton.md)
  • 同步原则: 修改代码必须同步修改文档与 Changelog

7. 评审与发布

  • Review: 组件开发完成后,调用 review 技能进行自我审查
  • 发布: 遵循语义化版本 (SemVer)