Commentarium is a Chrome extension that adds a social layer — ratings, comments, and votes — to any page on the web. It injects a side panel that talks to a Next.js + Firebase backend holding the comments, the auth, and the API.
What it does
Comments and ratings on any URL — Markdown editor, threaded replies, soft delete
Votes with real consistency — up/down votes run transactionally, and casting the opposite vote auto-cancels the previous one
Six ways to sort — Best, Hot, Newest, Most Upvoted, Controversial, and more, kept cheap by denormalizing the score into a sortMeta field instead of recomputing it on every read
Anonymous or Google sign-in — anonymous accounts upgrade to Google without losing their UID, so a user’s history survives the upgrade
A privacy guard — before a URL is shown, an entropy check flags token-like path segments (session tokens, signed links) so private URLs don’t leak into a public feed
The hard part: auth inside a third-party iframe
The side panel is commentarium.app content rendered in an iframe on arbitrary sites — a textbook third-party context, where browsers block the session cookie. Making sign-in work there without asking for scary <all_urls> permissions turned into its own redesign around CHIPS partitioned cookies. I wrote it up: From chrome.cookies to CHIPS.