6 ms·
Thredded Forums – An engine for Ruby on Rails
- JOnAgain 5y agoThank you. I love discovering things like this on Hacker News.
- hombre_fatal 5y agoHeh, wonder what they used to generate the fake posts/threads in the demo forum. > Use the online RAM firewall, then you can override the neural protocol! > You can't parse the JSON without calculating the auxiliary AI pixel! Super clean and I always love the idea of drop-in forums that integrate with your application.
- nickjj 5y ago> Heh, wonder what they used to generate the fake posts/threads in the demo forum. Just by eyeballing a few of them it looks like the Ruby Faker gem https://github.com/faker-ruby/faker https://github.com/faker-ruby/faker. There's direct references to it such as the Stormtrooper line in https://github.com/faker-ruby/faker/blob/master/doc/movies/star_wars.md https://github.com/faker-ruby/faker/blob/master/doc/movies/s....
- jll29 5y agoThanks - it looks pretty but in terms of usability I prefer USENET news via Gnus client.
- cyberbanjo 5y agoWhere do you use USENET? Do you host your own and if so any resources about getting started? Edit: My curiosity regarding USENET was piqued after seeing DFeed on here, a forum front end to USENET, made for and in use at forums.dlang.org. https://github.com/CyberShadow/DFeed/ https://github.com/CyberShadow/DFeed/
- animex 5y agoWhy is it called an "engine"? Is that some new type of gem or package in Rails?
- albertgoeswoof 5y agohttps://guides.rubyonrails.org/engines.html https://guides.rubyonrails.org/engines.html
- burlesona 5y agoRails has the concept of “engines,” roughly small Rails apps that can be embedded in / composed into larger Rails apps. https://guides.rubyonrails.org/engines.html https://guides.rubyonrails.org/engines.html
- tomc1985 5y agoThey are like gems, but larger in scope and specific to Rails. You might call them plug-ins
- pkd 5y agoConfusingly, Rails also has plugins as a separate concept.
- byroot 5y agoNot since about a decade. Plugins were Rails 1-2 era.
- pkd 5y agoTrue, I have not seen them used anymore but the documentation still refers to them (https://guides.rubyonrails.org/plugins.html https://guides.rubyonrails.org/plugins.html) and the rails plugin new command still exists (on rails 6, at least. Don't have 7.x on this machine yet).
- donio 5y agoDespite the name this doesn't actually support proper nested threading in the way we think of it here or on Reddit, does it?
- jayroh 5y agoTo this point I ask - are Twitter "threads" nested?
- rhizome 5y agoThey are necessarily hierarchical, which is to say "yes, technically." I think the way that Twitter deals with this without any kind of expando functionality is one of the more interesting problems in mainstream UIs nowadays. This is not to say that it's working well or is using the best model, but it's a complicated problem.
- jayroh 5y agoDid not expect to see this show up on HN today (or ever for that matter). In any case, I wrote the original code for Thredded and it's since had the stewardship taken on by two very smart and capable gentlemen named Gleb and Tim. In recognition of the 1.0 release I wrote up a short blog post with a little history and background on the project (spoiler: the first version was born 21 years ago!), and congratulating the 2 guys for their work the last 5+ years. They've done an incredible job, and I only wish we'd all met 5 years before. https://joeloliveira.com/2022/03/04/weeknotes-for-the-week-ending-mar-4.html https://joeloliveira.com/2022/03/04/weeknotes-for-the-week-e...
- teh_klev 5y agoHow do you think you compare to Discourse?
- jayroh 5y agoDiscourse is a large, huge, very successful project and company but the direction they approached the goal of "open source messageboard/forum" was very different than the way Thredded did. I had hoped to make Thredded a drop-in solution -- they, Discourse, did not. I had hoped to make Thredded as vanilla and "boring" as possible -- they did not (a SPA [ember] on top of rails). In terms of features, the breadth of their product is larger, more complex, more opinionated. Thredded, on the other hand, hopes to get out of the way if and when you want it to (just look at what @druseph did with notebook.ai/forum). They did a great job, though. They built a sustainable business on the foundation of "internet messageboards" and for that I applaud them. That was always my goal and I never got there, sadly. That was my dream. In all fairness, it's been years since I've looked at Discourse so my assumptions may be out of date at this point. Take all this with a grain of salt.
- teh_klev 5y agoThanks for the reply. I'm tentatively in the market just now for a discussion forum app for a client and this posting on HN was somewhat serendipitous.
- drusepth 5y agoI've been using Thredded for years now on a relatively popular site (~250k users on Notebook.ai; our instance at https://www.notebook.ai/forum https://www.notebook.ai/forum) and have been extremely happy with its performance, scaling, and featureset. The devs behind it are super smart and care about code quality. Would definitely recommend if you need a drop-in discussion engine for your Rails app.
- nickjj 5y agoHow much caching are you doing and what are the CPU / memory / disk specs of you server if you don't mind me asking? I ping 15ms to your server but page load times are 500-600ms on most threads (10 or 3,000 replies doesn't make a difference). This is checking out the Rails app server response in dev tools.
- drusepth 5y agoPage load times around the site are probably pretty high because I don't do any caching (or, really, prioritize load speed in code), but right now I'm scaling between 1-4 of the $250/mo Performance-M dynos on Heroku (2.5GB RAM but other specs are hand-wavy) whenever my p95 goes above 1000ms. I have had some occasional backend issues in the bigger threads from things like notifying all users of responses in a 20k-post thread, but I think that's more on me for not having anything to scale up more workers as needed. In general though, most things Just Work.
- nickjj 5y agoThanks, that's impressive and exactly what I was hoping to see. Pretty much zero effort into making it faster but it's still decently fast and could probably get literally 10x faster if you wanted to cache a few things. Also surprisingly not that much RAM usage. Are you using Sidekiq too where this is included in the number of dynos you run? What's neat is (and I'm not recommend switching) it sounds like you could host a massively popular forum and throw it onto a single $48 / month DigitalOcean server with 8GB of memory and 4 CPU cores if you wanted to. I get wanting to use Heroku but for folks who are ok with self hosting that's really affordable for such a popular site that has quite a lot of writes.
- evolve2k 5y agoCan anyone recommend a similar rails tool for events management, attendance/ ticketing?
- nomilk 5y agoFor anyone (like me) who prefers a quick video demo: https://www.youtube.com/watch?v=vakfo0HqpQE https://www.youtube.com/watch?v=vakfo0HqpQE I use the length of a demo video as a first-order approximation for how much work is involved in getting something up and running. I happen to subscribe to DR, and can see the full video demo is 9 minutes, meaning it's probably quite painless. I will be trying Thredded soon!
- taylorhou 5y agoIs HN employing TikTok style algos now?! Literally have been discussing with our devs what we can use that's as off the shelf as possible for a HN style community. They said it would be best if it was built with RoR. I see this post randomly when I can't sleep at midnight.
- atmosx 5y agoYou might want to take a look at this project as well: https://github.com/lobsters/lobsters https://github.com/lobsters/lobsters It's the software that runs https://lobste.rs/ https://lobste.rs/ - a smaller community, similar to HN.
- ksec 5y agoThank You. I didn't know lobster is open source and it is running on Ruby Rails as well.