Astro integration for SVG icons: local files, Iconify collections. Icons are optimized at build time, repeated uses can share a sprite, and the package ships no extra runtime to the browser.
Install in an Astro project
pnpm add astro-iconsetFull setup, configuration, and API details are in the package README.
A pnpm workspace with the published npm package, a manual test app, and documentation site sources.
| Path | Role |
|---|---|
packages/astro-iconset |
npm package astro-iconset |
playground/ |
Astro app used to exercise the integration (playground README) |
site/ |
Starlight docs site (private package in this repo) |
Repository: github.com/sudeep2003/astro-iconset · Issues: github.com/sudeep2003/astro-iconset/issues
Requires pnpm (version pinned in root package.json).
pnpm installpnpm devRuns dev in every workspace package that defines it (integration build watch, playground, site, etc.). To run only the playground or site:
pnpm --filter playground devpnpm --filter site devBuild the package and site together (as in root scripts.build):
pnpm buildnpm run buildThe root script runs filtered builds for astro-iconset and site; it invokes pnpm internally, so pnpm must be available on your PATH.
Formatting:
pnpm formatpnpm lintMIT — see the repository files and packages/astro-iconset/package.json.