avatar
David Darnes @darn.es

Me when people ask what we *should* use

Khaby Lame, known for pointing out obvious solutions, pointing at the phrase “Browser APIs”
jul 25, 2025, 11:03 am • 35 5

Replies

avatar
Duffeh @duffeh.bsky.social

Waiting for someone asking do they just run NPM I browser-apis

jul 25, 2025, 4:18 pm • 6 0 • view
avatar
mb21 @mb21.bsky.social

While this is true, you still want: 1. routing (even if it’s just apache and some folders) 2. html includes/components (even if just PHP) In JavaScript-land I don’t think you can get much more minimal than this: github.com/mastrojs/mas...

jul 25, 2025, 1:31 pm • 0 0 • view
avatar
David Darnes @darn.es

Haha are you really pedalling your own JS framework? 😂

jul 25, 2025, 1:38 pm • 6 0 • view
avatar
mb21 @mb21.bsky.social

Yeah, looks like it 🙈 I really wanted to just use browser apis, but that’s what I still had to write. So I published it as yet another framework 😅 Or how do you do routing?

jul 27, 2025, 9:53 am • 0 0 • view
avatar
David Darnes @darn.es

Don’t need routing with a static site 😄

jul 27, 2025, 10:22 am • 1 0 • view
avatar
mb21 @mb21.bsky.social

Yes you do? Even if you just put html files in a folder you’re using apache or a cdn for routing. But more generally, a static site generator will usually have a file-based router.

jul 27, 2025, 11:05 am • 0 0 • view
avatar
David Darnes @darn.es

Those are pretty damn ubiquitous though right? And not something you need to reinvent unless you have a good reason right? Also my original reply was about *browser* APIs 🤷🏼‍♂️

jul 27, 2025, 11:37 am • 2 0 • view
avatar
mb21 @mb21.bsky.social

yeah, for me the reason to reinvent was that I needed it to run as a VSCode extension in the browser where you don’t have a real file system.

jul 27, 2025, 11:54 am • 0 0 • view