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

vaultcss

v0.3.3

Published

Unlock the Power of CSS

Readme

vaultcss

Unlock the Power of CSS

A CSS compiler, CLI, and layered stylesheet collection powered by LightningCSS.

npm install vaultcss
# or
pnpm add vaultcss

Features

  • LightningCSS compiler — transforms modern CSS for your target browsers
  • fluid()clamp() conversion — fluid typography and spacing via lightningcss-plugin-fluid
  • @custom-media expansion — draft spec resolved at compile time
  • Layered stylesheets — ready-to-use CSS files structured around @layer
  • vaultcss init CLI — scaffolds a layer-based CSS file structure into your project

CLI

Run the initializer to scaffold CSS files under src/styles/:

npx vaultcss init

The generated structure follows the layer architecture below. tokens/mediaqueries.css includes a /* @vaultcss mediaqueries */ marker so tools can locate and inject custom media queries.


Layer Architecture

@layer tokens, reset, base, vendors, components, utilities;

| Layer | Purpose | |-------|---------| | tokens | CSS custom properties and @custom-media definitions | | reset | Browser reset based on @hilosiva/oreset | | base | Tag-level styles for html, body, h1h6, a | | vendors | Third-party style overrides | | components | Reusable UI parts (container, grid, spacer) | | utilities | Single-responsibility classes — highest specificity |


Stylesheet Exports

Import individual layers or the full bundle:

/* Full bundle */
@import "vaultcss/index.css";

/* Individual layers */
@import "vaultcss/mediaqueries.css";
@import "vaultcss/tokens/tokens.css";
@import "vaultcss/reset/reset.css";
@import "vaultcss/base/html.css";
@import "vaultcss/base/a.css";
@import "vaultcss/base/hn.css";
@import "vaultcss/components/container.css";
@import "vaultcss/components/grid.css";
@import "vaultcss/components/spacer.css";
@import "vaultcss/utilities/utilities.css";

JS / TypeScript API

import { VaultCss } from "vaultcss";

const vault = new VaultCss({
  targets: "defaults",   // browserslist query
  minify: false,
  fluid: { /* lightningcss-plugin-fluid options */ },
  customMedia: {
    "--sm": "(min-width: 640px)",
    "--lg": "(min-width: 1024px)",
  },
});

// Synchronous — returns an optimized CSS string
const output = vault.optimize(css);

// Asynchronous — returns a Prettier-formatted CSS string
const formatted = await vault.compiler(css);

PluginOptions

| Option | Type | Description | |--------|------|-------------| | targets | string \| string[] | browserslist query. Defaults to "defaults" | | fluid | fluidOptions | Options passed to lightningcss-plugin-fluid | | minify | boolean | Minify output. Default: false | | customMedia | Record<string, string> | Additional or overriding @custom-media definitions |

Methods

| Method | Returns | Description | |--------|---------|-------------| | optimize(css, options?) | string | Synchronously compiles and transforms CSS | | compiler(css) | Promise<string> | Compiles CSS, then formats with Prettier |


Vite Integration

For Vite projects, pair vaultcss with vite-plugin-vaultcss for seamless build integration. vaultcss itself works as a standalone LightningCSS wrapper in any build pipeline.


License

MIT © Shibata Hironori