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

design-system-ai-starter

v0.1.1

Published

Starter kit and CLI for making design systems readable by AI coding agents.

Readme

design-system-ai-starter

Starter kit и CLI для подготовки реальной дизайн-системы к работе с AI coding agents.

Идея простая: у команды уже есть токены, CSS variables, theme-файлы и библиотека компонентов, но AI-агенты всё равно:

  • выдумывают значения
  • дрейфуют между сессиями
  • не понимают дизайн-намерение из кода

Этот репозиторий помогает создать промежуточный слой между дизайн-системой и агентами:

  • .cursor/rules/design-system.mdc
  • CLAUDE.design-system.md
  • AGENTS.design-system.md
  • specs/foundations/*
  • specs/tokens/token-reference.md

Быстрый старт

Сейчас основной путь использования такой: клонировать репозиторий и запускать CLI локально.

git clone https://github.com/AndrewAntoshkin/design-system-ai-starter.git
cd design-system-ai-starter
node ./bin/design-system-ai-starter.js help
node ./bin/design-system-ai-starter.js init ./my-ui-project
node ./bin/design-system-ai-starter.js sync-tokens --input ./examples/css-variables/tokens.css --target ./my-ui-project
node ./bin/design-system-ai-starter.js doctor ./my-ui-project

Метаданные пакета уже подготовлены под npm, но главный сценарий входа пока именно такой.

Команды

init

Раскладывает базовую AI-readable структуру в проект:

node ./bin/design-system-ai-starter.js init .

sync-tokens

Читает CSS variables или JSON-токены и обновляет markdown-спеки:

node ./bin/design-system-ai-starter.js sync-tokens --input ./tokens.css --target .

Поддерживается:

  • CSS variables
  • nested / flat JSON
  • DTCG-подобный формат с $value / $type
  • структуры с value / type
  • массивы { name, value }

Важно:

  • примеры examples/tailwind/design-tokens.ts и examples/chakra/theme.ts лежат в репозитории как reference patterns
  • это не прямой input для sync-tokens
  • сначала такие токены нужно экспортировать в CSS variables или JSON

doctor

Проверяет, что обязательные файлы существуют:

node ./bin/design-system-ai-starter.js doctor .

help и --version

node ./bin/design-system-ai-starter.js help
node ./bin/design-system-ai-starter.js --version

Для чего подходит

  • существующая дизайн-система без agent-readable слоя
  • проект с CSS variables или JSON токенами
  • команда, которая хочет использовать Cursor / Claude без визуального дрейфа

Сейчас также поддерживаются foundation docs для:

  • color
  • spacing
  • typography
  • radius
  • motion

Для чего не подходит

  • как полноценный Figma exporter
  • как DOM drift detector
  • как генератор всей дизайн-системы с нуля

Это базовый operational layer, а не финальный полный продукт.

Demo

Сценарий before/after описан в demo/README.md.

demo/output/ закоммичен специально как пример сгенерированного результата, чтобы его можно было изучить без запуска CLI.