public
synced 2026-11-26 05:05:03 +00:00
watch 1
fork 0
you've already forked corgi

latest commit message

ryana
3bc9f99 2026-03-04 00:44:43 +08:00 90 commits
2026-02-24 05:46:22 +08:00
2026-02-27 07:32:03 +08:00
2026-02-27 13:25:05 +08:00
2026-02-23 18:51:42 +08:00
2026-02-09 20:18:04 +08:00
2026-02-27 13:25:05 +08:00
2026-02-27 07:32:03 +08:00
2026-03-04 00:44:43 +08:00

Corgi

Corgi

A plugin system and theming engine for Kagi Search.

Warning

Corgi is in heavy development. Things will break, APIs will change, and dragons roam freely. If you hit a bug, please open an issue.

Corgi Settings Page

Corgi hooks into Kagi's page, patches its runtime, and gives you a plugin API to extend everything. Settings live inside Kagi's own settings page at /settings/corgi, so the whole experience feels native.

It ships with 29 built-in plugins across three categories: 12 visual polish, 4 customization, and 13 utilities. See the full plugin list in the docs.

Build Requirements

Build from Source

Firefox

git clone https://github.com/aluminyoom/corgi.git
cd corgi
pnpm install
pnpm --filter @corgi/extension build:firefox

The built extension is in extension/.output/firefox-mv2/.

To produce a zip for upload to addons.mozilla.org:

pnpm --filter @corgi/extension zip:firefox

Output: extension/.output/corgiextension-1.0.1-firefox.zip

Chrome

git clone https://github.com/aluminyoom/corgi.git
cd corgi
pnpm install
pnpm --filter @corgi/extension build

Then load extension/.output/chrome-mv3 as an unpacked extension in chrome://extensions with Developer Mode enabled.

Build Tools

This extension uses the following tools that process source code into the final output:

  • WXT v0.20 — browser extension framework (build orchestration)
  • Vite v7 — bundler (combines and minifies modules)
  • Svelte v5 — UI compiler (compiles .svelte components to JS)
  • TypeScript v5.7 — transpiles .ts to JS

All dependencies and their exact versions are pinned in pnpm-lock.yaml.

Development

cd extension
pnpm dev             # hot reload (Chrome)
pnpm dev:firefox     # hot reload (Firefox)
pnpm build           # production (Chrome)
pnpm build:firefox   # production (Firefox)
pnpm zip             # package for Chrome distribution
pnpm zip:firefox     # package for Firefox distribution

To create a plugin, drop a .ts file in extension/src/plugins/builtins/ and auto-discovery handles the rest:

import { definePlugin } from "@/plugins/api";

export const myPlugin = definePlugin({
  name: "my-plugin",
  displayName: "My Plugin",
  version: "0.1.0",
  authors: ["your-name"],
  description: "Does something cool",
  onStart(api) {
    // Your code here
  },
});

See Creating Plugins for the full API reference.

Docs

VitePress docs live in docs/ and can be run locally:

cd docs && pnpm install && pnpm dev

License

MIT. Made by aluminyoom.

Not affiliated with Kagi Inc. Do not contact Kagi support for Corgi issues.