Skip to content

Commit d6b13a7

Browse files
committed
Chrome extension doesn't live here anymore
1 parent deb62dd commit d6b13a7

5 files changed

Lines changed: 13 additions & 88 deletions

File tree

CLAUDE.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
66

77
```sh
88
npm ci # Install dependencies
9-
npm run build # Build both Chrome and Firefox extensions
10-
npm run build-chrome # Build Chrome extension only
11-
npm run build-firefox # Build Firefox extension only
12-
npm run watch-chrome # Watch mode for Chrome development
13-
npm run watch-firefox # Watch mode for Firefox development
9+
npm run build # Build Firefox extension
10+
npm run watch # Watch mode
1411
npm run format # Format code with Biome
1512
npm run lint # Check code with Biome
1613
npm test # Run linter (alias for npm run lint)
@@ -20,17 +17,16 @@ Build outputs go to `built/kagi_{browser}_{version}.zip`.
2017

2118
## Architecture
2219

23-
This is a monorepo containing Kagi Search browser extensions for Chrome, Firefox, and Safari.
20+
This is a monorepo containing Kagi Search browser extensions for Firefox and Safari.
2421

2522
### Code Sharing Model
2623

27-
- **`shared/`** - Common code used by both Chrome and Firefox extensions
24+
- **`shared/`** - Common code used by both Firefox extension and old Chrome extension
2825
- `src/background.js` - Service worker: session token management, auth header injection, context menus
2926
- `src/popup.js` - Extension popup UI and settings management
3027
- `src/summarize_result.js` - Universal Summarizer feature
3128
- `src/lib/utils.js` - Shared utilities (API calls, storage, permissions)
3229
- `icons/` - Extension icons
33-
- **`chrome/`** - Chrome-specific manifest only
3430
- **`firefox/`** - Firefox-specific manifest only
3531
- **`safari/`** - Separate Swift-based implementations (not part of JS build)
3632

@@ -46,12 +42,6 @@ Safari extensions are Swift-based native apps, separate from the npm build syste
4642

4743
The iOS extension is published at: https://apps.apple.com/us/app/kagi-search-for-safari/id1607766153
4844

49-
### Browser Detection
50-
51-
```javascript
52-
IS_CHROME = typeof browser.runtime.getBrowserInfo !== 'function'
53-
```
54-
5545
### Key APIs
5646

5747
- `kagi.com/api/v0/summarize` - API-based summarization

README.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Kagi Search Extension
22

3-
This contains the source for the [Kagi Search](https://kagi.com) extension for Firefox and Chrome.
3+
This contains the source for the [Kagi Search](https://kagi.com) extension for Firefox and Safari. The Chrome extension lives at [kagisearch/chrome_extension_basic](https://github.com/kagisearch/chrome_extension_basic).
44

55
Get it for your browser here:
66

77
- [Chrome](https://chrome.google.com/webstore/detail/kagi-search-for-chrome/cdglnehniifkbagbbombnjghhcihifij)
88
- [Firefox](https://addons.mozilla.org/en-US/firefox/addon/kagi-search-for-firefox/)
9+
- [Safari (iOS)](https://apps.apple.com/us/app/kagi-search-for-safari/id1607766153)
910

1011
## Contents
1112

1213
- [Extension Features](#extension-features)
13-
- [Other Browsers](#other-browsers)
1414
- [Installing from source](#installing-from-source)
1515
- [Download](#download)
1616
- [Load the extension](#load-the-extension)
@@ -29,10 +29,6 @@ Get it for your browser here:
2929
- Use the Universal Summarizer on the current page
3030
- ... more in the future!
3131

32-
## Other Browsers
33-
34-
- [Safari (iOS)](https://apps.apple.com/us/app/kagi-search-for-safari/id1607766153)
35-
3632
## Loading from source
3733

3834
### Building
@@ -41,7 +37,7 @@ To build the extension, you will need node and npm installed.
4137

4238
1. Obtain the files from this repo, either via `git clone https://github.com/kagisearch/browser_extensions` or by downloading the source zip.
4339
2. run `npm i` to install `adm-zip` which is used to package up the files.
44-
3. You can now run `npm run build-firefox` or `npm run build-chrome` to zip up the relevant files and output a zip file.
40+
3. You can now run `npm run build` to zip up the relevant files and output a zip file.
4541

4642
You can also download a pre-packaged zip from our releases page.
4743

@@ -64,13 +60,6 @@ Or by cloning the repo:
6460
3. Click "Load Temporary Add-On"
6561
4. Select the zip file or manifest.json of the extension.
6662

67-
#### Chrome
68-
69-
1. Head to `chrome://extensions`
70-
2. Turn on "Developer mode" in the top right and then some new buttons will pop up.
71-
3. Click on `Load unpacked extension`
72-
4. Select the zip file or you may have to unzip the zip and select the folder outputted from extraction.
73-
7463
## Contributing
7564

7665
### Accepted Contributions
@@ -98,16 +87,13 @@ Check the recommended and required `node` and `npm` versions in the `package.jso
9887

9988
```sh
10089
npm ci # install dependencies
101-
npm run watch-firefox # builds the firefox zip file and unzips it into the `built/` directory every time a file changes
102-
npm run watch-chrome # builds the chrome zip file and unzips it into the `built/` directory every time a file changes
90+
npm run watch # builds the zip file and unzips it into the `built/` directory every time a file changes
10391
npm run format # formats the code
10492
```
10593

10694
### Testing/sharing/debugging
10795

10896
```sh
10997
npm run test # runs the linter & formatter checks
110-
npm run build # builds the chrome and firefox zip files in the `built/` directory
111-
npm run build-firefox # builds the firefox zip file in the `built/` directory
112-
npm run build-chrome # builds the chrome zip file in the `built/` directory
98+
npm run build # builds the firefox zip file in the `built/` directory
11399
```

build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ if (args.length === 0) {
77
}
88

99
const extension = args[0];
10-
if (extension !== 'firefox' && extension !== 'chrome') {
11-
console.log('Only firefox and chrome extension building is supported');
10+
if (extension !== 'firefox') {
11+
console.log('Only firefox extension building is supported');
1212
process.exit(1);
1313
}
1414

chrome/manifest.json

Lines changed: 0 additions & 48 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55
"main": "build.js",
66
"private": true,
77
"scripts": {
8-
"watch-firefox": "nodemon build.js firefox watch",
9-
"watch-chrome": "nodemon build.js chrome watch",
10-
"build": "npm run build-firefox && npm run build-chrome",
11-
"build-firefox": "node build.js firefox",
12-
"build-chrome": "node build.js chrome",
8+
"watch": "nodemon build.js firefox watch",
9+
"build": "node build.js firefox",
1310
"format": "biome format --write . && biome check --apply .",
1411
"lint": "biome check .",
1512
"test": "npm run lint"

0 commit comments

Comments
 (0)