Chrome Web Store · Installation · How It Works
Cocoon is a browser extension that filters your X/Twitter feed using AI. You tell it what you care about, and it hides everything else.
No more rage bait. No more engagement farming. No more algorithmic garbage you never asked for.
Features:
- Define your interests in plain English
- Block content categories (political outrage, clickbait, celebrity gossip, etc.)
- Keyword blocking for instant filtering
- Works on home feed, search, profiles, and individual posts
- Quota system to limit daily scrolling (optional)
- Multiple themes
- You provide an OpenRouter API key (free tier available)
- You configure your interests and blocks
- As you scroll, Cocoon sends batches of posts to Grok for classification
- Posts that don't match your interests get hidden
Your API key is encrypted and stored locally. Post content is sent to the LLM for classification but nothing is stored or logged on any server.
Install from the Chrome Web Store.
# Clone the repo
git clone https://github.com/cocoon-extension/cocoon.git
cd cocoon
# Install dependencies
npm install
# Build the extension
npm run build
# Load in Chrome:
# 1. Go to chrome://extensions
# 2. Enable "Developer mode"
# 3. Click "Load unpacked"
# 4. Select the .output/chrome-mv3 directoryFirefox builds but has not been tested. If you try it, let us know how it goes.
npm run build:firefox
# Load .output/firefox-mv2 in about:debugging# Start dev server with hot reload
npm run dev
# Firefox
npm run dev:firefox
# Type checking
npm run check- Svelte 5 - UI framework
- WXT - Browser extension framework
- Tailwind CSS - Styling
- TypeScript - Type safety
- OpenRouter - LLM API gateway (Grok by default)
After installation, click the Cocoon icon and complete the setup:
- API Key - Get a free key from OpenRouter
- Interests - Topics you want to see (AI, design, startups, etc.)
- Blocks - Content to always hide (rage bait, ads, political outrage, etc.)
Advanced settings available in the options page.
This is copyleft software. If you modify and distribute it, you must also release your modifications under GPL-2.0.
- Firefox support (builds, but untested)
- YouTube
- Threads (maybe)
PRs welcome. Fork it, build something, open a PR.
