Lurker News
Hello HN!

I've found my SQL knowledge to be lacking, so I made a project that uses SQLite as a backend.
As it is intended for self-hosting I aim to make it easy to set up and maintain. Getting it up & running takes no more than a few commands (bar setting up a proxy such as nginx, which is out of scope).
I've set up a "demo" site at https://forum.agreper.com/ if you want to try out the UI.

Comments (155) 36 threads

Earlier comments
ad404b8a372f2b92 replies#
I love it. And it's telling of modern practices that it's one of the fastest forum I've used in the past few years, you click and the page instantly appears!

Do you intend to extend it and keep working on it or was it just a one off project?

lolinder2 replies#
> And it's telling of modern practices that it's one of the fastest forum I've used in the past few years, you click and the page instantly appears!

"Modern practices make for slow apps" is a common trope on HN, but it's important to note that it's not just modern practices that make modern web apps feel slow; modern feature sets are the larger culprit.
This app could be a React SPA and it would still be faster than most forums you've used because it intentionally has a minimal feature set.

GoblinSlayer#
Feature set is absolutely design practice.
ad404b8a372f2b91 reply#
I don't buy that for a second to be honest.

Modern forums haven't innovated all that much, you have infinite scrolls, notifications and live updates, that's all that I can think of, off the top of my head. If you go on the main page of a modern forum and a Phpbb one they'll be functionally equivalent for the end user.
And even if they had innovated, you can put as big a feature set as you want on the backend and not send 20Mb of JavaScript along with a single request per post and your page will load instantly.
And that's not even going into all the websites which are entirely featureless, I regularly see SAAS landing pages that take over a minute to fully load, that's just to display text and images.
Maybe the stack is capable of being fast and light theoretically but it never is in practice.

lolinder1 reply#
> Modern forums haven't innovated all that much...

I'm not comparing modern forums to older forums, I'm comparing both types of forum to OP's minimal forum.
> And even if they had innovated, you can put as big a feature set as you want on the backend and not send 20Mb of JavaScript along with a single request per post and your page will load instantly.
You have to distinguish between initial page loads and subsequent interactions. Forums are not typically one-page-and-done websites: you spend a lot of time navigating around the different views.
For this use case, phpBB forums were and are very slow.
I tested out the phpBB demo [0] and compared it with the Discourse demo [1]. The Discourse demo has a slow initial load, but it's quite snappy after you've downloaded the 6.23mb (not 20mb!) of JS and CSS. The phpBB demo seems faster on the initial page load, but it gets pretty painful to navigate as you click around into different sub-forums.
The reason why the OP's no-JS forum can outperform both phpBB and Discourse is primarily that it doesn't do very much work on each user action, not that its stack is inherently superior. The biggest bottleneck in a forum will be the speed of each request-response cycle, not whether the requests return JSON or HTML.
[0] http://www.try-phpbb.com/33x/index.php
[1] https://try.discourse.org/

Continue this thread — 1 reply

demindiro#
I will keep working on it. There is a lot more interest than I anticipated.
ftth_finland2 replies#
I dislike forums which indent successive replies.

I hate forums which indent replies and don’t support collapsing sub-threads.
The proper way of handling replies is to post them under each other and support quoting.

demindiro2 replies#
> I hate forums which indent replies and don’t support collapsing sub-threads.

[-] should collapse subthreads. Caveat is that the browser doesn't remember which subthreads were collapsed due to no-JS.

have_faith2 replies#
Not if each "collapse" link reloads the page and at the same time stores the preference in the backend against your username so that subsequent page loads know what to hide (:
veidr7 replies#
LOL you are so right... so much was lost when we started accepting that page reloads are expensive (T_T)

Continue this thread — 7 replies

XCSme#
Can't you redirect/store the information in the URL and then somehow read the URL data in CSS?
ftth_finland#
I stand corrected.

I did not recognize the [-] as it looks like some weird emoji on my mobile browser due to the too small and uncentered background.

MetaWhirledPeas2 replies#
That's just, like, your opinion man. I prefer HN's indented approach to a typical forum listing where it's just a firehose with quotes. But the best approach is to allow the view to be switched as desired.
eterm1 reply#
HN's model is bad for high volume. Sometimes on HN you only get one top level reply on the whole page because once it puts the top top-level reply it then puts all the replies to that above the next top-level reply.

So you get a vast amount of low quality replies above the next high-quality reply.
For low volume it works okay because you can manually collapse but for high volume once it starts paging it breaks down and you just get further into the top level comment without properly being able to escape.
Reddit's model of auto-collapsing so you get a mix of threads and top-level replies is much better for picking out the better responses.

Continue this thread — 3 replies

JasonFruit1 reply#
The problem with letting users choose the view is that the chosen view affects how they write. If I can see it's obvious in my tree view who I'm responding to, I won't point it out, and then someone who uses the firehose view won't be able to follow the conversation.
taink2 replies#
I feel the main problem wouldn't be this (if you handle quotes to show in a tree view then surely you can handle replies in a tree view to show quotes in a firehose).

However, the main issue is that when you can quote multiple comments (when you are in a firehose view) you tend to send a single post for multiple replies; I have no idea how that could be shown in the tree view.
Essentially a firehose is a superset of a tree structure, if your unit is a post.

Continue this thread — 2 replies

derekzhouzhen1 reply#
What innovation do you have to make a moderator's job easier?

I ask because I believe this is the hardest part of a forum software; The one thing that make or break a community is whether there is timely and fair moderation so contents are fresh and relevant.

demindiro#
Currently there aren't many moderation features - only banning and removing threads & comments are implemented right now. Registrations can be disabled by the admin.

I will definitely focus on having good moderation features as I also believe it is essential for a healthy forum.

zhte415#
Looks great. If you wanted to extend it with JS, HTMX or lightweight functions easily added to Flask, which is imho the right way for CRUD.

And specifically, looks great - clearly outlined, threaded, indented, flow of conversation.

Load more comments