Editor, launcher, and browser extensions
The editor, launcher, browser, and Figma integrations put theSVG icon search and reuse flow inside the tools where a developer or designer works. Each integration has its own platform entry point, user action model, and release boundary, but all of them turn the shared icon catalog into a search result, an SVG asset, or a reusable URL.
The parent page Developer tools and editor integrations explains how these adapters fit with the CLI and MCP tools. CLI and MCP tools covers the command-line and AI-client paths, while MCP worker service and widget covers the service and widget path that sits beside these platform adapters. Package release and deployment automation covers the release workflows that publish some of these adapters.
Integration model
The integrations share the same catalog ideas: an icon has a slug, title, aliases, categories, variants, and one or more SVG files. The platform adapter owns the local search and action surface. The hosted site or jsDelivr then supplies the catalog or SVG content according to that adapter’s network boundary.
This diagram shows how a platform entry point moves from discovery to a platform-specific result.
flowchart LR
User[Developer or designer] --> Entry[Platform entry point]
Entry --> Search[Search catalog]
Search --> Choice[Choose icon and variant]
Choice --> Copy[Copy SVG or URL]
Choice --> Insert[Insert into editor or design]
Catalog[Hosted catalog or CDN mirror] --> Search
Assets[SVG asset source] --> Copy
Assets --> Insert
| Integration | Platform entry point | Main result | Distribution boundary |
|---|---|---|---|
| VS Code | Command Palette commands | Clipboard content or text inserted at the cursor | VS Code extension package and Marketplace or Open VSX publishing path |
| Neovim | :TheSVG, :TheSVGInsert, and :TheSVGPath | CDN URL or inline SVG at the cursor | Lua plugin files installed by a Neovim plugin manager |
| Raycast | Raycast commands | Clipboard content, URL, or browser page | Raycast extension package and store publishing path |
| Alfred | tsvg workflow keyword | Clipboard SVG, CDN URL, or Markdown | macOS .alfredworkflow archive |
| Browser | Toolbar popup and selected-text context menu | Clipboard SVG, URL, or Markdown | Browser-specific extension bundles for Chrome, Firefox, and Edge |
| Figma | Figma plugin command | Editable vector node on the current page | Figma plugin manifest and Figma publishing boundary |
Catalog and asset boundaries
The catalog is a discovery source, while an SVG asset is the content used after selection. This split lets a tool keep search data local or cached without bundling every SVG into the platform package.
The integrations use these source patterns:
- The VS Code and Raycast integrations read the website registry API for discovery. They can fetch SVG content from the website and can also create a jsDelivr URL.
- Neovim and Alfred use the jsDelivr mirror as their main catalog and asset source. Neovim keeps the website registry as a fallback.
- The browser extension uses the jsDelivr mirror for its catalog and assets. Its extension network permission stays limited to that CDN, while its selected-text action can open a search page in the browser.
- Figma uses only jsDelivr from its sandbox boundary. Its UI does not fetch the network directly.
A catalog change can affect every adapter because slugs, variant names, and asset paths cross this boundary. A platform release can also lag behind the catalog when it caches or bundles catalog data.
References: extensions/…/README.md• L5-22 extensions/…/README.md• L79-101 extensions/…/README.md• L5-20 extensions/…/thesvg_search.py• L20-28 extensions/…/wxt.config.ts• L7-15 extensions/…/STORE_LISTING.md• L95-109 extensions/…/README.md• L15-17
Editor integrations
The editor integrations reduce the distance between finding an icon and using it in source code. VS Code offers several copy and insert actions from a command surface. Neovim offers commands that insert either a stable CDN reference or the raw SVG body.
VS Code extension
The VS Code extension provides a command-driven icon picker inside the editor. A user can search the broad icon catalog from the Command Palette, select a variant, and then copy a representation or insert SVG text at the active cursor.
The main command opens the full search and action flow. Dedicated commands start the same search with a fixed final action:
thesvg.searchopens search and then offers copy, JSX, CDN, insert, CLI, and web actions.thesvg.copySvg,thesvg.copyJsx, andthesvg.copyCdncopy the selected result in a developer-ready form.thesvg.insertSvgwrites the selected SVG into the active editor. It warns when no editor is active.
The extension keeps the registry in memory for the current activation. It fetches SVG content only for actions that need the body. URL actions do not need an SVG download, so they remain useful when a consumer only needs a stable asset reference.
The package targets VS Code 1.85 or newer. Its build creates one Node-oriented extension bundle. The release workflow publishes only when the extension version changes, or when a maintainer starts the workflow manually.
References: extensions/…/README.md• L5-32 extensions/…/package.json• L17-67 extensions/…/extension.ts• L50-76 extensions/…/extension.ts• L130-185 extensions/…/extension.ts• L188-261 .github/…/vscode-release.yml• L3-18 .github/…/vscode-release.yml• L22-70
Neovim plugin
The Neovim plugin makes the catalog available from normal-mode commands. It uses Telescope when that optional picker is installed and falls back to vim.ui.select when it is not. Selection then inserts a CDN URL by default or fetches and inserts inline SVG when the user chooses that mode.
The user-facing commands map to clear insertion choices:
:TheSVGuses the configured insertion mode.:TheSVGInsertforces inline SVG content.:TheSVGPathforces a CDN URL.:Telescope thesvgopens the picker directly when Telescope is available.
The plugin caches its registry in Neovim’s cache area for the configured time. It tries jsDelivr first and the website registry second. If both fail, it shows a small built-in list so the picker still opens. The plugin therefore has a stronger offline discovery path than integrations that depend on a live registry.
The plugin is distributed as Lua source for installation through a Neovim plugin manager. Its documented monorepo path is the current install boundary; a separate dedicated plugin repository is noted as future work.
References: extensions/…/README.md• L3-14 extensions/…/README.md• L53-101 extensions/…/thesvg.lua• L9-22 extensions/…/init.lua• L20-51 extensions/…/cache.lua• L103-145 extensions/…/picker.lua• L76-101
Launcher integrations
Launcher integrations make icon reuse available without opening a browser or editor panel. Raycast provides a richer searchable view on macOS. Alfred provides a fast keyword workflow with modifier keys for alternate clipboard results.
Raycast extension
The Raycast extension supports both interactive browsing and a direct quick-copy command. The interactive command searches the catalog, filters by category, previews details, and exposes actions for SVG content, direct URLs, jsDelivr URLs, JSX, HTML image tags, data URIs, brand color, and the icon page. The quick-copy command takes a query and copies the best matching variant.
Raycast preferences select the default variant for copy actions. When that variant is not available, the extension uses the icon’s default variant. This keeps the preference useful across icons with different variant sets without changing the catalog contract.
The package declares two Raycast commands and uses Raycast’s own build and lint tools. Its manifest includes a publish command, while the pre-publish hook blocks the generic package publish path. Distribution therefore belongs to the Raycast extension flow rather than the repository’s general package release flow.
References: extensions/…/README.md• L5-45 extensions/…/package.json• L10-69 extensions/…/api.ts• L46-85 extensions/…/api.ts• L94-140 extensions/…/search-icons.tsx• L30-135 extensions/…/search-icons.tsx• L176-220 extensions/…/copy-icon.tsx• L15-52
Alfred workflow
The Alfred workflow uses the tsvg keyword to turn a brand query into a list of matching icons. Enter copies raw SVG, Command-Enter copies the CDN URL, and Option-Enter copies Markdown image syntax. The workflow is designed for Alfred 5 on macOS and requires a Powerpack license.
The workflow has two platform entry points joined by Alfred: a Script Filter returns ranked JSON results, then a Run Script action handles the selected slug, variant, and output mode. The registry is cached for six hours. SVG content is fetched only for the raw SVG action, while URL and Markdown actions can be created from the selected asset path. A stale cache remains usable when a registry refresh fails.
The build boundary is a single thesvg.alfredworkflow archive. The documented download path is a GitHub release, while maintainers can build the archive from the four files listed in the workflow manifest.
References: extensions/…/README.md• L3-25 extensions/…/README.md• L27-41 extensions/…/info.plist• L34-120 extensions/…/thesvg_search.py• L20-68 extensions/…/thesvg_search.py• L82-126 extensions/…/thesvg_action.py• L23-79 extensions/…/build.sh• L1-6
Browser extension
The browser extension places catalog search in the toolbar popup. It targets Chrome, Firefox, and Edge with Manifest V3 bundles. Users can search the cached catalog, select a variant, and copy raw SVG, a CDN URL, or Markdown without leaving the current browser window.
Popup workflow
The popup loads a registry snapshot and uses local fuzzy search for title, slug, and aliases. It shows a short result list and expands a selected result into variant and copy actions. The popup fetches the SVG body only for the SVG action; URL and Markdown actions use the CDN path directly.
The background service worker fills and serves a browser-local registry cache. It refreshes the cache on install and browser startup, and it can fetch a registry when the popup has no cache. The cache is valid for 24 hours. A selected-text context-menu action provides a second browser entry point by opening a search on thesvg.org. The extension does not collect telemetry or read the clipboard.
References: extensions/…/App.tsx• L17-68 extensions/…/App.tsx• L73-168 extensions/…/App.tsx• L194-323 extensions/…/background.ts• L35-69 extensions/…/background.ts• L71-113 extensions/…/wxt.config.ts• L7-15 extensions/…/STORE_LISTING.md• L95-109
Browser distribution
The browser package declares storage, clipboard-write, and context-menu permissions plus access to cdn.jsdelivr.net. WXT builds separate browser targets and creates ZIP archives for Chrome, Firefox, and Edge. The repository documents unpacked loading for local checks and lists store submission as a maintainer task.
Safari is outside the first release boundary. Supporting it would require a separate Mac app wrapper and Apple developer distribution, so Safari behavior must not be inferred from the Chrome, Firefox, or Edge bundles.
References: extensions/…/wxt.config.ts• L1-27 extensions/…/package.json• L6-16 extensions/…/README.md• L18-50 extensions/…/SCREENSHOTS.md• L3-34
Figma integration
The Figma plugin lets a designer search the catalog, filter by category, and insert a selected variant as an editable vector node on the current page. It also keeps the last 12 inserted icon and variant pairs for reuse across plugin sessions and supports keyboard actions for search and insertion.
Figma plugin boundary
The plugin has two runtime sides with different responsibilities. The Figma sandbox owns catalog access, SVG fetches, node creation, viewport placement, and recent-item storage. The UI owns search input, category filtering, result display, variant choice, and messages to the sandbox.
This diagram shows the boundary that keeps network work out of the plugin iframe.
sequenceDiagram
participant Designer
participant UI as Figma plugin UI
participant Sandbox as Figma sandbox
participant CDN as jsDelivr CDN
participant Page as Figma page
Designer->>UI: Search or choose variant
UI->>Sandbox: Search or insert message
Sandbox->>CDN: Load catalog or SVG
CDN-->>Sandbox: Catalog data or SVG text
Sandbox->>Page: Create and select vector node
Sandbox-->>UI: Loading, done, or error status
UI-->>Designer: Show result or recent item
The manifest allows network access only to jsDelivr. The plugin reads the catalog mirror and the variant paths from that same source, then converts the selected SVG into a native Figma node. This keeps the design workflow independent of the thesvg.org website, but it also makes the CDN path and catalog shape a release contract for the plugin.
References: extensions/…/manifest.json• L1-12 extensions/…/README.md• L5-17 extensions/…/main.ts• L1-10 extensions/…/main.ts• L87-121 extensions/…/main.ts• L175-184 extensions/…/main.ts• L209-287 extensions/…/ui.ts• L57-78 extensions/…/ui.ts• L184-245
Figma insertion flow
The normal Figma flow starts with a catalog search and ends with a selected vector node centered in the viewport. A variant choice changes the asset path and the node name. A successful insert updates the recent row, while a fetch or conversion error leaves the document unchanged and reports the failure to the UI.
The plugin is built into a Figma manifest with separate main and UI outputs. Figma Desktop can load the manifest for development. Publishing takes place through Figma’s plugin management flow rather than through npm or the repository’s extension release workflow.
References: extensions/…/README.md• L19-63 extensions/…/STORE_LISTING.md• L48-70 extensions/…/ui.html• L380-416 extensions/…/main.ts• L221-263 extensions/…/ui.ts• L75-116 extensions/…/esbuild.config.mjs• L7-23 extensions/…/esbuild.config.mjs• L34-49
Cross-platform contracts
These adapters are separate products at their platform boundary, but they depend on a small set of shared contracts. A catalog entry must remain searchable by its slug and title. Its variant names must resolve to paths that the selected platform can fetch. The returned SVG must remain valid for the target action, such as text insertion or Figma vector conversion.
The distribution model is intentionally mixed:
- VS Code has an automated version-gated Marketplace release and an Open VSX publish command.
- Neovim and Alfred are source or archive integrations with platform-specific installation paths.
- Raycast and Figma use their own store or desktop publishing systems.
- Browser builds are produced per browser and are not a single cross-browser artifact.
This means a catalog or path change needs both a data review and a platform review. A package can still build successfully while an installed extension points at a missing registry field or asset path.
Change checklist
When these files or sections are changed, remember to consider these:
- Keep icon slugs, variant names, and variant paths aligned between the catalog mirror and every adapter that constructs an asset URL.
- Keep the registry response shape aligned across the website API, jsDelivr mirror, cached browser data, and Figma catalog mapping.
- When a catalog or path schema changes, review cached and bundled consumers separately. They do not all refresh at the same time.
- Preserve each platform’s entrypoint contract: VS Code command IDs, Neovim command names, Raycast command names, Alfred keyword and modifier arguments, browser popup and context-menu behavior, and Figma manifest outputs.
- Keep network declarations aligned with actual asset sources. The browser and Figma integrations must remain within their declared jsDelivr boundaries.
- Treat platform releases as separate distribution events. A successful source build does not publish VS Code, Raycast, Alfred, browser, Neovim, or Figma users automatically.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| The catalog changes slug, variant, or path shape without adapter updates. | Search can show an icon whose copy or insert action points to a missing asset. | Review catalog fields and generated asset paths as one contract. |
| A cached registry is valid by age but no longer matches the live CDN paths. | Browser, Neovim, Alfred, or Figma can show stale choices or fail after selection. | Refresh cache policies and release data together when the schema changes. |
| The jsDelivr CDN is unavailable. | CDN-only integrations cannot load new catalog data or SVG bodies. | Keep Neovim’s website fallback and expose clear retry or error states in interactive clients. |
| A selected icon has no requested variant. | Copy or insertion can fail, or the platform can use an unintended asset. | Resolve the variant against the entry’s available variants before fetching. |
| A platform manifest points to a missing entrypoint or output file. | The host installs the package but cannot start the integration. | Keep manifest commands, build outputs, and package scripts synchronized. |
| A package version changes without its platform release step. | Users keep an older extension even though repository code has changed. | Treat version-gated VS Code release and store-specific Raycast, Figma, browser, and Alfred distribution as separate checks. |
Key files
| File | Why to read it |
|---|---|
| extensions/…/package.json | Defines the VS Code package identity, commands, engine boundary, and publish scripts. |
| extensions/…/README.md | Describes the editor-facing search, copy, insert, and catalog scope. |
| extensions/…/extension.ts | Shows the editor search, variant, copy, insert, and web actions. |
| extensions/…/README.md | Defines the Neovim user commands, configuration choices, installation boundary, and offline behavior. |
extensions/neovim/lua/thesvg/cache.lua | Shows the registry source order, cache boundary, and fallback behavior. |
extensions/neovim/lua/thesvg/picker.lua | Shows how a selection becomes a URL or inline insertion. |
| extensions/…/package.json | Defines Raycast commands, preferences, and store-facing scripts. |
| extensions/…/api.ts | Defines Raycast catalog lookup, SVG detail, URL, and copy-format boundaries. |
| extensions/…/search-icons.tsx | Shows the interactive search, detail, and action experience. |
extensions/alfred/info.plist | Defines the Alfred keyword, filter-to-action connection, and workflow manifest. |
| extensions/…/thesvg_search.py | Shows Alfred registry caching and result construction. |
| extensions/…/thesvg_action.py | Shows the clipboard output modes and CDN asset boundary. |
| extensions/…/wxt.config.ts | Defines browser permissions, popup entrypoint, icons, and host boundary. |
| extensions/…/background.ts | Shows browser registry caching and popup message handling. |
| extensions/…/App.tsx | Shows browser search, variant selection, and copy actions. |
| extensions/…/README.md | Defines the browser targets, local distribution boundary, and store paths. |
| extensions/…/manifest.json | Defines Figma runtime outputs and the allowed network domain. |
| extensions/…/main.ts | Shows the Figma sandbox boundary, catalog access, SVG insertion, and recents. |
| extensions/…/ui.ts | Shows the Figma search surface and messages sent to the sandbox. |
| extensions/…/ui.html | Shows the Figma search, category, recents, and variant interface. |
| .github/…/vscode-release.yml | Shows the version-gated VS Code Marketplace release boundary. |