qmetrics.net

PostCSS

JavaScript toolkit for transforming CSS via plugins

PostCSS screenshot

Parses CSS into an AST and runs JavaScript plugins to lint, prefix, nest rules, inline assets, and apply other style transforms in build pipelines.

Overview

PostCSS takes a stylesheet, parses it into an abstract syntax tree, and lets plugins analyze or rewrite rules through a shared API. Hundreds of community plugins handle vendor prefixes, future syntax, modules, linting, minification, and more.

Popular ecosystem pieces mentioned in the project include Autoprefixer and Stylelint. Plugins can target plain CSS or alternate syntaxes via additional parsers for SCSS, Less, SugarSS, HTML, Markdown, and CSS-in-JS sources.

It integrates with webpack, Parcel, Gulp, npm scripts through postcss-cli, and can run in the browser via bundlers. A JavaScript API is available for custom runners that follow the project’s runner guidelines.

Editor support exists for VS Code, Sublime Text, Vim, and WebStorm, and the core is used by large web properties in production build chains.

Key features

  • Plugin-based CSS AST transforms
  • Large third-party plugin ecosystem
  • Autoprefixer and Stylelint integration
  • Multiple syntax parsers
  • Source map support
  • Webpack and Parcel loaders
  • postcss-cli for npm scripts
  • JavaScript runner API

Use cases

  • Build-time CSS autoprefixing
  • Stylesheet linting in CI
  • Future CSS syntax polyfilling
  • Scoped CSS modules in components

Tags

Similar software

Dive

Terminal explorer for Docker image layers

Dive inspects container images layer by layer to show what changed and where space is wasted. It helps shrink Docker or OCI images during development and CI.

★ 54.8k⟳ 11 days agoMIT

Nx

Monorepo build system with caching and CI integration

Nx manages TypeScript and polyglot monorepos with task graph awareness, local and remote caching, and CI helpers. It can be added to existing npm, pnpm, or yarn workspaces.

★ 29.5k⟳ todayMIT

Emscripten

LLVM toolchain compiling C and C++ to WebAssembly

Emscripten turns C and C++ into WebAssembly via LLVM and Binaryen. Output runs in browsers, Node.js, and other WebAssembly runtimes.

★ 27.8k⟳ 2 days agoMIT · open core

Oxc

Rust-based JavaScript and TypeScript compiler toolkit

Oxc bundles a parser, linter, formatter, transformer, resolver, and minifier for JavaScript and TypeScript. Oxlint and Oxfmt run via npx for everyday lint and format tasks.

★ 23.6k⟳ todayMIT

Slim

Container inspection, minification and security profiling CLI

SlimToolkit is a command-line toolkit for inspecting, shrinking and hardening container images without rewriting your Dockerfile. It analyzes what your application actually needs and strips unused layers and files.

★ 23.6k⟳ 2 months agoApache-2.0

SVGO

Node.js SVG optimizer library and command-line tool

SVGO shrinks SVG files by stripping editor metadata, comments, hidden elements, and other data that does not affect rendering. It runs as an npm package API or a CLI.

★ 22.8k⟳ 20 days agoMIT