A local Chrome extension that watches the Discord web app, captures message activity that is already rendered in your browser, and computes a simple per-server leaderboard.
- Runs only on
https://discord.com/* - Captures visible message metadata from the current channel view
- Stores the last 30 days of captured activity in
chrome.storage.local - Shows a leaderboard in the extension popup
This extension does not know the full history of a server. It only scores messages that Discord has actually rendered in your browser while the extension is active.
That means the leaderboard is best interpreted as:
"Among the messages my browser has observed recently, who is contributing the most?"
The MVP contribution score is intentionally simple:
+1base score per message+1if the message looks like a reply+1if the message has attachments+1for each visible reaction, capped at+3- very short messages are slightly discounted
- Run
pnpm install - Run
pnpm run build - Open
chrome://extensions - Enable Developer Mode
- Click
Load unpacked - Select the repo's
extensionfolder:/Users/jxsh/Desktop/projects/treem/extension
Agent-facing repo workflow notes live in AGENTS.md.
src/shared: common types, storage, and scoringsrc/capture: Discord DOM extraction and message capturesrc/popup: popup leaderboard UIextension: extension assets plus bundled runtime scripts