Mintplex-Labs/anythingllm-extension
About
Browser extension for the AnythingLLM Docker and Desktop applications
Systems & InfrastructureWhat you can do
- Chat with any page. The tab you're on is one click away as context.
- Bring in more tabs. Type @ to add other currently open tabs to the conversation.
- Right-click actions. Highlight text and choose Ask, Summarize, Explain, Rewrite, or Fix spelling and grammar. Right-click a page to chat with it, or an image to add it to the chat.
- Attachments and voice. Drag, drop, or paste files and images, or dictate with the microphone.
Measured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +5
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
AnythingLLM Browser Companion
Chat with any page using AnythingLLM from your browser.
Chrome Web Store • Features • Getting started • Development • Contributing
[!NOTE] The companion needs a running AnythingLLM instance, version 1.20.0 or newer. Desktop, Docker, and Cloud instances all work.
Features
- Chat with any page. The tab you're on is one click away as context.
- Bring in more tabs. Type
@to add other currently open tabs to the conversation. - Right-click actions. Highlight text and choose Ask, Summarize, Explain, Rewrite, or Fix spelling and grammar. Right-click a page to chat with it, or an image to add it to the chat.
- Attachments and voice. Drag, drop, or paste files and images, or dictate with the microphone.
- Agents in the panel. Approve tool calls, answer clarifying questions, and see charts, files, and scheduled jobs.
- Synced threads. Every chat is saved as a thread in your workspace, so you can continue it in AnythingLLM.
- Save the web. Send a selection or a whole page to AnythingLLM, or embed it straight into a workspace.
- Your instance, your data. The chats, pages, and files you share go only to the AnythingLLM instance you connect.
Getting started
- Install from the Chrome Web Store, or build it yourself.
- Click the toolbar icon, or press
Alt+Shift+L, to open the side panel. - In AnythingLLM, go to Settings > Tools > Browser Extension and click Connect, then approve the request in the panel. You can also paste the connection string into the panel instead.
- Pick a workspace and start chatting.
Disconnecting, settings (language and light/dark/system theme), and the threads list are in the panel's header.
Development
You'll need Node.js 18+ and Yarn.
yarn install
yarn dev # rebuilds dist/ on every change
yarn build # one-off production build
yarn build:prod # build, then zip dist/ into release/ for the Chrome Web Store
Then load it into Chrome:
- Open
chrome://extensionsand turn on Developer mode. - Click Load unpacked and select the
distfolder. - After a rebuild, click the reload icon on the extension's card.
Project layout
| Path | What's in it |
|---|---|
public/manifest.json |
Extension manifest (name, version, permissions) |
public/background.js |
Service worker: context menus, connection handling, side panel |
public/contentScript.js |
Runs on pages to read content and relay connection requests |
src/components/SidePanel/ |
The side panel React app |
src/locales/ |
UI strings and translation scripts |
Translations
English strings live in src/locales/en/. Run yarn translations:verify after changing them. yarn translations:normalize, yarn translations:unused, and yarn translations:prune keep the files tidy.
Contributing
Contributions are welcome.
- Fork the repo and create a branch from
main. - Make your change, then run
yarn lintandyarn build. - Load the built extension and check your change against a real AnythingLLM instance.
- Open a pull request that describes what changed and includes screenshots for UI changes.
Found a bug or have an idea? Open an issue.
Related
- AnythingLLM: the all-in-one AI app this extension connects to
- AnythingLLM Desktop
- Documentation
License
Explore related projects
Loading…