Interesting; I did a whole bulletin board, probably about ten years ago, and if you’ll allow it, I have some design-tips I learned from it:
The Indefinite_Multiway_Tree is excellent for a comemnt-format;
Just remember that the Root is not “yours”, and everything that is is a child of “Root”. (IIRC: In my construction all top-level comments were children of Root, with replies being non-first children thereof [the first-child was the message-proper].)
You can forgo the “Bobby Tables” problem by:
Moving the formatting to a non-textual type (eg a tagged type w/ an enumeration for your formattings, with only Text having a variant payload)
[eg Type Formatting is (Bold, Italic, […], Text);],
[eg Type Comment_Node( Format : Formatting ) is abstract tagged Tree_Node with null record;]
Using the tree structure to ensure/enforce good formatting [eg bold text is a text node under a bold node],
Text nodes, the textual portions of the comment/post, are appropriately escaped [or rejected] on-generation/-creation.
If you ever need another format, eg PDF, then this form allows you to use/add an To_PDF function alongside the To_HTML rendering function, eliminating the need to introduce things like an HTML-to-PDF dependency in the application.
I did think of making a message board out of my web comments backend. It does seem like a message board would be a few adjustments away.
The other major change I’ve contemplated was offering the backend service to my friends. But I’m somewhat certain they would want a log-in (auth) to manage their blog posts, etc.
I had looked into AWS since AI recommended it and gave some starter code but it is deprecated:
There are several other solutions, though I can’t think of them off the top of my head. One thing to be cognizant of, though, is GNOGA [Link 1, Link 2] — while it can be used, is more of a UI-using-the-browser-as-a-viewport than it is “web solution”, at least as per its own design-philosophy.