<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: firebonuses</title>
    <description>The latest articles on DEV Community by firebonuses (@firebonuses).</description>
    <link>https://dev.to/firebonuses</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4007167%2F5d77a4d0-b207-40a3-81d6-35dabd38e69b.png</url>
      <title>DEV Community: firebonuses</title>
      <link>https://dev.to/firebonuses</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/firebonuses"/>
    <language>en</language>
    <item>
      <title>The link is the app: building account-free micro-apps with vanilla JS, Netlify, and Supabase</title>
      <dc:creator>firebonuses</dc:creator>
      <pubDate>Mon, 29 Jun 2026 02:40:06 +0000</pubDate>
      <link>https://dev.to/firebonuses/the-link-is-the-app-building-account-free-micro-apps-with-vanilla-js-netlify-and-supabase-744</link>
      <guid>https://dev.to/firebonuses/the-link-is-the-app-building-account-free-micro-apps-with-vanilla-js-netlify-and-supabase-744</guid>
      <description>&lt;p&gt;Most group-coordination tools start the same way: download the app, or create an account, or both. We wanted the opposite. With &lt;a href="https://collectivetap.com" rel="noopener noreferrer"&gt;CollectiveTap&lt;/a&gt;, the unit of software &lt;em&gt;is the link&lt;/em&gt;. You create one, paste it into a group chat, and it's a live poll, RSVP, signup sheet, or expense split — for everyone, with zero sign-up on either side.&lt;/p&gt;

&lt;p&gt;Here's the architecture that makes that possible, and the three decisions that mattered most.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 1: No accounts — authorization lives in the URL
&lt;/h2&gt;

&lt;p&gt;There are no users in our database, because there are no user accounts. Every link carries a &lt;strong&gt;signed capability token&lt;/strong&gt; that encodes what the holder is allowed to do:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Simplified: a capability is an HMAC-signed payload in the URL&lt;/span&gt;
&lt;span class="c1"&gt;// { id, scope, exp, v }  — scope: "rw" (participate) or "owner" (admin)&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;verifyCap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;link&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;sig&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;token&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nf"&gt;timingSafeEqual&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sig&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;hmac&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;SIGNING_KEY&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// forged&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;cap&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;cap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;v&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="nx"&gt;link&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;cap_version&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// rotated → revoked&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;cap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;exp&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;              &lt;span class="c1"&gt;// expired&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;cap&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Rotating a single &lt;code&gt;cap_version&lt;/code&gt; integer on the link invalidates every token ever issued for it — bulk revocation without a sessions table. The token is clamped so it can never outlive the link itself. The entire authorization model is a function and a secret. No auth provider, no session store.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 2: No framework — one source of visual truth
&lt;/h2&gt;

&lt;p&gt;There's no React, no bundler, not even a build step for the front end beyond concatenation. The server renders authoritative HTML; browser JS is purely additive and &lt;em&gt;fail-silent&lt;/em&gt; (it may never throw or block rendering).&lt;/p&gt;

&lt;p&gt;The non-obvious win is that each tool has exactly &lt;strong&gt;one&lt;/strong&gt; SVG layout module, and that same module renders four surfaces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the Open Graph preview card (server, SVG→PNG),&lt;/li&gt;
&lt;li&gt;the creator's draft preview (browser),&lt;/li&gt;
&lt;li&gt;the admin preview,&lt;/li&gt;
&lt;li&gt;the live participant page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One layout core → four surfaces means a preview can never "drift" between what you see while creating a link and what your friends see in iMessage. If you've ever shipped a share feature where the preview card looked different from the real page, you know exactly why this matters. (You can see the live tools here: &lt;a href="https://collectivetap.com/tools/" rel="noopener noreferrer"&gt;CollectiveTap tools&lt;/a&gt;.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 3: Preview cards as immutable, edge-cached artifacts
&lt;/h2&gt;

&lt;p&gt;The hardest part of a share-native product is that the Open Graph image must be correct and &lt;em&gt;fast&lt;/em&gt; the instant a link lands in a chat app — and it must update when the underlying data changes, without ever serving something stale.&lt;/p&gt;

&lt;p&gt;We render each card as SVG and rasterize to PNG with &lt;a href="https://github.com/RazrFalcon/resvg" rel="noopener noreferrer"&gt;Resvg&lt;/a&gt; inside a Netlify Function, then serve it from a &lt;strong&gt;content-addressed, versioned path&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/og/i/{id}/{preview_version}.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every state mutation bumps &lt;code&gt;preview_version&lt;/code&gt;, which changes the URL, which means the old image can be cached forever and the new one is fetched on next share. Supabase Storage holds the cache; Netlify Edge serves the bytes. Immutable URLs + a version counter is a tiny pattern that eliminates a whole class of stale-preview bugs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack, in one breath
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Vanilla JS&lt;/strong&gt; front end, no framework, no bundler.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Netlify Functions + Edge&lt;/strong&gt; for all serving, routing, and caching.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supabase Postgres&lt;/strong&gt; for link state and an append-only event spine; &lt;strong&gt;Supabase Storage&lt;/strong&gt; for the preview-image cache.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resvg&lt;/strong&gt; for SVG→PNG.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's the whole thing. A small team can run a product that &lt;em&gt;feels&lt;/em&gt; like real-time infrastructure because we pushed almost everything to the edge and kept the data model boringly simple.&lt;/p&gt;

&lt;h2&gt;
  
  
  Was it worth dropping accounts and frameworks?
&lt;/h2&gt;

&lt;p&gt;For this product, unambiguously yes. The "share a link, it just works" experience is the entire value proposition, and accounts or installs would have killed it. If you're building something share-native — a poll, a signup, a one-off coordination tool — consider whether your unit of software can be the link itself.&lt;/p&gt;

&lt;p&gt;If you want to see it in practice, here are a few real flows people use it for: &lt;a href="https://collectivetap.com/use-cases/" rel="noopener noreferrer"&gt;group coordination use-cases&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Building &lt;a href="https://collectivetap.com" rel="noopener noreferrer"&gt;CollectiveTap&lt;/a&gt; — group tools that live inside a link. No account, no install.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>serverless</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
