You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal: anonymous, sign-in-gated comments on software and project pages
#346
Hi! I'd like to contribute a comments feature to Remade and would rather check the design with you before writing any code.
I know docs/PROJECT_REQUESTS.md says "No runtime comments" and docs/PLAN.md lists comments as a launch non-goal. That's why I'm asking first instead of opening a PR. The design below tries to stay inside the rules the site already follows: identities are never published, anonymous visitors make no auth requests, and the Worker accepts only fixed, validated actions.
Why
Request and project pages show counters ("Upvote", "I'm building this"), but there is no place on the page to ask a question, share findings about the original's behavior, or post progress. Today that discussion is spread across issues and Discord threads, so people browsing the site can't see it.
Design
Identity and display
Writing a comment or reacting requires the existing GitHub or Discord sign-in. The sign-in requirement is the spam and abuse protection.
Everyone is shown as Anonymous, with no avatar. Comment API responses never include a user ID, name, avatar or provider handle.
The author's user ID is stored only in D1, and is used only for rate limits, deleting your own comment and moderation. This is the same model as request upvotes and builder indications: totals are public, identities stay private.
Anonymous visitors can read comments and reaction counts. They don't get a cookie, and loading comments makes no auth request.
Optional: per-thread tag. Comments could show a short per-thread tag, for example Anonymous (a3f9), derived from HMAC(server secret, user ID + thread). It makes back-and-forth readable inside one thread and can't be matched across threads. This is entirely optional: if you'd prefer everyone to be plain "Anonymous", I'll leave it out, and then no extra secret is needed.
Where. One thread per /software/<slug>/ page, covering released originals and open requests (for example /software/unreal-lumen/), and one thread per /projects/<slug>/ page.
Categories. Generic (the default), Question, Findings and Progress.
Progress requires a repository URL. Before posting, the author sees this warning: "Sharing this repository may reveal who you are, and we can no longer protect your anonymity. If you want to stay anonymous, make sure the repository doesn't identify you before sharing it."
Progress comments show a gold PC icon next to "Anonymous". Its tooltip reads "Working on this project (self-reported)", and clicking it opens the repository. Nothing is verified, consistent with how builder indications are described today.
Replies. One level only: you can reply to a comment, not to a reply.
Reactions. A fixed set (👍 ❤️ 🎉 👀 🚀). One of each per account and comment, toggleable.
Sorting. The default is most reactions, with ties going to the newest comment. The other options are newest, oldest, most replies and latest activity. Latest activity means a new reply moves the whole thread, parent comment and all its replies, to the top.
Links. Comments are plain text, with no Markdown or HTML.
Only https:// links to the hosts in scripts/review_submission.py are allowed: github.com, gitlab.com, codeberg.org, bitbucket.org and git.sr.ht. These links become clickable.
Direct downloads are rejected even on those hosts: release assets, /archive/, raw file URLs and the equivalent paths on the other hosts.
If a comment contains a link that isn't allowed, the comment is not posted. The author sees an error that lists the allowed sites. The same list is available from an info icon next to the comment box.
All checks run in the Worker, not only in the browser.
Moderation and limits
Authors can delete their own comments. A deleted comment that has replies keeps its place and shows "[deleted]".
Signed-in users can report comments.
Maintainers, defined by a configured list of GitHub IDs, can hide comments and block accounts from commenting.
Each account has a rate limit, and a comment can be at most 4,000 characters.
Technical fit
New D1 migrations add comments, reactions, reports and blocks. There are no changes to existing tables.
New Worker routes under /api/v1/comments. Write routes reuse the existing session, Origin and Sec-Fetch-Site checks. The empty-body rule is relaxed only on these routes, to a small, size-capped JSON body.
The frontend is one focused React island (client:visible). Posting, replying and reacting never reload the page.
Static browsing still works if the API is down.
Tests follow the repo's conventions: Vitest unit tests, vitest-browser-react and test:auth against workerd with local D1.
Docs, privacy.md and terms.md will be updated for the new user-generated content.
Out of scope: notifications, Markdown, editing history and comment counts on cards. These could come later if wanted.
Questions
Are you open to comments at all, under this anonymous model?
Per-thread tag, or plain "Anonymous" for everyone?
Should reported comments be hidden automatically after N reports, or only by a maintainer?
Any rate limits or length limits you'd prefer?
If this sounds good, I'll implement it as a single PR with tests and docs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi! I'd like to contribute a comments feature to Remade and would rather check the design with you before writing any code.
I know
docs/PROJECT_REQUESTS.mdsays "No runtime comments" anddocs/PLAN.mdlists comments as a launch non-goal. That's why I'm asking first instead of opening a PR. The design below tries to stay inside the rules the site already follows: identities are never published, anonymous visitors make no auth requests, and the Worker accepts only fixed, validated actions.Why
Request and project pages show counters ("Upvote", "I'm building this"), but there is no place on the page to ask a question, share findings about the original's behavior, or post progress. Today that discussion is spread across issues and Discord threads, so people browsing the site can't see it.
Design
Identity and display
Optional: per-thread tag. Comments could show a short per-thread tag, for example
Anonymous (a3f9), derived fromHMAC(server secret, user ID + thread). It makes back-and-forth readable inside one thread and can't be matched across threads. This is entirely optional: if you'd prefer everyone to be plain "Anonymous", I'll leave it out, and then no extra secret is needed.Where. One thread per
/software/<slug>/page, covering released originals and open requests (for example/software/unreal-lumen/), and one thread per/projects/<slug>/page.Categories. Generic (the default), Question, Findings and Progress.
Replies. One level only: you can reply to a comment, not to a reply.
Reactions. A fixed set (👍 ❤️ 🎉 👀 🚀). One of each per account and comment, toggleable.
Sorting. The default is most reactions, with ties going to the newest comment. The other options are newest, oldest, most replies and latest activity. Latest activity means a new reply moves the whole thread, parent comment and all its replies, to the top.
Links. Comments are plain text, with no Markdown or HTML.
https://links to the hosts inscripts/review_submission.pyare allowed: github.com, gitlab.com, codeberg.org, bitbucket.org and git.sr.ht. These links become clickable./archive/, raw file URLs and the equivalent paths on the other hosts.Moderation and limits
Technical fit
/api/v1/comments. Write routes reuse the existing session, Origin and Sec-Fetch-Site checks. The empty-body rule is relaxed only on these routes, to a small, size-capped JSON body.client:visible). Posting, replying and reacting never reload the page.vitest-browser-reactandtest:authagainst workerd with local D1.privacy.mdandterms.mdwill be updated for the new user-generated content.Out of scope: notifications, Markdown, editing history and comment counts on cards. These could come later if wanted.
Questions
If this sounds good, I'll implement it as a single PR with tests and docs.
All reactions