20 comments

  • boomlinde6 hours ago
    &quot;Sending a message to your mother should not require infrastructure comparable to a small bank.&quot;<p>To that end, requiring the use of GitHub for your application to work is a dead end.<p>&quot;Macaroni Messenger is a distributed messaging system&quot;<p>No.<p>&quot;The backend does not exist.&quot;<p>Unless by &quot;backend&quot; you mean the underlying infrastructure and server logic you&#x27;ve made the clients depend on for the exchange of messages to happen.
    • snowflaxxx6 hours ago
      That’s fair criticism of the current implementation.<p>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.<p>GitHub happens to provide one out of the box, which makes the proof of concept extremely easy to try.<p>If I need to run databases, message brokers, servers and monitoring just to send my mom “please cook macaroni”, I’ve already lost interest.
      • boomlinde5 hours ago
        <i>&gt; 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.</i><p>It&#x27;s sharing this advantage with every other free, third party managed communication service I can choose to depend on. It&#x27;s also sharing the weakness that it puts me at the mercy of whatever third party I am relying on. It introduces a new weakness in that the third party being relied on here never intended for their infrastructure to be used in this way.<p><i>&gt; If I need to run databases, message brokers, servers and monitoring just to send my mom “please cook macaroni”, I’ve already lost interest.</i><p>So don&#x27;t. To that end, what specific problem does this address that other free third party communication service providers don&#x27;t? My mother will have seen my email or SMS before you have instructed your mother on how to join GitHub and get an API token. We don&#x27;t even need to agree on or stick to a provider.
        • Hugsbox3 hours ago
          I don&#x27;t think this was meant to be taken as seriously as you seem to be taking it
          • boomlinde3 hours ago
            I&#x27;m directly addressing arguments made by the person I responded to. I&#x27;m not going to be taking you seriously, because you are not.
      • fartcoin671 hour ago
        [dead]
    • functionmouse28 minutes ago
      torrents need trackers but we still consider them peer to peer<p>crypto needs nodes but we still consider them decentralized<p>direct tcp&#x2F;ip communication still requires routing but etc
    • antran225 hours ago
      Saying that this doesn&#x27;t use a backend is like saying serverless app doesn&#x27;t run on a server
  • phcreery31 minutes ago
    This is not a bad idea ... for public team communication. This pretty much solves the &quot;Discord is not documentation&quot; and the dataloss in forum problems. If the communication was stored in the same place as the repostory, you are guaranteed to have saved and searchable messages. As a side-effect, AI can read all the past discussions for better &quot;1000% vibecoding&quot;
  • torginus7 hours ago
    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.
    • janilowski6 hours ago
      It&#x27;s very impractical.<p>- you get a slower first load (cannot progressively fetch resources as they&#x27;re needed) - can&#x27;t reuse a stylesheet, script or image on a different page (each has to have their own copy) - can&#x27;t cache commonly used files - can&#x27;t make granular changes to specific parts of the code. user has to reload everything each time. - can&#x27;t set a proper content security policy<p>And many more! It&#x27;s cool for a tiny demo but for anything serious you wouldn&#x27;t want a single (extremely ugly) HTML file.
      • hnlmorg6 hours ago
        I&#x27;m not advocating this development approach, but I also think some of your reasons aren&#x27;t particularly robust when scrutinized.<p>&gt; can&#x27;t reuse a stylesheet, script or image on a different page (each has to have their own copy)<p>Isn&#x27;t the point of a single HTML file that you don&#x27;t have different pages that would need to reuse those assets?<p>&gt; can&#x27;t cache commonly used files<p>You can still cache the HTML.<p>&gt; can&#x27;t make granular changes to specific parts of the code<p>Pretty sure text editors can edit text regardless of whether it&#x27;s a single file or multiple files.<p>&gt; can&#x27;t set a proper content security policy<p>I&#x27;d have thought a single page HTML file could negate the need for a CSP since you no longer have any resources accessible via a URI that you need to limit access to.<p>&gt; you wouldn&#x27;t want a single (extremely ugly) HTML file<p>Ugliness a subjective.<p>---<p>I think your first load point is the strongest one. But I&#x27;d also throw in &quot;it&#x27;s harder to develop a good single page HTML&quot;<p>You could probably mitigate some of that difficulty by having a build script (like static site compilers) but then you have to ask yourself if you&#x27;re introducing more complexity than you&#x27;re attempting to solve.
        • notpushkin5 hours ago
          If you need a build script, your app is probably too big to be a single .html already.<p>&gt; You can still cache the HTML.<p>But then any time you update <i>any</i> part of the app, the user has to re-download the whole thing. It is also a problem with many traditional frontend builds, but if you carefully split it into chunks, you can update parts of the app while most of it stays cached.<p>See e.g. Linear’s approach to vendor dependencies: <a href="https:&#x2F;&#x2F;performance.dev&#x2F;how-is-linear-so-fast-a-technical-breakdown#linears-bundler-arc-parcel-rollup-vite-rolldown" rel="nofollow">https:&#x2F;&#x2F;performance.dev&#x2F;how-is-linear-so-fast-a-technical-br...</a><p>---<p>The strong point of single .html apps is, of course, that you can run them locally without setting up a web server or anything, and deploy anywhere you want by just uploading it. But it is a fairly niche thing IMO.
          • calebm1 hour ago
            <a href="https:&#x2F;&#x2F;fuzzygraph.com" rel="nofollow">https:&#x2F;&#x2F;fuzzygraph.com</a> is a 1.4Mb Single HTML file that I have a build script for (<a href="https:&#x2F;&#x2F;github.com&#x2F;calebmadrigal&#x2F;fuzzygraph" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;calebmadrigal&#x2F;fuzzygraph</a>).
            • Barbing27 minutes ago
              Pretty graph! iOS Safari, takes just under a second probably to load each time I pan across the graph. Wonder what it’d take to bring it all the way to smooth scrolling—too demanding on resources?<p>Looking again, figure it has to do all the math again with each pan&#x2F;drag, so minor latency makes sense.
      • voidUpdate6 hours ago
        &gt; &quot;can&#x27;t reuse a stylesheet, script or image on a different page (each has to have their own copy)&quot;<p>Not a problem if you&#x27;re deploying a single file
      • pepa654 hours ago
        This is an example of a single html-file that I serve: <a href="https:&#x2F;&#x2F;basketball.4e4.in" rel="nofollow">https:&#x2F;&#x2F;basketball.4e4.in</a> It weighs in at around 30 KB including a favicon, and it&#x27;s quite functional.
        • Barbing19 minutes ago
          Nice. Is the spacing like this on your end? Some overlap- <a href="https:&#x2F;&#x2F;i.ibb.co&#x2F;3m9JKmC1&#x2F;Clock-Alignment.jpg" rel="nofollow">https:&#x2F;&#x2F;i.ibb.co&#x2F;3m9JKmC1&#x2F;Clock-Alignment.jpg</a>
      • tiborsaas5 hours ago
        In this case, it&#x27;s 45kbyte over the network. Instead of very impractical, we might agree that it can be not ideal for many apps, but it&#x27;s an interesting and valid way of &quot;packaging&quot; a tool &#x2F; service.<p>If someone chooses this deployment method, it&#x27;s likely that they have the ability to design with minimal resources.
    • calebm1 hour ago
      I&#x27;ve been trying to advocate for Single File Web Apps. I even tried to create a wikipedia page (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Draft:Single_File_Web_Apps" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Draft:Single_File_Web_Apps</a>), but it keeps getting rejected.<p>I created a couple Single File Web Apps: <a href="https:&#x2F;&#x2F;fuzzygraph.com" rel="nofollow">https:&#x2F;&#x2F;fuzzygraph.com</a> and <a href="https:&#x2F;&#x2F;hypervault.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hypervault.github.io&#x2F;</a>.
      • nashashmi25 minutes ago
        1. Start an SFWA competition as a joke. Then watch the submissions come in. First year it will be a handful. Second year it will be heavy.<p>2. Publish sfwa articles on wikia. Blog the development process.<p>3. A show page for sfwa creations.<p>Maybe the ideas above should be in reverse order?
    • andai7 hours ago
      I do this whenever possible. As a separate issue, I also aim for &lt;50KB whenever possible, e.g. I made a multiplayer browser game in 32KB and a LLM UI in 20KB.<p>That might just be an aesthetic choice on my part, but I often find that I am able to implement all the features I need in surprisingly few lines of code. e.g. the first version of my LLM UI was 200 lines and quite usable for my purposes.<p>And my OpenClaw clone was 50 lines. Just a Telegram wrapper around Claude, but turns out that&#x27;s all I needed.[0]<p>Also no dependencies, frameworks, libaries etc. Not a hard rule, but I find that they add negative value about 90% of the time, at least at my scale.<p>There are dozens of us! :)<p>[0] Of course, &quot;Claude Code&quot; isn&#x27;t 50 lines. Except, it turns out you can replace it in about 50 lines. From the SWE-bench folks: <a href="https:&#x2F;&#x2F;minimal-agent.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;minimal-agent.com&#x2F;</a><p>To this I added the missing outer loop (so it&#x27;s actually an agent a human can use) and vendored in a microscopic llm lib (yay no deps). <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;a-n-d-a-i&#x2F;bd50aaa4bdb15f9a4cc8176ee387b212#file-agent-py-L110" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;a-n-d-a-i&#x2F;bd50aaa4bdb15f9a4cc8176ee3...</a>
      • pepa654 hours ago
        Would be nice if you could make a version people can run in their browser..!
    • snowflaxxx7 hours ago
      You just described the Macaroni plugin system — plugins are literally appended as &lt;script&gt; tags before the closing &lt;&#x2F;html&gt; tag.
      • account425 hours ago
        Note that you don&#x27;t actually need a closing &lt;&#x2F;html&gt; tag.
    • Theodores6 hours ago
      Or as an SVG file. I have an interesting experiment that puts a sprites sheet, CSS and even some scripting in the favicon file. Since every browser wants some type of favicon anyway, why not overload it with fun stuff?<p>Sure the JavaScript won&#x27;t load in CSS or favicon mode, but it can be loaded into the Dom as well as exist in the CSS.<p>In my SVG file I have lots of CSS variables generated by the JavaScript, then saved as a big list in the SVG, enabling light&#x2F;dark mode things. SMIL animation too.<p>This experiment is based on what you described, an all in one HTML file.<p>In that experiment the CSS was getting clumsy due to the amount of SVG I had in there, so I put the CSS in the SVG for fun.<p>As for why, I am creating a modern version of an Embroidery sampler. These existed from centuries ago and served as a portfolio of sorts plus a reference on different stitches, such as how to do the alphabet.<p>So my SVG sampler has examples of how to do tricky things in SVG, with all of it human drawable and readable, so no massive paths, just simple primitives, clipped, masked, transformed and cloned to create all my icons, logos and clipart.<p>I hope to make SVG samplers a thing, so one SVG file and one HTML file to illustrate how it all works.<p>To be honest it has been an excellent learning experience and I can now do so many things with just the MDN reference for SVG as my guide.
  • kristopolous7 hours ago
    I made an interesting chat system as well: A way to sneak messages in through images for places where they otherwise wouldn&#x27;t exist... pretty different.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;kristopolous&#x2F;image-chat" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kristopolous&#x2F;image-chat</a>
  • andai7 hours ago
    I&#x27;m a fan of the license. <a href="https:&#x2F;&#x2F;www.wtfpl.net&#x2F;about&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.wtfpl.net&#x2F;about&#x2F;</a>
    • giancarlostoro59 minutes ago
      I find it funny, but prefer just MIT or CC0. I like the idea of the GPL for core OS components you don&#x27;t want to be locked down by anyone, but for everything else, unless you the developer intend to monetize so you can maintain it, MIT is fine (even if you intend to monetize it can be fine too).
    • ventana6 hours ago
      Besides other fun things about this license, using it effectively forbids Google employees to send patches to your projects. [1]<p>[1]: <a href="https:&#x2F;&#x2F;opensource.google&#x2F;documentation&#x2F;reference&#x2F;patching#forbidden" rel="nofollow">https:&#x2F;&#x2F;opensource.google&#x2F;documentation&#x2F;reference&#x2F;patching#f...</a>
      • jareklupinski3 hours ago
        TIL<p>&gt; The Hippocratic License is an ethical software license created to ensure that open source software is not used for harmful purposes, aligning with human rights principles
      • wvbdmp6 hours ago
        The paragraph doesn’t really explain the rationale for forbidding WTFPL and even Public Domain and CC0? They’re all fine for commercial use, aren’t they?
        • Hugsbox3 hours ago
          Only a guess, but it could be because WTFPL is effectively very similar to having no license at all from what I gather
        • andai6 hours ago
          I thought they were basically BSD&#x2F;MIT but even less annoying.
    • johanbcn6 hours ago
      &gt; changing it [the license] is allowed as long as the name is changed.<p>But what if that&#x27;s exactly what I want to do?
  • sbinnee1 hour ago
    I laughed at the 1000% vibecoded badge
    • giancarlostoro1 hour ago
      So now I have something to slap on my experimental vibe coded projects readme documents.
  • msyea6 hours ago
    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. <a href="https:&#x2F;&#x2F;type2fun.net&#x2F;infinitely-scalable-personal-apps" rel="nofollow">https:&#x2F;&#x2F;type2fun.net&#x2F;infinitely-scalable-personal-apps</a> I like the idea of building apps but skipping the infra burden&#x2F;costs.
  • ventana8 hours ago
    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&#x27;t read Russian) makes you realize that there&#x27;s probably something more than &quot;let&#x27;s implement a messenger using git remote as a storage&quot;, knowing how popular messenger apps are getting blocked in Russia.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;vanyapr&#x2F;makaroshki&#x2F;blob&#x2F;main&#x2F;PHILOSOPHY.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vanyapr&#x2F;makaroshki&#x2F;blob&#x2F;main&#x2F;PHILOSOPHY.m...</a><p>[2]: <a href="https:&#x2F;&#x2F;github-com.translate.goog&#x2F;vanyapr&#x2F;makaroshki&#x2F;blob&#x2F;main&#x2F;PHILOSOPHY.md?_x_tr_sl=ru&amp;_x_tr_tl=en&amp;_x_tr_hl=en&amp;_x_tr_pto=wapp" rel="nofollow">https:&#x2F;&#x2F;github-com.translate.goog&#x2F;vanyapr&#x2F;makaroshki&#x2F;blob&#x2F;ma...</a> (Google Translate)
    • Klaster_16 hours ago
      &gt;Macaroni Messenger is not a political statement. &gt;We are not trying to circumvent restrictions. &gt;We are not trying to circumvent restrictions. &gt;We are not trying to fight the laws.<p>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.<p>Cool project nevertheless, I like idea of an utility SPA distributed as bare HTML file that doesn&#x27;t even require a web server.
      • ventana6 hours ago
        There is a popular view in Russia, including within the software developers communities, that &quot;politics&quot; is something bad and dirty; people often ban &quot;politics&quot; in group chats and forums.<p>As a result, a highly technical person might work on a very complex solution to circumvent the restrictions but will declare (and probably even truly believe) that they are not making a political statement – as opposed to, for example, attending a protest, which is definitely considered a political action, or supporting a politician.
        • Klaster_15 hours ago
          Thanks for clarifying, that&#x27;s a pretty good summary. Russian developers experienced the same &quot;HN is not for politics&quot; kinds of reaction on Habr (russian HN, more or less) a decade ago, until politics came for them and Habr died. Before that, &quot;being outside of politics&quot; was a stance some people identified with because back then Putins regime didn&#x27;t repress as much and the situation was &quot;stable&quot;. Seeing a take like that still having its followers after our autocracy matured even more is disheartening and sad.
          • notpushkin5 hours ago
            &gt; Seeing a take like that still having its followers after our autocracy matured even more is disheartening and sad.<p>I suppose it’s more of a CYA nowadays than that. (Well, at least one can hope.)
    • ivvve7 hours ago
      Here&#x27;s the translated version I got (GH translate didn&#x27;t work for me for some reason).<p><a href="https:&#x2F;&#x2F;pastebin.com&#x2F;raw&#x2F;EPtJM5Dp" rel="nofollow">https:&#x2F;&#x2F;pastebin.com&#x2F;raw&#x2F;EPtJM5Dp</a>
      • andai7 hours ago
        Slightly better translation: <a href="https:&#x2F;&#x2F;markdownpastebin.com&#x2F;?id=fb9680965f42433fb3a4c6bf7a013414" rel="nofollow">https:&#x2F;&#x2F;markdownpastebin.com&#x2F;?id=fb9680965f42433fb3a4c6bf7a0...</a>
    • snowflaxxx8 hours ago
      The paradox is that Macaroni Messenger is absolutely a joke project.<p>But once you reduce everything to Git + JSON, adding things like PGP, age, signatures, encrypted attachments, or end-to-end encryption becomes surprisingly easy.<p>Which makes it even funnier.<p>At first glance it looks like a toy.<p>After a few minutes you start asking:<p>“Wait… why does this actually make sense?”<p>I think the protocol is a bit underestimated. People see the joke before they see the architecture.<p>There are some surprisingly interesting properties hiding behind the absurdity.<p>Maybe it’s a hidden gem.<p>Or maybe I’m just rationalizing a messenger implemented as a single HTML file.
      • notpushkin5 hours ago
        It does kinda make sense... until it doesn’t. It is a cool project from a tech standpoint, but it’s not practical when we have, well, email? (This is discussed elsewhere in the comments already, of course.)
  • littlecranky676 hours ago
    Nice idea. I would have expected it would use WebRTC for p2p client-to-client connection. A noted related project is Trystero [0] that uses all sort of external services to allow client-to-client discovery (such as Nostr, BitTorrent, Supabase etc.) - maybe a future project to combine the two.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;dmotz&#x2F;trystero?tab=readme-ov-file#how-it-works" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dmotz&#x2F;trystero?tab=readme-ov-file#how-it-...</a>
  • rcfox5 hours ago
    Seems kind of similar (at least in purpose) to giscus, a commenting system powered by GitHub Discussions.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;giscus&#x2F;giscus" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;giscus&#x2F;giscus</a>
  • vincnetas6 hours ago
    When docs say &quot;no backend&quot;, but git (GitHub) is actually your backend :&#x2F;
  • Hugsbox3 hours ago
    That README got a few solid chuckles out of me. :) Really cool project imo
  • _def5 hours ago
    Reminds me of a time when it was possible to &quot;deploy&quot; single HTML files via shorturl services by using base64 URI scheme
  • BrenBarn7 hours ago
    &quot;Single file&quot; is a bit misleading when it requires Github to do anything.
    • brazzy7 hours ago
      It&#x27;s kinda implicitly obvious that a <i>messenger</i> needs some kind of backend. Though admittedly using <i>Github</i> as a backend is such an unusual choice that I would consider it equally important to mention.
    • alhadrad7 hours ago
      And its why we cannot have nice things. This is likely a TOS violation of github.
      • snowflaxxx7 hours ago
        That’s fair, although GitHub is just the default transport because it requires zero setup.<p>The protocol itself isn’t tied to GitHub and works with any Git remote.<p>If GitHub ever decided this wasn’t an acceptable use case, swapping the remote would be trivial.
        • jogu7 hours ago
          Looking at the source I don&#x27;t think that&#x27;s true -- it&#x27;s using GitHub specific APIs to read&#x2F;write files. It&#x27;s not standard git so any remote wouldn&#x27;t work, and the mechanics are more akin to a key-value store than git really.<p>Not to say you couldn&#x27;t add a generic git protocol to this, just that that&#x27;s not being done here.
        • brazzy7 hours ago
          &gt; The protocol itself isn’t tied to GitHub and works with any Git remote.<p>&gt; If GitHub ever decided this wasn’t an acceptable use case, swapping the remote would be trivial.<p>Nope.<p>From the README:<p>&quot;GitHub is the only working write provider right now. GitLab, GitVerse, Gitea, Forgejo, and other git hosts are protocol targets for future adapters. Today they are not finished write adapters.&quot;
      • jogu7 hours ago
        I think it&#x27;s pretty clear from the readme that this is a humorous proof of concept more so than anything someone should seriously use.
        • snowflaxxx7 hours ago
          True, but imagine this use case:<p>A messenger file with hardcoded settings and a hardcoded PGP key, stored on a USB stick.<p>You send a message.<p>Then you physically destroy the USB stick.<p>The client, the key, and the configuration are gone.<p>At some point the joke starts looking suspiciously like a dead-drop communication protocol.<p>How do you like that, FBI?
        • andai7 hours ago
          From the translated readme:<p><i>Macaroni Messenger is not a joke. It simply refuses to complicate solutions unnecessarily.</i><p><i>That&#x27;s why some technical decisions might look like a joke.</i><p><i>Sometimes it really is a joke. But most of the time, it&#x27;s just the simplest working option.</i><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48487542">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48487542</a>
    • snowflaxxx7 hours ago
      [flagged]
  • antran225 hours ago
    &lt;critique&gt; OP keep saying the backend implementation doesn&#x27;t matter, it can be trivially switched to something other than Github. It&#x27;s not. The whole app you write revolves around Github&#x27;s HTTP endpoints. There&#x27;s no actual provider-agnostic Git operation in the code (for that you need to use isomorphic-git [1]). So a much more apt title for this should be: &quot;Macaroni - a chat UI in a single HTML file that stores messages data in a Github repo&quot; &lt;&#x2F;critique&gt;<p>I&#x27;m sorry to say this, but this whole thing reeks of vibeslop, and not just the code. The docs, the readme, even the replies of OP are at least Claude-assisted, if not fully Claude-generated.<p>And I&#x27;m trying not to be derisive about LLM generated output anyway. LLM generated output can be sane and meaningful and to the point. This is just a questionably-cool tech demo dressed up under a sensationalistic title.
  • utilize18086 hours ago
    So, browser = Java Runtime; uber HTML = applet?
  • fibo4 hours ago
    please do not propagate errors ... it is &quot;Maccheroni&quot;
    • tgv4 hours ago
      You might have heard of other languages. They tend to import words but adapt spelling and pronunciation. Sometimes even meaning. Your own language has them too. I also bet you spell quite a few place names and countries according to tradition, not by any official spelling.
  • filup3 hours ago
    Yes!<p>Now we need to build a messenger that uses pastebin exclusively as the backend.
  • triyambakam7 hours ago
    &gt; so the first screen does not burn unauthenticated GitHub API rate limit.<p>Claude loves this dumb word &quot;burn&quot;. Recently it even said &quot;burn a TOTP&quot; as if they are finite.