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

par-o-css

v0.1.0

Published

par-o-css compiler (WebAssembly), Vite plugin and browser runtime: CSS, ma comme si deve 🤌

Readme

par-o-css

Il compilatore di par-o-css (CSS in napoletano, con le classi pronte alla Tailwind) in WebAssembly, con un plugin Vite e un runtime per il browser.

npm i -D par-o-css

Da Node

import { compile, findClasses, formatError } from 'par-o-css';

const { css, dependencies, errors } = compile('@chiamm "par-o-css"\ncitofono:passanno { culore: russo }', {
  filename: 'stile.cess',
  classes: findClasses('.'),
});

compile non lancia mai eccezioni: gli errori stanno in errors, con message, file, line, column e suggestion, in napoletano. Le opzioni sono filename, classes (le parole delle pagine che possono essere classi: findClasses(cartella) le cerca nei file .emmurt, .fratm, .html, .js… di una cartella), root (la cartella per i percorsi che cominciano con /) e read (per leggere i file in un altro modo).

C'è anche format(sorgente) (il .cess in ordine, come parocss fmt, o null se ha un errore di sintassi), vocabulary() (le parole napoletane del CSS), scan(testo) (le parole che possono essere classi), suggestion('p-4') ('spazio-4'), isClass(nome), classCss(classi) (il CSS di alcune classi col tema di partenza) e names() (tutte le classi, radici e varianti).

Con Vite

// vite.config.js
import parocss from 'par-o-css/vite';

export default { plugins: [parocss()] };

Un .cess si importa da un modulo (import './stile.cess', in FratmScript chiamm "./stile.cess") o si collega da una pagina (<link rel="stylesheet" href="stile.cess">, in htmlemmurt <attacca rapporto="stile" addo="stile.cess">). Il plugin lo compila con le classi che trova nei file del progetto, e lo ricompila quando una pagina usa una classe nuova. Va insieme a htmlemmurt/vite e fratmscript/vite.

Nel browser, senza build

<script type="module" src="https://cdn.jsdelivr.net/npm/[email protected]/browser.js"></script>
<link rel="stylesheet" type="text/cess" href="stile.cess">

Ogni <link type="text/cess"> e <style type="text/cess"> diventa uno <style> con il CSS compilato e le classi della pagina. Senza nessun .cess, la pagina ha comunque tema, pulizia e classi, come se ci fosse @chiamm "par-o-css". Quando il codice aggiunge una classe che la pagina non aveva, il CSS si ricompila. Gli errori compaiono nella pagina e nella console. Serve un server (anche python3 -m http.server), perché il browser deve scaricare i file.

par-o-css/web è il compilatore per il browser senza il runtime: await init(), poi le stesse funzioni di Node.