News for hackers. Stuff that matters.
Re:Free static site generator for small restaurants and cafes by davisr on Tuesday December 02, 2025 @03:31PM (#46126415)
No one should need JS to see the soups when that could be handled perfectly fine with CSS. I wish restaurants would just make their homepage a PDF of the menu.
Re:Free static site generator for small restaurants and cafes by hunter2_ on Tuesday December 02, 2025 @04:17PM (#46126998)
I agree with no JS, but why PDF over HTML? Hard-wrapping for letter-sized paper (ok, a PDF doesn't need to be letter-sized, but most menus are approximately that) with crapshoot reflow options for soft-wrapping in certain viewer apps is pretty dicey on a phone, mitigated only slightly by rotating the phone sideways.

The only benefit I can think of is if it leads to more frequent updates by the restaurant, due to limited skillset.

Re:Free static site generator for small restaurants and cafes by ok123456 on Tuesday December 02, 2025 @07:05PM (#46128651)
If the restaurant doesn't have anything besides a menu, /index.pdf is fine—no web design required; reuse the menu they're printing anyway.

The trade-off is that they'll have to pinch/zoom if they have a small display. It's a minor inconvenience to make the exact information they want available instantly.

Re:Free static site generator for small restaurants and cafes by vector_spaces on Tuesday December 02, 2025 @09:39PM (#46129654)
index.pdf won't tend to play nicely with screen readers and also sucks for people on crappy mobile networks, so it's a minor inconvenience for some, and straight up unusable for others
Re:Free static site generator for small restaurants and cafes by ok123456 on Wednesday December 03, 2025 @12:14AM (#46130548)
> index.pdf won't tend to play nicely with screen readers

The horrible Wix sites most restaurants end up using are likely less accessible than a PDF. The Adobe PDF reader can reflow text.

> also sucks for people on crappy mobile networks

The average wysiwyg site builder produces bundles that are an order of magnitude larger than a PDF menu. Also, the PDF is easier to cache correctly and can be easily saved for offline access.

Re:Free static site generator for small restaurants and cafes by mpweiher on Wednesday December 03, 2025 @01:34AM (#46130910)
Why is Wix horrible...or why does it create horrible sites by default?

Curious, I haven't tried it.

Re:Free static site generator for small restaurants and cafes by hyperhello on Tuesday December 02, 2025 @10:07PM (#46129840)
But you can easily serve a desktop version or a small screen version.
Re:Free static site generator for small restaurants and cafes by neuroelectron on Tuesday December 02, 2025 @05:35PM (#46127901)
The complexity between the modern web and a pdf is marginal. PDFs do get printed for menus. Editing a PDF and uploading it to the site, integrating prices and syncing between the site, online ordering, PDF menus is just part of the business. There are lots of platforms that help with this such as Slice.
Re:Free static site generator for small restaurants and cafes by pastel8739 on Tuesday December 02, 2025 @09:38PM (#46129648)
I vastly prefer looking at a PDF menu over an HTML one nearly all the time. PDFs are usually nicely formatted, and I don’t mind zooming and panning to see everything. HTML is frequently terribly formatted, interspersed with ads, slow, etc
Re:Free static site generator for small restaurants and cafes by foogazi on Tuesday December 02, 2025 @10:37PM (#46130027)
> HTML is frequently terribly formatted, interspersed with ads, slow, etc

You can put ads into terribly formatted PDFs too

Re:Free static site generator for small restaurants and cafes by saghm on Wednesday December 03, 2025 @12:09AM (#46130524)
In theory, yes, but the parent comment is talking about what they've frequently encountered in practice. Maybe there's reason to expect that having a lot more PDFs of menus might not result in a similar experience, but it doesn't seem obvious to me at least
Re:Free static site generator for small restaurants and cafes by IAmBroom on Wednesday December 03, 2025 @10:19AM (#46135484)
Yes, and you can strap jet engines onto horses at the race track.

No one does either of those, IRL.

Re:Free static site generator for small restaurants and cafes by parpfish on Tuesday December 02, 2025 @10:18PM (#46129918)
Because they can make one nice pdf formatted to get printed out in the restaurant and then reuse it to display on the website
Re:Free static site generator for small restaurants and cafes by dugmartin on Tuesday December 02, 2025 @03:55PM (#46126747)
I agree. There are lots of free AstroJS themes for restaurants that generate static html that you can host somewhere like Firebase hosting for free.

- https://astro.build/themes/details/astropie/

- https://astro.build/themes/details/astrorante/

- https://astro.build/themes/details/tastyyy-restaurant-websit...

Re:Free static site generator for small restaurants and cafes by adzm on Tuesday December 02, 2025 @04:09PM (#46126910)
I love Astro; there is so much you can do with it.
Re:Free static site generator for small restaurants and cafes by bryanhogan on Tuesday December 02, 2025 @06:49PM (#46128538)
I was going to recommend the same! Astro + Astro theme + an LLM will get you very far these days.
Re:Free static site generator for small restaurants and cafes by riveralabs on Tuesday December 02, 2025 @08:06PM (#46129063)
I used to be all in on Jekyll. Now all I use is Astro + Tailwind + Claude, and it’s magic. No need for a theme with this combination.
Re:Free static site generator for small restaurants and cafes by burningChrome on Tuesday December 02, 2025 @06:59PM (#46128610)
All of my static sites that I've built lately have been done on Netlify. Super easy to hook up to Github and the form handling is a breeze. I've known Mathias going back to when he was personally answering emails and promoting JAMSTACK so you can say I'm a bit biased. lol

Netlify is a great company that I'll always support.

Re:Free static site generator for small restaurants and cafes by stronglikedan on Tuesday December 02, 2025 @03:45PM (#46126584)
A PDF can't get the user halfway through the delivery process before seeing the soups.
Re:Free static site generator for small restaurants and cafes by cess11 on Tuesday December 02, 2025 @04:34PM (#46127173)
The soup shows for me without JS.
Re:Free static site generator for small restaurants and cafes by mvdtnz on Tuesday December 02, 2025 @04:35PM (#46127184)
No one is browsing the internet without JS today (within margin of error). Whether or not this "should" be the case, it is.
Re:Free static site generator for small restaurants and cafes by spartanatreyu on Tuesday December 02, 2025 @07:28PM (#46128811)
This is the wrong way of looking at it.

Making a website's basic functionality work without JS isn't just for the random users who switch off their browser's JS runtime.

It's also for the people who have a random network dropout or slowdown on a random file (in this case a JS file).

Re:Free static site generator for small restaurants and cafes by handoflixue on Tuesday December 02, 2025 @08:12PM (#46129098)
> It's also for the people who have a random network dropout or slowdown on a random file (in this case a JS file).

Does that really apply when the javascript is only ~2kb?

Re:Free static site generator for small restaurants and cafes by spartanatreyu on Tuesday December 02, 2025 @10:31PM (#46129988)
Yes, any request can get stuck at any time.

That is what's happening any time you've seen a website that randomly decides to load without styles, or with a missing image.

The good thing is that it's very apparent when that happens and you can just reload the page.

But it's not immediately obvious when it happens with a JS file.

That's half the reason why you shouldn't re-implement css features in a js file. (the other half is performance)

Re:Free static site generator for small restaurants and cafes by justsomehnguy on Wednesday December 03, 2025 @12:44AM (#46130679)
Do the end user should troubleshoot if that was a network dropout, some browser incompatibility or just a crappy code by a crappy coder?

> the javascript is only ~2kb?

It can be even 200Mb if it's not loaded properly and now a website doesn't even function.

Re:Free static site generator for small restaurants and cafes by lmm on Wednesday December 03, 2025 @12:42AM (#46130671)
Then why does that same logic not apply to the CSS file?
Re:Free static site generator for small restaurants and cafes by spartanatreyu on Wednesday December 03, 2025 @06:25PM (#46141717)
I mentioned that in my other comment.

When CSS doesn't load, it's immediately apparent and the user knows they need to reload the page.

Re:Free static site generator for small restaurants and cafes by lmm on Wednesday December 03, 2025 @08:55PM (#46142849)
Isn't that exactly the opposite of the "progressive enhancement" philosophy anti-Javascript people tend to claim to subscribe to?
Re:Free static site generator for small restaurants and cafes by spartanatreyu on Thursday December 04, 2025 @06:21PM (#46154641)
How?

It doesn't have anything to do with progressive enhancement.

Re:Free static site generator for small restaurants and cafes by lmm on Thursday December 04, 2025 @08:39PM (#46155871)
> How

You're saying that when the enhancement doesn't work, it's desirable that "it's immediately apparent and the user knows they need to reload the page". That's the opposite of what progressive enhancement people normally argue for.

Re:Free static site generator for small restaurants and cafes by lmm on Wednesday December 03, 2025 @12:43AM (#46130676)
From a business perspective you can go further: the people who are browsing the internet without JS are people who are going to cost you more to support than they'll ever bring you in revenue. Just like trying to support Linux gamers, excluding them is a net positive.
Re:Free static site generator for small restaurants and cafes by fullstacking on Tuesday December 02, 2025 @04:57PM (#46127474)
To be fair this project uses zero 3rd party npm modules for runtime. The total runtime JS it uses is 1.76kB in size.
Re:Free static site generator for small restaurants and cafes by Groxx on Tuesday December 02, 2025 @11:12PM (#46130229)
It also works just fine without JavaScript, so I'm not sure what they're trying to do with that comment.
Re:Free static site generator for small restaurants and cafes by hunter2_ on Tuesday December 02, 2025 @11:42PM (#46130388)
No, the comment correctly points out that the "Soup" button (and all of its siblings... the food categories) is inoperable when JavaScript is disabled. You're stuck with "All" instead of nice filtering. There are ways to achieve this without JavaScript.
Re:Free static site generator for small restaurants and cafes by Groxx on Wednesday December 03, 2025 @10:14PM (#46143391)
ah, gotcha. that would be nice, but tbh it seems rather minor? anyone who knows how to disable javascript (an extremely-clear "power user" signal) can probably be expected to know how to search a page too.
Re:Free static site generator for small restaurants and cafes by hunter2_ on Wednesday December 03, 2025 @10:23PM (#46143455)
It's just peculiar especially since the repo readme [0] specifically says "Minimal JavaScript - Only when truly needed" and yet it's used for this food category filtering, a feature for which JS is certainly not truly needed.

[0] https://github.com/Local-Cafe/localcafe-lite?tab=readme-ov-f...

Re:Free static site generator for small restaurants and cafes by pimlottc on Tuesday December 02, 2025 @05:06PM (#46127594)
PDF is a terrible experience on mobile
Re:Free static site generator for small restaurants and cafes by ErroneousBosh on Tuesday December 02, 2025 @05:39PM (#46127939)
PDF is an enormous pain in the tits to view on a phone and has significant accessibility issues for people using assistive technologies.

It's not even about blind people. People with ADHD or dyslexia use assistive technology, which frequently makes an absolute horlicks of interpreting PDF. It's one of the reasons I'm trying to move a lot of documentation at work away from PDF and onto just straight HTML.

Plain old HTML, with thin CSS on it to make it not be black-and-white Times New Roman. Kicking it oldschool.

Re:Free static site generator for small restaurants and cafes by nottorp on Wednesday December 03, 2025 @02:48AM (#46131373)
> People with ADHD or dyslexia use assistive technology

Wait for 2 more iOS redesigns and everyone will use assistive technology on Apple devices :)

Re:Free static site generator for small restaurants and cafes by victorbjorklund on Tuesday December 02, 2025 @05:48PM (#46128016)
PDF:s are not great on mobile. And you can’t easily translate them (I often translate restaurant menus when they are on a website with just 2 clicks)
Re:Free static site generator for small restaurants and cafes by AlotOfReading on Tuesday December 02, 2025 @07:06PM (#46128664)
Translating anything that renders on my screen is the same two clicks to open an LLM with the screen contents. I expect that will become an increasingly universal experience as LLM features get shoved into every nook and cranny of tech.
Re:Free static site generator for small restaurants and cafes by refactor_master on Tuesday December 02, 2025 @08:28PM (#46129203)
There's been a translate button for years which hooks deep into every nook and cranny of the website's HTML. It works great, it's built in and many restaurants even advertise it for tourists, because it's a zero-effort translation of their existing menu. Plus, it's low-data when you're inside a 1-bar basement restaurant.

Using an LLM to translate the visible part of a PDF on a mobile... seems like the worst possible solution to the problem.

Re:Free static site generator for small restaurants and cafes by noosphr on Tuesday December 02, 2025 @10:19PM (#46129924)
It's the worst solution, apart from the fact it works better than all the other solutions.
Re:Free static site generator for small restaurants and cafes by jmyeet on Tuesday December 02, 2025 @08:29PM (#46129208)
Translating PDFs is more complicated than that because the strcture of a PDF document doesn't lend itself well to this kind of thing.

For example: if there's a dish name with a 2 line description below it and some allergy symbols below that, in HTML you can imagine the document structure that produces that. In PDF terms that might be 4 separate objects and, in particular, the eyes can see the two lines are adjacent so they fit together but the document structure doesn't really represent it taht way, necessarily.

This might also not work with translation because the lines are set for the size of the text they contain. Same for resizing the font.

Put another waay, PDF should be viewed as a typeset and layout format, not a document format.

Re:Free static site generator for small restaurants and cafes by AlotOfReading on Tuesday December 02, 2025 @09:00PM (#46129436)
I think you're misunderstanding what I'm describing. It's getting a screenshot of the visible portion of the rendered document, not the document itself with all the tags and nastiness inside. The same feature works with a photo of handwritten text, where obviously no digital document exists. It's not perfect, but usually adequate for menu translation.
Re:Free static site generator for small restaurants and cafes by victorbjorklund on Wednesday December 03, 2025 @03:46PM (#46139890)
With a website you don’t need to switch an LLM. You just press translate.
Re:Free static site generator for small restaurants and cafes by venturecruelty on Tuesday December 02, 2025 @07:19PM (#46128760)
No one should need an entire PostScript interpreter to see the soup of the day, either. A restaurant menu is text and images. HTML and CSS are perfect for text and images.
Re:Free static site generator for small restaurants and cafes by andai on Tuesday December 02, 2025 @10:52PM (#46130126)
Nobody should need 60 million lines of code (Linux Kernel 30M + Chromium 30M) to render some text and images ;)
Re:Free static site generator for small restaurants and cafes by BrenBarn on Wednesday December 03, 2025 @03:47AM (#46131937)
640K ought to be enough for anybody.
Re:Free static site generator for small restaurants and cafes by lioeters on Wednesday December 03, 2025 @05:44AM (#46132930)
I bet that's part of the reason why microcontrollers, embedded programming, and retro computing are all popular hobbies these days. A return to a simpler time, when programs are compiled to a few kilobytes and run as fast as the hardware allows. Graphics? Unicode? Who needs 'em, just a stream of ASCII and integers for me thanks.
Re:Free static site generator for small restaurants and cafes by pif on Wednesday December 03, 2025 @07:49AM (#46133893)
Unicode is a must in a human facing application, even in those countries where English is spoken by the majority of people.
Re:Free static site generator for small restaurants and cafes by ale42 on Wednesday December 03, 2025 @06:22AM (#46133209)
I'm waiting for restaurants I can telnet into to get the menu (because SSH is too heavy).
Re:Free static site generator for small restaurants and cafes by IAmBroom on Wednesday December 03, 2025 @10:18AM (#46135474)
640K is enough to read a menu.
Re:Free static site generator for small restaurants and cafes by samdoesnothing on Tuesday December 02, 2025 @07:30PM (#46128831)
Nobody should need a PDF renderer to see the soups.

Actually, nobody should need an XML parser to see the soups either.

Re:Free static site generator for small restaurants and cafes by glxxyz on Tuesday December 02, 2025 @08:00PM (#46129024)
Remember during Covid where every restaurant's menu was a QR code on the table that linked to a PDF in S3?
Re:Free static site generator for small restaurants and cafes by yieldcrv on Tuesday December 02, 2025 @08:56PM (#46129405)
Remember how after Covid that didn't go away in tons of places
Re:Free static site generator for small restaurants and cafes by foresto on Tuesday December 02, 2025 @11:16PM (#46130242)
Covid ended?
Re:Free static site generator for small restaurants and cafes by hunter2_ on Tuesday December 02, 2025 @11:45PM (#46130393)
Re:Free static site generator for small restaurants and cafes by fullstacking on Tuesday December 02, 2025 @08:05PM (#46129059)
No one should need PDFs to see the soups when they can be handled perfectly fine with CSS scoped to print and save to PDF....

/s

Re:Free static site generator for small restaurants and cafes by DoctorOW on Wednesday December 03, 2025 @02:38AM (#46131313)
What an exhausting solution to a made-up problem. This is exactly the kind of functionality JS was made to provide. There's a lot more JS in the PDF.js renderer modern browsers, and if you're not using a modern browser it likely wouldn't render at all. As others have pointed out, you're asking restaurants to throw away mobile traffic, screen readers, anyone not on a mainstream desktop browser to save ~20 lines of code in a programming language you don't like.
Re:Free static site generator for small restaurants and cafes by ThomasMidgley on Wednesday December 03, 2025 @02:41AM (#46131327)
I wish restaurants would just make a homepage with menu _and_ opening hours.

In my area most restaurants have no website.

If they have a website it's often very hard to find their opening hours. Under 'contact'? Nope! At the footer? Nay! Maybe somewhere hidden in the menu PDF? With luck... Outside their homepage at google maps? Maybe. On their Tripadvisor page? Hahaha! Funny! Not.

Re:Free static site generator for small restaurants and cafes by ChrisRR on Wednesday December 03, 2025 @07:53AM (#46133920)
As an embdded engineer I'm always disappointed at how much processing power and RAM is needed just to display websites with just images and text. The vast majority of them do not need javascript