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

@stacklist-app/brandkit

v1.1.1

Published

Config-driven brand guide that bolts onto any website. Zero dependencies.

Readme

@stacklist-app/brandkit

A config-driven brand guide that bolts onto any website. One config.json drives the entire guide — colors, typography, logos, voice, components, spacing, accessibility. Zero runtime dependencies.

Swap the config and assets to generate a brand guide for any project. An optional generate command scrapes an existing codebase (Tailwind config, CSS variables, logo files) to bootstrap the config automatically.

Install

npm install github:The-Stack-Lab/brandkit
# or pin to a tag
npm install github:The-Stack-Lab/brandkit#v1.1.1

Requires Node.js 18+.

Quickstart

npx brandkit init brand        # scaffold brand/config.json + starter assets
npx brandkit generate brand    # optional: auto-extract tokens from your codebase
npx brandkit dev brand         # preview at http://localhost:4800 (live reload)
npx brandkit build brand       # bake into static files for production

The brand directory name is your choice — pass any path.

CLI

| Command | Description | |---|---| | brandkit init [dir] | Scaffold a new brand guide with a starter config.json | | brandkit generate [dir] | Extract colors, fonts, spacing, and logos from the host codebase and merge into config.json. Manual fields (voice, accessibility, components) are preserved. | | brandkit dev [dir] | Local dev server on :4800 with SSE live reload | | brandkit build [dir] | Produce static index.html + styles.css + engine.js with the theme baked in |

Framework integrations

Serve the brand guide at /brand in your existing dev server and bundle it on build.

Vite

// vite.config.js
import brandkit from '@stacklist-app/brandkit/integrations/vite'

export default {
  plugins: [brandkit()],
}

Astro

// astro.config.mjs
import brandkit from '@stacklist-app/brandkit/integrations/astro'

export default {
  integrations: [brandkit()],
}

Next.js / plain HTML: run brandkit build brand and serve the resulting directory as a static route.

Config

config.json is the single source of truth. Top-level keys:

  • brand — name, tagline, description, version
  • fonts — display + body with Google Fonts import
  • theme — CSS variable map (colors, gradients, font vars)
  • nav — sidebar structure
  • colors — brand / neutrals / semantic palettes
  • gradients, gradientUsage — gradient definitions + do/don't lists
  • logos, logoSizes — logo variants + download sizes
  • typography — type scale and specimens
  • hierarchy — text hierarchy demo
  • voice — tone description + do/don't examples
  • components — buttons, cards, stats
  • spacing — spacing scale tokens
  • accessibility — contrast ratio grid
  • cssVariables — variable reference

See example/config.json for a complete reference implementation (Freeway PHX).

How theming works

dist/styles.css uses CSS custom properties (var(--purple), var(--font-display), etc.) with no :root block.

  • Dev: the engine reads config.theme and injects a <style data-brandkit-theme> tag at runtime.
  • Build: brandkit build prepends the generated :root block to styles.css and injects the Google Fonts <link> and page title into index.html.

Swap the config, and every color, gradient, and font token updates everywhere.

License

MIT © The Stack Lab