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

@a-developer-who-exists/sss-css

v1.0.0

Published

SSS — a simpler CSS language. Write .sss files with center: true instead of flexbox boilerplate.

Readme

SSS — Simple Style Sheets

A simpler way to write CSS. Use .sss files with intuitive properties like center: true instead of flexbox boilerplate.

Install

npm install -g @a-developer-who-exists/sss-css

Or in a project:

npm install @a-developer-who-exists/sss-css

Quick start

1. Create styles.sss:

.page {
  center: true;
  height-range: [100vh, 100vh];
  bg: [#11111b];
  font: [system-ui, sans-serif];
}

.card {
  center: true;
  pad: 16px;
  border-r: [12px];
  bg: [#1e1e2e];
}

2. Link it in HTML:

<script type="module" src="/__sss__/client.js"></script>
<link rel="stylesheet" href="styles.sss" />

3. Start the dev server:

sss serve .

Open the URL it prints (default http://localhost:3000).

No .css file needed — SSS compiles on the fly.

CLI

# Dev server (compiles .sss in the browser and over HTTP)
sss serve .
sss serve examples

# Compile to stdout
sss styles.sss

# Compile to a file (optional)
sss styles.sss output.css

HTML setup

When using sss serve, add this once in your HTML <head>:

<script type="module" src="/__sss__/client.js"></script>
<link rel="stylesheet" href="styles.sss" />

The dev server serves the runtime at /__sss__/client.js automatically.

If you installed locally with npm, you can also use:

<script type="module" src="./node_modules/@a-developer-who-exists/sss-css/src/client.js"></script>
<link rel="stylesheet" href="styles.sss" />

SSS syntax

| SSS | Compiles to | |-----|-------------| | center: true | flex center (both axes) | | center: horizontal | center on X axis | | center: vertical | center on Y axis | | stack: true | flex column | | row: true | flex row | | spread: true | space-between | | fill: true | width/height 100% | | height-range: [10vh, 20vh] | min-height + max-height | | font: [system-ui, sans-serif] | font-family | | bg: [#11111b] | background | | border-r: [12px] | border-radius | | border: [1px solid #333] | border | | pad: 12px | padding (all sides) | | pad-L: 8px | padding-left | | pad-R: 8px | padding-right | | pad-U: 8px | padding-top | | pad-D: 8px | padding-bottom | | pad-L-R: 12px | padding left + right | | pad-L-R-U: 12px | padding left + right + top |

Standard CSS properties (width, color, gap, etc.) pass through unchanged.

Programmatic use

import { compile } from "@a-developer-who-exists/sss-css";

const css = compile(`
  .box {
    center: true;
    pad: 16px;
  }
`);

Publish to npm

  1. Update author and repository in package.json
  2. Create a GitHub repo and push the code
  3. Log in: npm login
  4. Publish: npm publish

License

MIT