HEADLESS COMMENTS
2025
OPEN SOURCE / REACT

Overview
Open-source React comment system I published as @hasthiya_/headless-comments-react. You get tree state, replies, reactions, and adapters (REST, Supabase, in-memory) without locking you into one UI. Use the hooks alone, or drop in a styled preset if you just need something working.
Challenges
Early versions claimed to be headless but still pushed a Provider and render-props shape. That wasn’t good enough for real BYO-UI work. I split the API into useCommentTree plus smaller hooks for edit, reply, and reactions so apps can own layout completely.
Technology
REACTTYPESCRIPTHOOKSOPEN SOURCEHEADLESS
Live Status
headless.hasthiya.dev
headless.hasthiya.dev