Live data from Hacker News

Macaroni – a single HTML file messenger

github.com

21–30 of 93 posts

Re: Macaroni – a single HTML file messenger

#21
post #5

"Single file" is a bit misleading when it requires Github to do anything.

It's kinda implicitly obvious that a messenger needs some kind of backend. Though admittedly using Github as a backend is such an unusual choice that I would consider it equally important to mention.

Re: Macaroni – a single HTML file messenger

#22
post #10
post #8

Earlier quoted context omitted.

And its why we cannot have nice things. This is likely a TOS violation of github.

I think it's pretty clear from the readme that this is a humorous proof of concept more so than anything someone should seriously use.

True, but imagine this use case:

A messenger file with hardcoded settings and a hardcoded PGP key, stored on a USB stick.

You send a message.

Then you physically destroy the USB stick.

The client, the key, and the configuration are gone.

At some point the joke starts looking suspiciously like a dead-drop communication protocol.

How do you like that, FBI?

Re: Macaroni – a single HTML file messenger

#23
post #3

It just looks like a funny slop project if you read the English readme, but reading the Russian PHILOSOPHY.md [1] (auto-translated [2] if you don't read Russian) makes you realize that there's probably something more than "let's implement a messenger using git remote as a storage", knowing how popular messenger apps are getting blocked in Russia. [1]: https://github.com/vanyapr/makaroshki/blob/main/PHILOSOPHY.m... [2…

>Macaroni Messenger is not a political statement. >We are not trying to circumvent restrictions. >We are not trying to circumvent restrictions. >We are not trying to fight the laws.

This is talking politics without talking politics. The project literally attempts to circumvent russian censorship restrictions and their spirit. This is either a joke the file talks about or naive CYA.

Cool project nevertheless, I like idea of an utility SPA distributed as bare HTML file that doesn't even require a web server.

Re: Macaroni – a single HTML file messenger

#24

I wonder why this type of deployment is not more popular - pushing all resources inside a single HTML file, with a script tag, and inline resources as blobs.

It's very impractical.

- you get a slower first load (cannot progressively fetch resources as they're needed) - can't reuse a stylesheet, script or image on a different page (each has to have their own copy) - can't cache commonly used files - can't make granular changes to specific parts of the code. user has to reload everything each time. - can't set a proper content security policy

And many more! It's cool for a tiny demo but for anything serious you wouldn't want a single (extremely ugly) HTML file.

Re: Macaroni – a single HTML file messenger

#25
"Sending a message to your mother should not require infrastructure comparable to a small bank."

To that end, requiring the use of GitHub for your application to work is a dead end.

"Macaroni Messenger is a distributed messaging system"

No.

"The backend does not exist."

Unless by "backend" you mean the underlying infrastructure and server logic you've made the clients depend on for the exchange of messages to happen.

Re: Macaroni – a single HTML file messenger

#27

I wonder why this type of deployment is not more popular - pushing all resources inside a single HTML file, with a script tag, and inline resources as blobs.

It's very impractical. - you get a slower first load (cannot progressively fetch resources as they're needed) - can't reuse a stylesheet, script or image on a different page (each has to have their own copy) - can't cache commonly used files - can't make granular changes to specific parts of the code. user has to reload everything each time. - can't set a proper content security policy And many more! It's cool for a…

> "can't reuse a stylesheet, script or image on a different page (each has to have their own copy)"

Not a problem if you're deploying a single file

Re: Macaroni – a single HTML file messenger

#29

"Sending a message to your mother should not require infrastructure comparable to a small bank." To that end, requiring the use of GitHub for your application to work is a dead end. "Macaroni Messenger is a distributed messaging system" No. "The backend does not exist." Unless by "backend" you mean the underlying infrastructure and server logic you've made the clients depend on for the exchange of messages to happen.

That’s fair criticism of the current implementation.

The idea isn’t that transport magically disappears. The idea is that users don’t have to deploy, operate, pay for, or even think about transport.

GitHub happens to provide one out of the box, which makes the proof of concept extremely easy to try.

If I need to run databases, message brokers, servers and monitoring just to send my mom “please cook macaroni”, I’ve already lost interest.

Re: Macaroni – a single HTML file messenger

#30
Nice idea. I recently published an article with a different twist. Static Vite+React site but all the backends are via OAuth PKCE and your customers bring their own. https://type2fun.net/infinitely-scalable-personal-apps I like the idea of building apps but skipping the infra burden/costs.
Post reply on HN