Quick answer
This is a free nested comment thread builder and discussion analyzer. Add a top-level comment, reply to any comment to create deeper levels, and the tool instantly reports total comments, deepest level, the share of comments that are replies, the widest branch, the longest reply chain and a 0–100 depth score. You can then export the whole tree as Markdown or JSON. Everything runs locally in your browser.
What This Nested Comment Builder Does
Community platforms live or die by their comment structure. A flat feed of replies is easy to scan but impossible to follow once two people start a side argument. A tree of deeply nested comments keeps every answer attached to the question that produced it, yet it can also collapse into a narrow ribbon of text that nobody can read on a phone. This workspace lets you feel that trade-off before you ship it.
It is a practical planning tool for anyone who runs or builds a forum: community managers testing a moderation policy, product teams comparing comment layouts, developers writing a parent_id data model, and writers who simply want to draft a long discussion in a structure that makes sense. The interface is inspired by the Comentr Show HN concept—a community plus forum discussion system built around deeply nested comments—and by the comment trees used by Hacker News, Reddit and classic forum software.
Why Thread Depth Matters More Than Comment Count
A thread with 60 comments can be healthier than a thread with 300. What matters is whether the replies form useful chains or simply pile up at the top level. When every comment is a root comment, each new voice restarts the conversation and earlier points get buried. When replies can nest, a follow-up question stays physically next to the claim it challenges, and a reader can skip an entire branch without losing the main thread.
Nesting has a cost, though. Every visual level consumes horizontal space; past roughly five levels on a phone, a paragraph becomes a column of three or four words. Deep trees also increase cognitive load, because readers must hold several parent comments in mind. The goal is not the deepest possible tree—it is a tree deep enough to preserve context and shallow enough to remain readable. That is exactly what the metrics in this tool help you judge.
How to Use the Thread Studio
- Post a top-level comment. Type a display name and your opening comment, then press Post comment or Ctrl + Enter. Each top-level comment becomes level 1.
- Reply to a specific comment. Press ↩ Reply on any card. The new comment becomes level 2 if it replies to a root, level 3 if it replies to a level-2 comment, and so on with no hard limit.
- Read the numbers. Total comments, deepest level, reply share and the depth score update after every change. The histogram shows how many comments sit at each level, which reveals whether discussion is genuinely branching or just stacked.
- Test the reading experience. Collapse branches, sort siblings oldest or newest first, and search for a phrase to see how easily a reader can relocate a point inside a long tree.
- Export and share. Copy Markdown for documentation, GitHub issues, Notion or a CMS, or download JSON to move the exact tree into your own forum database.
Reading the Four Numbers That Describe a Thread
Total comments and deepest level
The deepest level counts the longest chain from a root comment to its furthest reply. A post with five direct replies and nothing else has a deepest level of 2 (the post plus its replies), while a single argument that runs seven messages deep has a deepest level of 7. Neither number is good or bad on its own; together they tell you whether the community is having one long conversation or many short ones.
Reply share
Reply share is the percentage of comments that are replies rather than top-level posts. A value near zero describes an announcement feed where nobody answers anybody. A value above 70% describes a discussion where most contributions respond to something specific. Balanced communities often land between 55% and 85%.
Widest branch
The widest branch is the largest number of direct replies attached to one comment. High width means a single comment attracted many responses, which can be excellent (a popular question) or a warning sign (a pile-on). Width plus depth tells you the shape of the tree: a wide, shallow tree is a Q&A; a narrow, deep tree is a debate.
Depth score
The score blends the deepest level and the average depth per comment. Seventy percent of the score comes from the deepest level, where eight levels earns full marks, and thirty percent comes from average depth, where four levels earns full marks. The result is capped at 100. It is a planning heuristic, not a measure of comment quality: a thoughtful two-level thread can be far more valuable than a chaotic eight-level argument. Use it to compare layouts, not to grade people.
Worked Examples: Flat Feed vs Healthy Nesting
These three examples use the same formulas as the live tool, so you can reproduce every number by building the thread yourself.
| Thread | Comments | Deepest level | Average depth | Reply share | Depth score |
|---|---|---|---|---|---|
| A. Flat announcement feed | 40 | 1 | 1.00 | 0% | 16 |
| B. Small working thread | 9 | 4 | 2.33 | 66.7% | 53 |
| C. Deep community debate | 24 | 7 | 3.10 | 87.5% | 85 |
Example A contains 40 top-level comments and no replies. The deepest level is 1 and the average depth is 1.00, so the score is 70 × (1 ÷ 8) + 30 × (1 ÷ 4) = 8.75 + 7.5 = 16.25, rounded to 16. This is a noticeboard, not a conversation: every reader must restart from the top.
Example B has nine comments with depths of 1, 1, 1, 2, 2, 3, 3, 4 and 4. The total of the depths is 21, so the average is 2.33. Six of the nine comments are replies, giving a reply share of 66.7%. The score is 70 × (4 ÷ 8) + 30 × (2.33 ÷ 4) = 35 + 17.5 = 52.5, rounded to 53. This is the shape most support forums should aim for: a few roots, several answers, and one or two follow-ups.
Example C has 24 comments, 21 of them replies, a deepest level of 7 and an average depth of 3.10. The score is 70 × (7 ÷ 8) + 30 × (3.10 ÷ 4) = 61.25 + 23.25 = 84.5, rounded to 85. The conversation is genuinely nested, but level 7 is where mobile reading starts to hurt, so a sensible interface would cap the indent and offer a “continue this thread” link at that point.
Design Rules for Community Forums With Deep Comments
If you are building a Comentr-style forum or tuning an existing one, these rules prevent deep nesting from turning into an unreadable maze.
- Cap the indent, not the data. Store an unlimited parent chain, but stop adding visual indentation after five or six levels. Indent the card, not the text, and keep the reading column wide.
- Offer “continue this thread”. Beyond the cap, replace further indentation with a link that opens the branch on its own page or panel. The reader keeps context without losing screen width.
- Show who is being answered. A tiny “replying to @name” breadcrumb above a deep reply is worth more than another 20 pixels of margin. It prevents the classic mistake of reading a level-7 reply as a random top-level comment.
- Collapse deep branches by default on mobile. Show two or three levels, then a “view 12 more replies” control. Persist the collapsed state so a refresh does not reopen everything.
- Sort roots by activity, replies by time. Newest-first at the top level surfaces fresh discussions, while oldest-first inside a branch preserves the logic of an argument. Mixing the two creates confusion.
- Lazy-load and permalink every node. Deep threads can contain thousands of rows. Load branches on demand, and make each comment addressable by URL so moderators can link to exact context.
- Notify the direct parent, not the whole ancestor chain. Notifying every ancestor turns one lively thread into an inbox flood. Notify the direct parent and the thread starter, with an optional “follow this thread” toggle.
Exporting, Privacy and Editorial Workflows
The export buttons are designed for real work rather than screenshots. Markdown produces a nested bullet outline with the author, level and text of every comment, which pastes cleanly into GitHub, Notion, Google Docs or most CMS editors. JSON produces an array of nodes with id, parent, author, text and timestamp fields, ready to map onto a relational comments table or a document database.
Privacy is deliberately simple. Comment text never leaves the page: there is no account, no API call and no server-side database. The draft is written to your browser's localStorage so a refresh does not destroy your work, and the Clear thread button removes it. Because the tool runs entirely on your device, it is safe for drafting moderation scenarios, confidential community announcements or unpublished product discussions. Standard page analytics may count that the page was visited, but the content you type is never included.
For editorial teams, the depth score is a quick sanity check on structure before publishing a long interview or AMA recap. For developers, the JSON export doubles as a fixture for testing recursive rendering, pagination and collapse behaviour. For community managers, the histogram is an early warning: if 90% of comments sit at level 1, members are not finding the reply button, and that is a product problem rather than a moderation problem.
Common Mistakes to Avoid
- Unlimited visual indentation. The most common failure. Data depth can be infinite; pixels cannot.
- Hiding the parent context. If a reply opens on a new page without the comment it answers, the reader loses the thread.
- Paginating in the middle of a branch. Splitting siblings across pages breaks the conversation. Paginate whole branches, not individual replies.
- No search inside long threads. Readers should be able to jump to a phrase or author without collapsing everything by hand.
- Treating depth as a quality metric. A long argument is not automatically a good one. Depth describes shape, not value.