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

@tishlang/tish-tailwind

v1.0.0

Published

Tailwind-style utility CSS in pure Tish. Zero JS dependencies. Drop-in for the npm tailwindcss CLI.

Readme

tish-tailwind

Tailwind-style utility CSS for Tish projects, written entirely in Tish. Zero JS dependencies — no tailwindcss CLI, no PostCSS, no Autoprefixer.

Used by tish-audio, tish-learn, and any other Tish project that wants Tailwind ergonomics without npm bloat.

What you get

  • A curated utility table in src/utilities.tish (~300 utility classes covering layout, flex/grid, sizing, spacing, typography, color, transitions, transforms — the most common ~80% of Tailwind).
  • A preflight stylesheet in src/preflight.css for sane cross-browser defaults.
  • A scanner + emitter in src/emit.tish: reads your source files, finds which utility class names are referenced, emits a single CSS file containing only those.
  • A tw() class-merge helper for composing classes in JSX.

Usage

1. Install

{
  "dependencies": {
    "@tishlang/tish-tailwind": "latest"
  }
}

2. Compose classes in JSX

import { tw } from "tish-tailwind"

fn Button(props) {
  return <button class={tw([
    "px-3 py-2 rounded-lg",
    "bg-primary text-white",
    props.disabled ? "opacity-50 cursor-not-allowed" : "hover:brightness-110"
  ])}>
    {props.children}
  </button>
}

3. Emit the stylesheet at build time

Create a build-css.tish script:

import { emitStylesheet } from "tish-tailwind"

await emitStylesheet({
  sourceFiles: [
    "app/main.tish",
    "app/Header.tish",
    "app/Sidebar.tish",
    "content/page.tishdoc.md"
  ],
  outputPath: "public/learn.css"
})

Run it: tish run --feature fs build-css.tish

4. Wire it into your dev loop

# justfile
build-css:
    tish run --feature fs build-css.tish

dev: build-css
    tish run --feature fs,http,process dev-server.tish

Why not the official Tailwind CLI?

Two reasons:

  1. No JS dependencies. A pure-Tish Tailwind keeps package.json honest — only Tish-source packages.
  2. Same Tish toolchain everywhere. tish run is already required to build the app; adding the npm Tailwind CLI doubles the toolchain surface.

The tradeoff: this package ships a curated subset of Tailwind. If you need a class that's not in src/utilities.tish, add a row to the table and send a PR. The format is dead simple:

{ cls: "rotate-180", css: `.rotate-180 { transform: rotate(180deg); }` },

Inspiration

Originally written for tish-audio; extracted into a shared package so other Tish projects can drop the npm tailwindcss dependency.

License

PIF