Knowledge Base updated: 2026-11-22
Knowledge Base
Orientation
TheSVG is a monorepo for an icon and flag catalog, its website experiences, generated framework packages, and developer integrations.
Core catalog state lives in the icon and flag packages and their generated metadata. The web application consumes that state for discovery, SVG utilities, editorial content, and responsive product experiences.
Distribution spans framework bindings, CLI/MCP tools, a hosted MCP worker, editor and browser extensions, and release automation.
System architecture
flowchart TD
Icons[Icon catalog data] --> Pipeline[Generation and validation]
Families[Icon family metadata] --> Pipeline
Flags[Flag dataset] --> FlagPkg[Flag package]
Pipeline --> IconPkg[Icon package]
Pipeline --> Frameworks[Framework packages]
IconPkg --> Web[Next.js website]
FlagPkg --> Web
Web --> Discovery[Icon and flag discovery]
Web --> SvgTools[SVG tools and submissions]
Web --> Content[Blog collections and campaigns]
Web --> UISystem[UI icons system]
IconPkg --> DevTools[CLI and MCP tools]
DevTools --> Worker[Hosted MCP worker]
Worker --> Widget[Interactive widget]
Frameworks --> Releases[Release and deployment automation]
DevTools --> Releases
Glossary
- Icon family — metadata that groups related brand marks and links them to individual icon records.
- TheSVG package — the package and export surface for consuming icon assets outside the website.
- MCP worker — the hosted Model Context Protocol service that exposes icon discovery to AI-assisted clients.
- UI icons — the separate styled interface-glyph catalog, web experience, and package ecosystem.
- Flag catalog — country and regional flag data plus generated search, localization, color, and ranking helpers.
Codebase-wide invariants
- Generated catalog consumers must remain aligned with their package build inputs; package manifests under packages/…/package.json define their distribution boundaries.
- Icon-family metadata must preserve its relationship to individual catalog icons; see
packages/icons/**. - Website product routes use the shared shell rather than independently recreating navigation and theme behavior; see
apps/web/**. - Package releases are coordinated through repository automation and package metadata rather than ad-hoc published artifacts; see
.github/workflows/**and packages/…/package.json.
Routing table
packages/icons/**-> Icon catalog and data pipelineapps/web/app/**/icon*/**,apps/web/components/**/icon*/**-> Web icon discovery and detail experience- packages/…/package.json,
packages/{react,react-native,vue,svelte,preact,solid,astro,static,thesvg}/**-> Icon package builds and framework exports packages/icons/**/famil*,apps/web/**/famil*-> Icon families and brand groupingapps/web/**/svg*/**,apps/web/**/submit*/**-> SVG tools and creator workflowsapps/web/**/viewer*/**,apps/web/**/convert*/**,apps/web/**/import*/**-> SVG viewer and conversionapps/web/**/submit*/**,.github/**/svg*-> Icon submission and validationapps/web/app/layout.*,apps/web/components/**/{header,footer,sidebar}*-> Website shell and responsive experienceapps/web/components/**/{header,footer,sidebar}*,apps/web/**/theme*-> Desktop site shellapps/web/**/mobile*/**,apps/web/**/{dock,sheet,install}*-> Mobile web experienceapps/web/app/**/{compare,docs,extensions,legal,error}*/**-> Website product routes and integrationsapps/web/**/{blog,collection,category,campaign}*/**,content/**-> Content collections and discovery pagesapps/web/**/blog*/**,content/**/blog*/**,apps/web/**/{feed,rss}*-> Blog and feed publishingapps/web/**/{categories,collections,google-2026}*/**,content/**/{categories,collections}*/**-> Categories, collections, and campaignspackages/{cli,mcp}/**,apps/**/mcp*/**-> Developer tools and editor integrationspackages/{cli,mcp}/**-> CLI and MCP toolspackages/{vscode,neovim,raycast,alfred,browser,figma}/**-> Editor, launcher, and browser extensions.github/workflows/**,.changeset/**,scripts/**/release*-> Release and repository automation.github/workflows/**/{icon,svg,triage}*,.github/**/{labeler,auto-merge}*-> Icon contribution automation.changeset/**,.github/workflows/**/{release,deploy,publish}*,homebrew/**-> Package release and deployment automationpackages/mcp-worker/**-> MCP worker service and interactive widgetpackages/ui-icons/**,apps/**/ui-icons/**-> UI icons and design systemapps/**/ui-icons/**-> UI icon web experience- packages/…/package.json,
packages/ui-icons/**/{build,src}/**-> UI icon package builds packages/flags/**-> Flag catalog and packageapps/web/**/flag*/**-> Flag browser experience