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

motif-design

v1.5.0

Published

Domain-intelligent design system for AI coding assistants

Downloads

783

Readme

Motif

Domain-intelligent design system for AI coding assistants

AI coding tools produce generic, domain-inappropriate UI -- a fintech dashboard that looks like a meditation app, a health portal with e-commerce patterns. Motif fixes this by injecting domain intelligence from vertical databases (fintech, health, SaaS, e-commerce) and composing each screen with a fresh agent context window, so screen 10 is as sharp as screen 1.

Quick Start

npx motif-design@latest

This auto-detects your AI runtime (Claude Code for v1), installs design intelligence into your project, and sets up slash commands. Start designing with /motif:init.

Commands

Core Workflow (run in order)

| Command | What it does | |---------|-------------| | /motif:init | Interview, vertical detection, design brief | | /motif:research | 4-agent parallel research, locked design decisions | | /motif:system | Generate tokens + component specs + icon catalog + visual showcase | | /motif:compose [screen] | Build screen with fresh agent context | | /motif:review [screen\|all] | 4-lens heuristic evaluation, scored /100 | | /motif:fix [screen] | Fix review findings systematically |

Iteration

| Command | What it does | |---------|-------------| | /motif:evolve | Update design system based on learnings | | /motif:quick [desc] | Ad-hoc task with design system consistency |

Navigation

| Command | What it does | |---------|-------------| | /motif:progress | Current status + next steps | | /motif:help | Command reference |

How It Works

Four things make Motif different from generic UI generation:

Domain intelligence. Vertical databases contain domain-specific color palettes, typography scales, component patterns, layout conventions, and anti-patterns. When you tell Motif you are building a fintech app, every design decision draws from established fintech patterns -- not random defaults.

Fresh context per screen. Each screen is composed by a fresh subagent with a full 200K token context window loaded with your design system, research decisions, and domain knowledge. There is no context degradation over time. The tenth screen gets the same quality as the first.

Icon library integration. The system architect selects icons from curated libraries (Phosphor, Lucide, Heroicons) based on your domain vertical, generates an ICON-CATALOG.md with CDN links and usage syntax, and the composer consumes it -- so every screen uses real, consistent icons instead of placeholder text or hallucinated class names.

Design system enforcement. Hooks and validators run during composition to catch hardcoded color values, banned fonts, spacing violations, import cycles, naming conflicts, and accessibility issues before they ship. The design system is not advisory -- it is enforced.

Architecture

User runs /motif:compose login
         |
         v
  Runtime Adapter (Claude Code)
  thin command file -> loads core workflow
         |
         v
  Core Workflow (compose-screen.md)
  orchestrator reads design system, spawns fresh subagent
         |
         v
  Fresh Subagent (200K context)
  loads tokens.css + COMPONENT-SPECS.md + ICON-CATALOG.md + vertical DB
  builds screen -> validates -> commits atomically

Motif uses a core + adapters architecture:

  • Core (core/) -- shared workflows, references, templates, vertical databases. Runtime-agnostic.
  • Runtimes (runtimes/) -- thin adapters per AI tool. v1 ships Claude Code; others follow with zero core changes.
  • Scripts (scripts/) -- validation and analysis tools (compose-validator, token-extractor, gap-analyzer, contrast-checker).

Installed file layout (Claude Code):

.claude/commands/motif/     Slash commands (/motif:init, etc.)
.claude/get-motif/          Core: workflows, references, templates, agents
.planning/design/           Generated design artifacts (tokens, specs, screens)

Verticals

Motif ships with domain intelligence for:

| Vertical | File | |----------|------| | Fintech | core/references/verticals/fintech.md | | Health | core/references/verticals/health.md | | SaaS | core/references/verticals/saas.md | | E-commerce | core/references/verticals/ecommerce.md |

Each vertical contains color palettes, typography guidance, component patterns, layout conventions, icon recommendations, and anti-patterns specific to that domain. New verticals can be added using core/templates/VERTICAL-TEMPLATE.md.

Requirements

  • Node.js >= 22.0.0
  • Claude Code (v1.0 -- more runtimes coming)

Contributing

Contributions are welcome. Here's how to get started.

Setup

git clone https://github.com/Austine3000/motif.git
cd motif
npm install

Project Structure

bin/              Installer (npx entry point)
core/             Runtime-agnostic workflows, references, templates, verticals
runtimes/         Runtime-specific adapters (claude-code for v1)
scripts/          Validation and analysis tools
test/             E2E and validation tests

Running Tests

# Run the full validation suite against a test project
bash test/validation/run-all-validations.sh --controlled /path/to/test-project

# Run the compose validator on a screen
node scripts/compose-validator.js --screen login --files src/login.html

Adding a Vertical

  1. Copy core/templates/VERTICAL-TEMPLATE.md to core/references/verticals/<name>.md
  2. Fill in domain-specific palettes, typography, component patterns, and anti-patterns
  3. Add the vertical to the installer's detection logic in bin/install.js

Adding a Runtime Adapter

  1. Create a new directory under runtimes/<runtime-name>/
  2. Implement thin command files that load core workflows
  3. Document the adapter in core/references/runtime-adapters.md

Commit Convention

This project uses scoped prefixes:

feat(scope):     New feature
fix(scope):      Bug fix
docs(scope):     Documentation
chore(scope):    Maintenance
design(scope):   Design system work (init, research, system, compose, review, fix, evolve, quick)

Pull Requests

  1. Fork the repo and create a branch from main
  2. Make your changes with clear, atomic commits
  3. Ensure validation passes on any modified workflows or templates
  4. Open a PR with a summary of what changed and why

License

MIT