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

@nebutra/design-sync

v4.0.1

Published

Provider-agnostic design-tool sync. git-only | design-md | memory.

Downloads

49

Readme

Status: Foundation — provider interface, detection, git-only path, and CLI are complete. See DESIGN.md for the design rationale.

@nebutra/design-sync

Provider-agnostic design-tool sync. The application code never imports a specific design tool — it imports getDesignSync() and the runtime resolves the right backend.

Provider matrix

| Provider | Customer profile | Cost | China-friendly | Status | |----------|------------------|------|----------------|--------| | git-only | Indie hackers, AI-driven dev workflows, "no designer" teams | Free | Yes | full | | design-md | AI-native workflows — DESIGN.md as the design surface | Free | Yes | full | | memory | CI / unit tests | Free | n/a | full (test fixture) |

Quick start

import { getDesignSync } from "@nebutra/design-sync";

// Auto-detects the provider from environment variables (defaults to git-only).
const sync = await getDesignSync();

// Pull design-tool → repo (DTCG JSON files under packages/design/design-tokens/tokens).
const result = await sync.pull();
console.log(result.summary);

// Push repo → design-tool. Defaults to dry-run on design-md
// until you opt in by providing credentials.
await sync.push({ dryRun: true });

// Diagnose configuration.
const status = await sync.healthcheck();

Provider auto-detection

| Priority | Condition | Provider | |----------|-----------|----------| | 1 | DESIGN_SYNC_PROVIDER set to git-only / design-md / memory | as specified | | 2 | fallback | git-only |

memory is never auto-detected; it must be requested explicitly (used in tests).

Environment variables

# Optional — force a specific provider
DESIGN_SYNC_PROVIDER=""              # git-only | design-md | memory

# design-md
DESIGN_MD_PATH=""                    # defaults to <cwd>/DESIGN.md

CLI

The package ships a design-sync binary (mirrors the getDesignSync() API):

# Print which provider was resolved + which env vars were detected.
pnpm --filter @nebutra/design-sync exec design-sync detect

# Run the provider's healthcheck.
pnpm --filter @nebutra/design-sync exec design-sync healthcheck

# Pull design-tool → repo.
pnpm --filter @nebutra/design-sync exec design-sync pull

# Push repo → design-tool (defaults to dry-run on design-md).
pnpm --filter @nebutra/design-sync exec design-sync push --dry-run

# Restrict to specific token sets.
pnpm --filter @nebutra/design-sync exec design-sync pull --themes core,semantic

# Override provider for one invocation.
pnpm --filter @nebutra/design-sync exec design-sync detect --provider git-only

# JSON output for CI scripts.
pnpm --filter @nebutra/design-sync exec design-sync detect --json

Choosing a provider

  • You ship without a design tool (indie hacker, AI-first dev) → use git-only. Zero config. The DTCG files under packages/design/design-tokens/tokens are the source of truth.
  • You want an AI-native design surface → use design-md. Push/pull a DESIGN.md file (markdown + YAML front matter) that models and humans can both read and edit directly, with an official lint gate before writes.
  • You write tests → inject MemoryProvider directly via setDesignSync(...).

How DTCG flows through the package

packages/design/design-tokens/tokens/*.json   ← single source of truth (W3C DTCG)
                  ▲
                  │ pull()  /  push()
                  ▼
       DesignSyncProvider (git-only | design-md | memory)
                  │
                  ▼
       DESIGN.md or local files (git-only)

Every provider goes through the same DTCG validator (validateDtcgTree) before sending data anywhere; bad token files fail closed before they reach a remote API.