Website product routes and integrations
The website product routes turn the icon catalog into a set of focused user journeys. Comparison helps users choose a library, documentation explains how to use the assets, extension pages show where the catalog can run, and integration pages prepare icons for diagram tools. These routes sit inside the shared application frame described in Website shell and responsive experience, with desktop and phone behavior supplied by Desktop site shell and Mobile web experience.
Route family map
The routes serve different user goals but use one public site frame. The route page owns its content and local navigation, while the root layout keeps the header, mobile controls, main area, footer, theme, and shared feedback surfaces consistent.
Product route purposes
The main route families map a user need to a focused page experience:
| Route family | User goal | Route-level experience |
|---|---|---|
/compare | Choose an icon library | Feature comparison, fit guidance, and common questions |
/docs and /docs/[slug] | Learn how to use the catalog | Guide index, framework examples, recipes, and reference content |
/extensions | Find a tool or package | Grouped directory with availability and destination links |
/integrations/drawio, /integrations/excalidraw, and /integrations/mermaid | Use icons in diagrams | Downloadable libraries or setup guidance for diagram tools |
/legal and /privacy | Understand use and data rules | Legal, license, trademark, removal, and extension privacy information |
| Error and not-found routes | Recover from a failed or missing page | Retry, home, browse, and collection actions |
References: src/…/page.tsx• L236-254 src/…/page.tsx• L44-60 src/…/page.tsx• L383-389 src/…/page.tsx• L67-74 src/…/page.tsx• L63-69 src/…/page.tsx• L75-81 src/…/page.tsx• L44-50 src/…/page.tsx• L44-50 src/…/error.tsx• L9-22 src/…/not-found.tsx• L5-8
Shared route composition
The root layout places route content inside the same application journey. It renders the desktop header or mobile shell, gives the route a main region, and adds the footer after the route content. A route that uses SidebarShell adds the catalog browse rail and aligns its content with the desktop rail; the phone shell remains supplied by the root layout.
flowchart TD
A[Route request] --> B[Root application layout]
B --> C[Theme and shared controls]
C --> D[Desktop header or mobile shell]
B --> E[Route content]
E --> F[SidebarShell routes]
E --> G[Docs route frame]
E --> H[Recovery and policy routes]
B --> I[Footer]
This split keeps route pages focused on their product task. The comparison, extension, integration, legal, and privacy pages use the catalog sidebar directly, while documentation adds a second navigation layer for its own guide set.
References: src/…/layout.tsx• L162-200 src/…/sidebar-shell.tsx• L17-24 src/…/sidebar-shell.tsx• L83-124 src/…/layout.tsx• L5-14
Comparison route
Library choice
The /compare page supports a selection decision rather than icon search. It compares theSVG with other icon libraries across coverage, developer tools, ecosystem support, and governance, then explains which type of project fits each choice. It uses live catalog counts in its page summary and wraps the route in the shared sidebar shell.
The page also exposes the comparison as a discoverable information page. Its metadata describes the comparison, its questions are emitted as FAQ structured data, and its calls to action return users to the catalog or the extension directory.
References: src/…/page.tsx• L25-57 src/…/page.tsx• L91-135 src/…/page.tsx• L149-207 src/…/page.tsx• L221-247 src/…/page.tsx• L250-254 src/…/page.tsx• L434-486
Documentation routes
Documentation index
The /docs page is the starting point for using the catalog in a project. It groups framework and tool guides with practical guides such as recipes, best practices, migration notes, and frequently asked questions. The page turns the central documentation registry into cards so the visible list and its structured item list use the same route set.
The docs area keeps its own navigation beside the shared catalog shell on large screens. This gives readers a stable guide list while the root shell still provides site-wide search, theme, responsive controls, and footer behavior.
References: src/…/layout.tsx• L1-14 src/…/page.tsx• L36-42 src/…/page.tsx• L44-60 src/…/page.tsx• L76-121 src/…/docs-nav.ts• L18-55 src/…/docs-sidebar.tsx• L9-53
Documentation guide pages
Guide routes under /docs/[slug] present one selected guide from the shared guide set. A guide can expose package and source links, anchored code sections, related questions, and a page-level table of contents. An unknown guide slug becomes a not-found response instead of an empty guide.
The route registry is the contract between navigation and guide content. Framework links use the same identifiers that generate static guide routes, while the shared list page keeps the title, introduction, sections, feedback footer, and table of contents in one reading pattern.
References: src/…/page.tsx• L13-31 src/…/page.tsx• L49-57 src/…/page.tsx• L58-113 src/…/docs-list-page.tsx• L6-43 src/…/docs-nav.ts• L23-55
Extension and integration discovery
Extension directory
The /extensions page is the catalog's adoption map. It groups available, planned, and community-built paths across packages, editors, design tools, developer tools, AI tools, creative integrations, framework components, and native platforms. Each card explains the user task and sends the user to a package, marketplace, repository, or local integration page.
The status label separates a published tool from a planned or community path. The directory also gives builders a public entry point for creating new integrations through the catalog's open asset and CDN surfaces.
References: src/…/page.tsx• L23-49 src/…/page.tsx• L51-107 src/…/page.tsx• L109-187 src/…/page.tsx• L190-381 src/…/page.tsx• L383-479 src/…/cards.tsx• L5-29 src/…/cards.tsx• L47-77 src/…/cards.tsx• L80-132
Extension route links
The directory connects internal and external destinations through one card model. Internal links use application navigation for routes such as the drawing integrations, while external links open the relevant package, marketplace, or source site and receive the page's tracking context.
This makes /extensions a discovery page rather than the runtime home for each integration. The linked product owns its own setup or use flow, and the directory records whether that path is ready for use.
References: src/…/cards.tsx• L47-77 src/…/page.tsx• L171-185 src/…/page.tsx• L238-275 src/…/page.tsx• L278-315
Drawing integrations
draw.io and Excalidraw libraries
The draw.io and Excalidraw routes turn catalog categories into files that users can load into diagram editors. Each page explains the import path, lists category libraries with counts, and gives a direct download for each group. This lets architecture and product diagrams use brand and developer-tool marks without making the user assemble the shapes by hand.
The two tools share the same product idea but keep their file and category contracts separate. Both exclude architecture collections from these brand-focused lists; draw.io already supplies cloud collections, while Excalidraw avoids mixing those collections into its category groups. The category definitions, displayed counts, and generated download files must describe the same library set.
flowchart LR
A[Icon catalog categories] --> B[Tool library groups]
B --> C[Count shown on route]
B --> D[Downloadable tool file]
D --> E[User imports library]
E --> F[Icons available on diagram canvas]
References: src/…/page.tsx• L30-36 src/…/page.tsx• L67-139 src/…/drawio-libraries.ts• L7-13 src/…/drawio-libraries.ts• L21-47 src/…/page.tsx• L32-37 src/…/page.tsx• L63-119 src/…/excalidraw-libraries.ts• L10-24 src/…/excalidraw-libraries.ts• L32-55
Mermaid icon packs
The /integrations/mermaid page supports a code-first diagram flow. It explains that Mermaid can load Iconify packs, presents monochrome and full-color theSVG packs, and gives examples for registering the packs and naming icons in an architecture diagram. The icon name is the same slug used by the website catalog, so catalog search remains the way to find a usable name.
Unlike the downloadable library pages, Mermaid does not ask the user to import a local file. The user installs or loads a pack, registers it with Mermaid, and refers to an icon by pack prefix and catalog slug.
References: src/…/page.tsx• L29-65 src/…/page.tsx• L75-134
Legal and recovery routes
Legal and privacy information
The /legal page defines how users may understand the catalog's licenses, trademarks, per-icon license labels, removal requests, and DMCA process. The /privacy page documents the browser extension boundary, including local preferences, public CDN requests, clipboard use, and the absence of remote tracking. Both pages use the shared sidebar shell so policy content remains part of the same site journey.
These pages protect the link between the public catalog and the tools that consume it. Legal guidance explains the rights around brand marks, while privacy guidance explains what the browser extension does and does not send outside the device.
References: src/…/page.tsx• L9-16 src/…/page.tsx• L44-61 src/…/page.tsx• L63-185 src/…/page.tsx• L187-268 src/…/page.tsx• L9-16 src/…/page.tsx• L44-63 src/…/page.tsx• L65-204 src/…/page.tsx• L207-233
Error recovery
The global error route gives a failed page a safe recovery path. It records the error for product monitoring, tells the user that the page failed, and offers a retry action or a link back to the home page. It does not replace the shared root shell; it supplies the failed route's content when the route cannot complete normally.
References: src/…/error.tsx• L1-19 src/…/error.tsx• L21-41 src/…/layout.tsx• L178-194
Missing route recovery
The not-found route handles missing icons and other unknown paths with a browse-first response. It points users to the full catalog and to major cloud collections, while explaining that an icon may have moved, changed name, or not exist yet. This keeps a missing route connected to useful catalog paths instead of ending the journey at a bare 404.
References: src/…/not-found.tsx• L5-8 src/…/not-found.tsx• L48-74 src/…/not-found.tsx• L76-84
Change checklist
When these files or sections are changed, remember to consider these:
- When adding or renaming a product route, update the shared navigation destination, the extensions directory link, route metadata, and any public route discovery entry that should expose it.
- When changing the docs guide registry, keep the sidebar links, static guide identifiers, guide lookup, item-list data, and not-found behavior aligned.
- When changing an integration library group, keep its label, matching rule, displayed count, generated file name, and download URL in the same release.
- When changing a local or external extension target, preserve the link type so internal navigation stays in the app and external destinations keep their safe new-tab behavior.
- When changing policy or recovery content, keep its links, metadata, shared shell use, and user recovery actions consistent with the route's purpose.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A docs navigation item does not match a guide identifier | A visible guide link opens the not-found route | Keep DOCS_NAV route segments and guide IDs aligned |
| A drawing library definition, count, or generated file drifts | The page shows a wrong count or downloads a missing or wrong library | Ship the category definition, count data, and generated file together |
| A local integration link is treated as an external link | The route may open in the wrong context or receive the wrong link behavior | Keep internal paths and external URLs distinct in the card link model |
| A route omits its required shell wrapper | The page loses catalog navigation or content alignment | Use the root layout for global controls and SidebarShell for catalog-side routes |
| A failed route loses the retry or home action | Users can get stuck after a render error | Keep error recovery actions tied to the route boundary |
| Legal or privacy links point to stale policy material | Users can make decisions from incorrect rights or data guidance | Update route copy, linked policy files, and metadata as one contract |
Key files
| File | Why to read it |
|---|---|
| src/…/layout.tsx | Shows how every product route receives the root shell, main region, footer, theme, and mobile experience. |
| src/…/sidebar-shell.tsx | Shows how catalog routes add the desktop browse rail and keep content aligned. |
| src/…/page.tsx | Defines the library-choice comparison and its public information contract. |
| src/…/layout.tsx | Defines the documentation-specific frame inside the shared site shell. |
| src/…/page.tsx | Defines the documentation entry page and guide discovery groups. |
| src/…/page.tsx | Defines the selected guide flow and unknown-guide behavior. |
| src/…/docs-nav.ts | Defines the documentation navigation contract used by the docs sidebar and public route list. |
| src/…/page.tsx | Defines the product and integration discovery directory. |
| src/…/cards.tsx | Defines availability labels and internal versus external integration links. |
| src/…/page.tsx | Defines the draw.io download and import journey. |
| src/…/page.tsx | Defines the Excalidraw download and import journey. |
| src/…/page.tsx | Defines the Mermaid pack registration and diagram usage journey. |
| src/…/drawio-libraries.ts | Defines draw.io category groups and matching rules. |
| src/…/excalidraw-libraries.ts | Defines Excalidraw category groups and matching rules. |
| src/…/page.tsx | Defines license, trademark, removal, and DMCA guidance. |
| src/…/page.tsx | Defines the browser extension privacy boundary. |
| src/…/error.tsx | Defines retry and home recovery for unexpected route errors. |
| src/…/not-found.tsx | Defines browse-oriented recovery for missing routes and icons. |