svgworm docs

  • Next.js App Router setup

    Set up svgworm in a Next.js App Router app. Build a hashed sprite from your SVG folder and render type-checked icons in Server Components with zero client JavaScript.

  • Astro setup

    Set up svgworm in an Astro 7 site. A generated Icon.astro renders type-checked icons from a hashed sprite, with no React and no client JavaScript.

  • CLI reference

    Every svgworm command, flag and exit code. Build sprites, check that committed output is current in CI, watch for changes, and set a project up, with stable plain and --json output.

  • Config

    The svgworm.config.json keys, their defaults, and the JSON Schema for editor and agent validation. Includes per-icon color overrides.

  • svgworm compared with other SVG icon tools

    An honest comparison of svgworm with SVGR, @neodx/svg, vite-plugin-icons-spritesheet and unplugin-icons, with reproducible numbers from the spikes and when to pick each tool.