A Chrome extension that filters X and YouTube with a small AI model running on your own machine. Noise gets blurred. Signal gets through. Nothing leaves your laptop.
Requires a Mac with Chrome and ~2 GB disk for the model. Everything is open source.
When someone signs up to your SaaS, grab their email domain, get a summary from Firecrawl, have an LLM generate the best starting configuration…
✓ AI: specific tool and tactic ✗I mass launched 70+ startups since 2013. Here's my stack: a $5/month VPS, PHP, jQuery, SQLite. No frameworks. No team. $2.7M ARR.
✓ AI: concrete numbers, real stack ✗Every tweet on your home feed gets a decision in under a second. Nothing is sent anywhere — the model runs in Ollama on localhost.
Engagement bait, crypto pumps, NSFW, clickbait phrasing — caught by patterns before the model is even asked. A tech/business safelist protects real content from false positives.
Novelty, specificity, density, authenticity — scored by Gemma running locally (~780ms median). Concrete numbers and real experience read as signal; vague hype reads as noise.
Only confident noise calls get blurred. Everything is reversible: peek under any blur, and if the call was wrong, one tap on ✗ fixes it and records the mistake.
Every version of the filter runs against a 109-tweet golden set before it ships — real tweets, tiered by what missing them would cost. A regression gate blocks any change that loses signal.
The same extension runs an inverted filter on YouTube: everything is blurred by default, and only music (and optionally motivational videos) is revealed. For when you came to press play, not to lose an evening.
Every thumbnail is blurred until the local model confirms it's music. The trending video you didn't come for stays a gray rectangle.
Classification uses just the title and channel with a 2B model, so the grid resolves in a blink. Search and channel pages are never touched.
A counter tracks Shorts binges. Past your limit — 10 Shorts or 5 minutes — a gentle full-screen nudge asks if this is really where the evening goes.
The setup script installs the local AI runtime, downloads the right model for your machine, fixes permissions, and proves the whole pipeline with a live classification before you ever open Chrome.
git clone https://github.com/phuaky/xrai.git && cd xrai bash scripts/setup.sh # ... ✓ Model classified a test tweet: {"prediction":"noise","confidence":0.78}
Open chrome://extensions → enable Developer mode → Load unpacked → select the extension/ folder.
The rai pill appears bottom-right with live shown/hidden counts. 👁 peeks under any blur, ✗ corrects mistakes, ⚙ tunes everything.
rai behaves like an ad blocker, not a bot.