• 0 Posts
  • 5 Comments
Joined 6 months ago
cake
Cake day: July 3rd, 2025

help-circle
  • The mention of the ELK stack made me think of good ol’ LAMP stack (Linux, Apache, MySQL MariaDB and PHP/Python/Perl). That’s still a reasonable choice today for many, I would say. You can get quite far with this stack serving HTML and CSS, with some JavaScript added on top where you need it.

    If you search for LAMP stack alternatives you might get some more contemporary spins. Nginx is a quite popular Apache alternative. PostgreSQL is a popular MariaDB alternative. Pretty much any language has some variant of an HTTP server than can serve HTML responses, and a more or less vibrant ecosystem of libraries that makes it easier to do.

    You mention Python, something to look at there is Django. I’ve used it before and been quite happy with it, though Python isn’t the language I use most.

    In the JavaScript/TypeScript world there are perhaps too many options. One approach is to use a generic server library like Fastify or Express with a templating engine of your choice (f. ex. Liquid) to make the HTML writing part a bit simpler. Templates let you reuse fragments / components, loop over collections, add conditionals and such. For Fastify it’s via a plugin called @fastify/view. You can then use whatever view library you want (if you need one at all) for handling things in the browser, such as Svelte which another commenter mentioned.

    If you are interested in Svelte, something to look into there is SvelteKit. With that Svelte will be your “template engine” and it includes both server and browser functionality. Though depending on your needs it may also be overkill, solving for problems you don’t have.