Skip to main content

Documentation Index

Fetch the complete documentation index at: https://extension.js.org/llms.txt

Use this file to discover all available pages before exploring further.

Svelte template preview

Create the project

npx extension@latest create my-extension --template=svelte

What you get

Compile-time UI with single-file .svelte components and a minimal runtime footprint. A good fit for content scripts and popups where every kilobyte counts. The template includes the build configuration needed for HMR-friendly Svelte authoring inside an extension context.

Source

Browse the full source on GitHub: extension-js/examples/svelte.