A browser extension that scans the sentiment of what you scroll and mirrors the algorithm's bias back to you. It reads each post/video on your feed, scores its sentiment, emotion, topic, and the manipulation techniques it uses, then reflects the pattern: this is who the algorithm has decided you are, and this is how it's keeping you here.
Reverse Bias — the feed's bias is invisible by design. BrainRot makes it visible.
The sentiment engine is a native, dependency-free VADER-style scorer (Hutto & Gilbert, ICWSM-14): a valence lexicon plus the rules that matter for social text — negation ("not good" → negative), booster words (very, extremely), ALL-CAPS emphasis, !!! amplification, and the "but"-clause dominance rule. The method is public; the implementation and lexicon are our own (no external data files, no license encumbrance).
Everything runs on-device. Nothing leaves your browser — no accounts, no servers, no tracking. The analysis is a deterministic lexicon engine (fast, private, explainable).
BrainRot reads how content feels — but a rage-bait post and a calm, false claim are different problems. So it also separates how it makes you feel from what it's asserting: each post is flagged as an emotional take, a factual claim (and whether that claim is backed by a source or a bare, unbacked assertion), or opinion-dressed-as-fact. It reads FORM, never truth — it can't verify facts on-device, and says so. The feed view rolls it up: what share of your feed is feeling vs. checkable claim, and how many of those claims actually cite anything.
- Mirror — what the algorithm thinks you are (top topics, emotional lean, echo-chamber tightness).
- Detector — tags each post in place with the manipulation technique it uses (rage-bait, doomscroll, FOMO, envy-bait, us-vs-them, cliffhanger, …).
- Antidote — suggests balancing counter-content to break the echo chamber.
- Analyzer — a quick read on how engineered your feed is (hook %, mood, echo).
X / Twitter, Instagram, TikTok, YouTube, Reddit, Facebook — with a generic fallback for any page.
Chrome / Edge / Brave / Opera
chrome://extensions→ enable Developer mode- Load unpacked → select this folder
- Open a feed, scroll a bit, click the BrainRot icon → Scan this feed
Firefox
about:debugging#/runtime/this-firefox- Load Temporary Add-on → select
manifest.json
manifest.json MV3, cross-browser (Chromium + Firefox via gecko settings)
src/engine.js the analysis core — sentiment/emotion/topic/manipulation + the Mirror roll-up
src/scrape.js reads post text off the page DOM (per-platform selectors + generic fallback)
src/content.js runs on the feed: analyzes + paints on-page badges + answers the popup
src/overlay.css the on-page badge styling (the Detector overlay)
popup/ the popup UI — the four lenses
src/kb.js the knowledge base — accumulates a linked graph of what you read
graph/ the Obsidian-style consumption graph (force-directed, click to inspect)
The engine mirrors lib/brainrot.ts in the portfolio repo (shared brain, two
front-ends).
Other tools rate the outlet's bias ("this source leans left"). BrainRot's lane is the recommender's motive toward you, and the cognitive biases it exploits to hold you there:
- Motive — what the feed appears to be optimizing for (e.g. engagement by keeping you agitated, anchored on politics, using outrage).
- Agenda — bias is the lean of the content; agenda is the intent of the serving. BrainRot infers the serving pattern (narrowing · provocation · retention) and says plainly that it's inferred from your feed, not the platform's stated intent.
- Biases it exploits — confirmation bias, echo chamber, negativity bias, in-group / us-vs-them, novelty & FOMO, social-proof / envy — each named with the signal in your feed that suggests it.
BrainRot auto-detects what you're on when you open it:
- 📱 Feed mode (X, Instagram, TikTok, YouTube, Reddit, Facebook) — mirrors the algorithm's bias across everything you're scrolling.
- 📰 Article mode (any news / opinion page) — reads that single piece for framing: an editorializing score, a one-sidedness read (loaded language vs. attribution / balance markers), headline-bait flags, and the manipulation techniques in play. Toggle Highlight charged passages to mark the loaded paragraphs in place, right on the article — hover any highlight to see the loaded words.
The deterministic engine is covered by a zero-dependency test suite (Node's built-in runner) — sentiment rules (negation, boosters, caps, punctuation, "but"-clause), feed profiling, motive/bias inference, topic classification, and article framing:
npm test # or: node --test "test/*.test.mjs"
CI runs them on every push + PR. The live DOM scrapers need a browser and aren't unit-covered.
- Ship to the Chrome Web Store + Firefox AMO.
- Optional on-device tiny LLM (WebLLM) for a deeper per-post read on top of the deterministic core.
- ✅ Article mode — single-article framing + one-sidedness read (above).
- ✅ Knowledge graph — every scan folds into a local, linked graph of your topics/emotions/biases (Obsidian-style). Open it from the popup ("Your graph"). Export / Import: your data is yours — download the whole graph as JSON (back it up, move browsers, inspect it) and restore it later.
- ✅ Wrapped report — a Spotify-Wrapped-style narrative of your consumption over time: totals, your biggest cognitive-bias exposure, the emotions the feed fed you, hook-exposure sparkline with a real date span, and a copy-to-share summary (the pattern only, never your posts). Open it from the graph tab.
Built by Ankur Sinha. Private by design.