Svelte Router New Tab

Replaces your new tab page with a small Svelte app you can navigate across routes.

Runs on Chrome, Edge, Firefox · Manifest V3 · Surfaces: new tab, background service worker · Styling: CSS · Level: beginner · Framework: svelte

Create this project

npx extension@latest create my-newtab-svelte-router --template newtab-svelte-router
cd my-newtab-svelte-router
npm install
npm run dev

Files in this template

  • extension.config.js
  • src/background.js
  • src/images/icon-128.png
  • src/images/icon-16.png
  • src/images/icon-32.png
  • src/images/icon-48.png
  • src/images/icon-64.png
  • src/images/icon.png
  • src/manifest.json
  • src/newtab/NewTabApp.svelte
  • src/newtab/Page.svelte
  • src/newtab/index.html
  • src/newtab/routes/About.svelte
  • src/newtab/routes/Home.svelte
  • src/newtab/routes/Users.svelte
  • src/newtab/scripts.ts
  • src/newtab/styles.css

extension.devDocumentation for extension.dev