-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7de5ac4
Showing
56 changed files
with
209,178 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 1 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.html] | ||
indent_style = tab | ||
indent_size = 2 | ||
|
||
[*.css] | ||
indent_style = tab | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules/ | ||
package-lock.json | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Bitan Nath. All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# ✂ Parsnip - Chrome Extension | ||
A complex chrome extension that allows semantic search across tabs, including across **PDFs**, **Google Docs** and **Google Slides** | ||
|
||
✨ Developed for the Google Chrome Built-in AI Challenge c.2024 | ||
|
||
### Project Structure | ||
|
||
├── components -> UI Components using Shadow DOM for custom elements | ||
│ ├── export.js | ||
│ ├── icons.js | ||
│ ├── list.js | ||
│ ├── search.js | ||
│ └── topbar.js | ||
├── content -> Content Script to Inject Search Page | ||
│ ├── search.css | ||
│ └── search.js | ||
├── export -> JS Scripts to export data to Google Docs or Drive | ||
│ ├── documents.js | ||
│ ├── markdown.js | ||
│ └── presentations.js | ||
├── fonts -> Custom Fonts to make things look nice | ||
│ ├── Bokor.woff2 | ||
│ ├── Branda.ttf | ||
│ ├── Darker.woff2 | ||
│ └── DarkerGrotesque.ttf | ||
├── icons -> Icons for the Extension | ||
│ ├── empty_state.png | ||
│ ├── gemini.svg | ||
│ ├── icon-16.png | ||
│ ├── icon-32.png | ||
│ ├── icon-64.png | ||
│ ├── icon-128.png | ||
│ ├── icon-512.png | ||
│ ├── icon-1024.png | ||
│ ├── meteor.png | ||
│ ├── parsnip.svg | ||
│ ├── rocket.png | ||
│ ├── simplified_logo.svg | ||
│ └── svgviewer-output.svg | ||
├── import -> JS Scripts to read websites and scrape text | ||
│ ├── documents.js | ||
│ ├── github.js | ||
│ ├── pedfile.js | ||
│ └── presentations.js | ||
├── layout -> Layout custom HTML elements and Shadow DOM | ||
│ ├── panel.js | ||
│ └── stacks.js | ||
├── libs -> Modified local copy for Sentence Vectorization and Readability parser for webpages | ||
│ ├── sentence-parser | ||
│ ├── hybrids.js | ||
│ ├── pdfjs.min.js | ||
│ ├── pdfjs.worker.js | ||
│ ├── readability.max.js | ||
│ └── readability.min.js | ||
├── LICENSE | ||
├── manifest.json -> Change Extension Trial Key here | ||
├── README.md | ||
├── settings.html | ||
├── sidepanel.html | ||
├── sidepanel.js | ||
├── storagedb.js | ||
├── vectordb.js | ||
├── worker.js | ||
└── workutils.js | ||
|
||
### Installation | ||
Install as you would any Chrome Extension in Developer Mode. Simply Load Unpacked from folder after enabling Developer Mode in `chrome://extensions` | ||
|
||
The working of this extension however, depends on the AI Gemini Nano Model being downloaded through trial_tokens for this extension with key `trial_tokens` in `manifest.json`. In case the extension ID changes, this trial token will expire, and a new one needs to be generated from [here](https://developer.chrome.com/origintrials/#/trials/active) | ||
|
||
### Usage | ||
Once installed, simply press `Shift+Alt+F` or `Shift+Option+F` in order to open up the search UI on any page. Tabs are indexed and vectorized in the background while you browse. | ||
|
||
The extension also includes a side panel that can be used to browse your query history and export related documents to Google Docs as a document, Google Slides as a presentation or Google Drive as a Markdown doc. |
Oops, something went wrong.