qmetrics.net

SVGO

Node.js SVG optimizer library and command-line tool

SVGO screenshot

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.

Overview

SVGO (SVG Optimizer) is a Node.js library and command-line program aimed at reducing SVG file size. Exported vector graphics often carry extra editor metadata, comments, hidden layers, default values, and similar clutter that can be removed or simplified without changing how the image draws.

The tool is built around a plugin system. Defaults ship as a preset you can tune or disable per plugin, and you can add custom plugins. Settings load from svgo.config.mjs or a path passed on the command line; some options are available as CLI flags as well.

You can optimize single files or walk folders recursively from the terminal, or call the optimize function and related helpers from JavaScript. Documentation covers plugins, presets, and API usage; the project site also mentions a playground.

SVGO is wired into several build and documentation stacks. The site lists integrations with tools such as Docusaurus, PostCSS, and webpack so optimized SVGs can flow into existing front-end pipelines.

Key features

  • Plugin-based optimization pipeline
  • Default preset with per-plugin control
  • svgo.config.mjs configuration file
  • Recursive directory processing via CLI
  • JavaScript optimize API
  • loadConfig helper for tooling
  • npx and global npm installation
  • Documented plugin and preset reference

Use cases

  • Shrinking SVG assets for faster pages
  • Batch-cleaning icon and illustration folders
  • Embedding optimization in Node build scripts
  • Tweaking SVG output from design tools
  • Serving leaner vector graphics in static sites

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

PostCSS

JavaScript toolkit for transforming CSS via plugins

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

★ 29k⟳ yesterdayMIT

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