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

@motion-proto/live-tokens

v0.1.1

Published

Design token editor with live CSS variable editing. Svelte 4 + Vite.

Readme

Live Tokens

A starter Svelte + Vite site with a full design-token system and an in-browser editor.

What you get

  • Design-token admin panel at /admin (dev-only). Edit colors, typography, spacing, radii, shadows, and motion, and see the whole site update live.
  • Live editor overlay pinned to the top-right of every page in dev. Opens the token editor in a side panel or floating window without leaving the page you're styling.
  • Page Source button — jumps straight to the current page's Svelte file in VS Code (vscode:// link).
  • Component library at /components: Button, Card, Dialog, Badge, Tabs, Tooltip, Toggle, and more.
  • Token persistence: each saved palette is a JSON file in tokens/. The active palette syncs into src/styles/variables.css on save, so production builds ship pure CSS.

Quick start

npm install
npm run dev

Open http://localhost:5173. The editor overlay sits in the top-right corner. Click Editor to expand it, or hit Fullscreen to jump to /admin.

Layout

  • src/pages/Landing.svelte — the welcome page (replace this with your site)
  • src/pages/Admin.svelte — design-system editor
  • src/pages/ShowcasePage.svelte — component showcase
  • src/components/ — the reusable components
  • src/showcase/ — the editor UI (tabs, palette editors, curve editor, backup browser)
  • src/lib/ — the overlay, router glue, token persistence, and color helpers
  • src/styles/variables.css — the generated CSS variables (this is the source of truth at runtime)
  • tokens/ — persisted palette files; _active.json selects the palette loaded on dev, _production.json selects the palette synced to CSS

How the editor ships changes to prod

  1. Edit in /admin → the overlay writes to the active JSON file in tokens/.
  2. When you promote a palette to "production", its variables are written into src/styles/variables.css and backed up under src/styles/_backups/.
  3. npm run build bundles that CSS file as-is. No token-editor code or JSON lookups in the prod bundle.

License

MIT. Originally extracted from RuneGoblin.