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

piloti

v1.0.3

Published

A config-driven CSS framework following CUBE CSS methodology

Readme

|| PIlotI ||

A config-driven CSS framework following CUBE CSS methodology.

Piloti (pilotis) — architectural columns that lift a building, providing the foundation. Just like pilotis support architecture, Piloti supports your design system.

Features

  • Token-based — Colors, spacing, typography from config
  • Auto-generated utilities — Build from your tokens
  • Responsive — Breakpoint-prefixed classes (sm:, md:, lg:, xl:)
  • CUBE CSS compositions — Stack, cluster, flow
  • Customizable — Your config, your design system

Installation

npm install piloti
npx piloti

Quick Start

1. Create your config

Create piloti.config.json in your project root:

{
  "settings": {
    "basePixel": 16,
    "breakpoints": {
      "sm": "640px",
      "md": "768px",
      "lg": "1024px"
    }
  },
  "tokens": {
    "color": {
      "primary": "#4f46e5",
      "secondary": "#e5e7eb",
      "accent": "#f59e0b"
    },
    "spacing": {
      "0": "0px",
      "1": "4px",
      "2": "8px",
      "4": "16px",
      "8": "32px"
    }
  },
  "utilities": [
    {
      "prefix": "p",
      "property": "padding",
      "fromToken": "spacing",
      "values": ["0", "1", "2", "4", "8"],
      "responsive": true
    },
    {
      "prefix": "bg",
      "property": "background-color",
      "fromToken": "color",
      "values": ["primary", "secondary", "accent"]
    }
  ]
}

2. Generate CSS

npx piloti

This creates piloti-output/ with:

  • variables.css — CSS custom properties
  • utilities.css — Utility classes
  • responsive.css — Responsive utilities
  • index.css — Entry point

3. Import in your project

@import url('./piloti-output/index.css');

Or in JS:

import './piloti-output/index.css';

CLI Options

npx piloti [options]

Options:
  -c, --config <path>   Path to config file (default: ./piloti.config.json)
  -o, --output <path>   Output directory (default: ./piloti-output)
  -h, --help            Show help

Examples

# Use default config location
npx piloti

# Custom config
npx piloti --config ./tokens/design-system.json

# Custom output
npx piloti --output ./src/styles/generated

Config Reference

Settings

{
  "settings": {
    "basePixel": 16,
    "breakpoints": {
      "sm": "640px",
      "md": "768px",
      "lg": "1024px",
      "xl": "1280px"
    }
  }
}

Tokens

{
  "tokens": {
    "color": { "primary": "#000", "accent": "#f00" },
    "spacing": { "1": "4px", "2": "8px" },
    "fontSize": { "sm": "14px", "base": "16px" },
    "radius": { "sm": "2px", "full": "9999px" },
    "shadow": { "md": "0 4px 6px rgba(0,0,0,0.1)" },
    "lineHeight": { "tight": "1.25", "normal": "1.5" },
    "zIndex": { "10": "10", "50": "50" }
  }
}

Utilities

{
  "utilities": [
    {
      "prefix": "p",
      "property": "padding",
      "fromToken": "spacing",
      "values": ["1", "2", "4"],
      "responsive": true
    },
    {
      "prefix": "d",
      "property": "display",
      "values": ["flex", "grid", "block", "none"],
      "responsive": true
    },
    {
      "prefix": "justify",
      "property": "justify-content",
      "values": ["start", "center", "between"],
      "valueMap": {
        "start": "flex-start",
        "center": "center",
        "between": "space-between"
      }
    }
  ]
}

Generated Classes

With the default config, you get:

| Category | Examples | |----------|----------| | Display | .d-flex, .d-grid, .d-none | | Flexbox | .flex-row, .flex-col, .justify-center, .items-center | | Spacing | .p-4, .m-2, .gap-4, .mx-auto | | Colors | .text-primary, .bg-accent | | Typography | .font-xl, .leading-tight | | Shadows | .shadow-md, .shadow-lg | | Responsive | .sm:d-flex, .md:w-1/2, .lg:gap-8 |

Using with the Base Framework

For compositions (stack, cluster, flow) and reset styles, also import:

@import url('node_modules/piloti/src/main.css');
@import url('./piloti-output/index.css'); /* Your custom tokens */

License

MIT