You need Node.js 20 or newer and pnpm.
git clone https://github.com/glincker/thesvg.git
cd thesvg
pnpm install
pnpm dev # http://localhost:3333| Command | What it does |
|---|---|
pnpm dev |
Starts the site with hot reload on port 3333 |
pnpm build |
Regenerates the API, llms.txt, feed and icon tones, then builds the static site |
pnpm lint |
Runs ESLint |
pnpm test |
Runs the Vitest suite plus the CLI and icons package tests |
npx tsx scripts/validate-icons.ts |
Audits every SVG for scripts, bad values, non-mono mono files and missing viewBox |
Add an icon: put the files in public/icons/{slug}/ (default.svg, plus mono, light, dark or wordmark as they apply), register the slug in src/data/icons.json, run the validator, then open a pull request. Full rules are in CONTRIBUTING.md.
UI icons have their own flow: edit a set file in src/data/ui/sets, run pnpm ui:build, and test with pnpm test:ui. Brand work stays in pnpm test:brand. See CONTRIBUTING.md for the full guide.
Back to the README.