HEADLESS COMMENTS

Overview
A headless-first React comment engine: standalone useCommentTree hook, composable per-comment hooks, pluggable adapters (REST, Supabase, in-memory), and optional styled presets. TypeScript-native with generic Comment<T> support and zero dependencies except React 18+. Suited for apps that need full control over UI or a drop-in comment section.
Challenges
The library was strong for the styled-preset use case, but the headless layer still assumed a Provider and render-props pattern—so it wasn’t truly headless. The goal was to expose primitives (pure functions and independent hooks) that don’t impose any architecture. Shipping useCommentTree plus composable hooks (useEditComment, useReplyTo, useCommentReaction) fixed that: it now delivers on the headless promise.