Live data from Hacker News

Ask HN: What is your preferred light weight stack for personal projects?

news.ycombinator.com

1–10 of 29 posts

Re: Ask HN: What is your preferred light weight stack for personal projects?

#2
Client / Server Web App: Node.JS, Bang.html[0], the filesystem

Native downloadable executable desktop GUI application: Node.JS, GraderJS

CLI app: ??? Don't know yet, GraderJS can work but it's focused around GUI

Mobile app: ??? Don't know yet

Embedded: ??? Don't know yet

Graphics: Processing (but surely there are much better options nowadays)

AI: ??? Don't know yet

[0]: https://github.com/crisdosyago/bang.html/

[1]: https://github.com/crisdosyago/graderjs/

Re: Ask HN: What is your preferred light weight stack for personal projects?

#4
After building SPAs in next.js and blogs in Hugo, I finally settled on the simplest stack: Caddy+Markdown/HTML templates

I’ve talked about it more here: https://notes.alinpanaitiu.com/How%20I%20write%20this%20blog...

But the gist is that you have a Caddyfile like:

    http://localhost, notes.alinpanaitiu.com {
        root * /static/notes/
    
        file_server
        templates {
            mime text/html text/plain text/xml
        }

        encode zstd gzip

        try_files {path} /index.html?path={path}
    }
…and any .md inside /static/notes will be rendered to HTML, plus any .html/.xml will support Go template syntax.

This comes with the benefit of automatic HTTPS, asset compression and a one binary server.

Deploying is as simple as copying the folder with the Caddyfile and assets to my public server and running “caddy run”

Re: Ask HN: What is your preferred light weight stack for personal projects?

#7
post #4

After building SPAs in next.js and blogs in Hugo, I finally settled on the simplest stack: Caddy+Markdown/HTML templates I’ve talked about it more here: https://notes.alinpanaitiu.com/How%20I%20write%20this%20blog... But the gist is that you have a Caddyfile like: http://localhost, notes.alinpanaitiu.com { root * /static/notes/ file_server templates { mime text/html text/plain text/xml } encode zstd gzip try_files {p…

This is the kind of content I come to HN for. I love that you found a solution that works best for you. Hopefully many other iPhone owning, train commuters with thoughts worth sharing pick this up. :)

Re: Ask HN: What is your preferred light weight stack for personal projects?

#8
post #4

After building SPAs in next.js and blogs in Hugo, I finally settled on the simplest stack: Caddy+Markdown/HTML templates I’ve talked about it more here: https://notes.alinpanaitiu.com/How%20I%20write%20this%20blog... But the gist is that you have a Caddyfile like: http://localhost, notes.alinpanaitiu.com { root * /static/notes/ file_server templates { mime text/html text/plain text/xml } encode zstd gzip try_files {p…

This is the kind of content I come to HN for. I love that you found a solution that works best for you. Hopefully many other iPhone owning, train commuters with thoughts worth sharing pick this up. :)

Thank you ^_^

Re: Ask HN: What is your preferred light weight stack for personal projects?

#9
post #5

I am using old school php like this: ``` And tags of course, with vanilla JS. Super quick and reliable. No layers.

This seems great for ultra lightweight applications. Do you ever lean into a framework for more advanced functionality? I don't think I'd ever want to handle user 2fa authentication in a tag for example.
Post reply on HN