Apps and websites · React · Node · PostgreSQL · Socket.io · Summer 2026
CodeReview
A collaborative web app for inline code commenting with live updates. Paste or upload code, share the link, and leave comments on specific lines. Comments appear instantly for everyone viewing the same snippet, no refresh. Full-stack, with its own server and database. The free server sleeps when nobody uses it, so the first visit can take a minute.
The real app runs a Node + Postgres + Socket.io backend, which can't run inside a
static page. This is a small client-only version of the core interaction: click a
line number, leave a comment, and watch what happens when someone else is viewing
the same snippet at the same time, the way new_comment
events work over the real WebSocket connection. For the full thing with real accounts
and sharing, use the live link above.
Technical decisions, straight from the project's own notes.
crypto.randomBytes(6).toString('base64url') gives the same 8-character URL-safe ID with no extra dependency.Real files from the deployed project.
What I learned
A socket message can contain anything, also from someone who is not using my page. The server checks every value before using it, because one unexpected type can take the whole server down for everyone.
Each snippet is a room. A new comment is sent only to the people in that room, and leaving has to be handled for closed tabs and lost connections too, or the viewer count goes wrong.
Deployed, the frontend and backend have different addresses, so CORS, environment variables and the socket address all have to be right. None of that shows up on my own machine.