<?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: Benjamin | mazaki</title>
    <description>The latest articles on DEV Community by Benjamin | mazaki (@mazaki_eth).</description>
    <link>https://dev.to/mazaki_eth</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3892688%2Ff5618e0e-c1e6-4181-bcc2-06d393484c47.jpg</url>
      <title>DEV Community: Benjamin | mazaki</title>
      <link>https://dev.to/mazaki_eth</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mazaki_eth"/>
    <language>en</language>
    <item>
      <title>The feature we recoded 16 times before making it a product</title>
      <dc:creator>Benjamin | mazaki</dc:creator>
      <pubDate>Wed, 22 Apr 2026 14:21:22 +0000</pubDate>
      <link>https://dev.to/mazaki_eth/the-feature-we-recoded-16-times-before-making-it-a-product-19g5</link>
      <guid>https://dev.to/mazaki_eth/the-feature-we-recoded-16-times-before-making-it-a-product-19g5</guid>
      <description>&lt;h2&gt;
  
  
  The activity log: the feature we've been recoding in every SaaS since 2020
&lt;/h2&gt;

&lt;p&gt;Between 2020 and early 2026, we shipped 16 projects. SaaS and mobile apps combined. Some for us, some for our clients. Different verticals, different stacks, different sizes.&lt;/p&gt;

&lt;p&gt;One thing comes up every single time.&lt;/p&gt;

&lt;p&gt;After a few months in production, it's always the same need: we want to know who did what, and when. And we want to be notified on certain key actions. Typically on our own SaaS: successful payments, failed payments, subscription cancellations, new signups, and sometimes logins.&lt;/p&gt;

&lt;p&gt;And every time, we start from scratch to build that piece again.&lt;/p&gt;

&lt;h2&gt;
  
  
  The needs that keep coming back, project after project
&lt;/h2&gt;

&lt;p&gt;The pattern is always the same. At some point, on every project:&lt;/p&gt;

&lt;p&gt;We want a real-time Discord notification on successful and failed payments&lt;br&gt;
We also want to be pinged on subscription cancellations, so we can understand why and, when it makes sense, reach out to the user&lt;br&gt;
We want to know the second a new signup arrives, without having to go check the dashboard&lt;br&gt;
An admin needs a trace when someone touches sensitive data&lt;br&gt;
A user opens a support request that requires digging into their logs to understand what happened&lt;br&gt;
Each of these needs shows up sooner or later. And each one demands a layer that nobody ever lays down before actually needing it, because at launch time no one says "let's block two weeks to build a proper event system." We hack it together the first time a concrete case hits. An activity table, a webhook pushing to Discord, an internal endpoint listing the last 50 events. Until the next project where we do the whole thing all over again.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why we kept pushing it back
&lt;/h2&gt;

&lt;p&gt;Because it's never a priority. On an MVP todo list, "set up a proper audit event system" never lands in the top tier. There's payments to wire up, onboarding to polish, bugs to squash.&lt;/p&gt;

&lt;p&gt;So we drop a console.log, we slap an INSERT INTO activity_log somewhere when we really need to track something, we add a Discord notification with a hardcoded webhook, and we tell ourselves we'll come back later to do it right (and honestly, most of the time we don't even tell ourselves that).&lt;/p&gt;
&lt;h2&gt;
  
  
  What it actually costs, totaled across 16 projects
&lt;/h2&gt;

&lt;p&gt;The same schema debate every single time: one table per action or one big table? Free JSON or strict types? Enum of actions or free strings? We keep rediscovering the same tradeoffs and the same traps&lt;br&gt;
The same Discord and Telegram notifications rebuilt by hand, with a different trigger mechanism every time&lt;br&gt;
The same support tickets we can't answer properly because text logs aren't structured: it's manual grepping and a lot of guessing&lt;br&gt;
The same technical debt piling up because we hack it differently on each project, with nothing ever factored out across them&lt;/p&gt;
&lt;h2&gt;
  
  
  The turning point, early April 2026
&lt;/h2&gt;

&lt;p&gt;On our latest project, we'd built the activity log table like usual. Clean schema this time, typed actions, referenced actor, the works. But when it came to building the UI to actually use it (a dashboard to search, filter by user, export), we couldn't be bothered. We ended up plugging something together on the fly the day we needed it.&lt;/p&gt;

&lt;p&gt;We looked back at what we'd built across the previous 15 projects. Every single time, the same promise: "we'll build the proper UI later."&lt;/p&gt;

&lt;p&gt;That day, we realized that a feature we rebuild identically 16 times, whose UI we postpone 16 times, that we patch together with the same compromises 16 times, is not a feature we should keep coding. It's a product that should have existed already.&lt;/p&gt;

&lt;p&gt;So we started building Recalled.&lt;/p&gt;
&lt;h2&gt;
  
  
  What Recalled does
&lt;/h2&gt;

&lt;p&gt;Not a replacement for your observability stack. Not a compliance tool (though it works for that if you need it). Just the "action history" building block we always wanted to have ready to plug in, with the UI that comes with it.&lt;/p&gt;

&lt;p&gt;In three lines of SDK:&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="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Recalled&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;@recalled/sdk&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;recalled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Recalled&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;RECALLED_KEY&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;recalled&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;events&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;user.signup&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;actor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;user_42&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;sarah@client.com&lt;/span&gt;&lt;span class="dl"&gt;"&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;And behind that, without coding anything else:&lt;/p&gt;

&lt;p&gt;A structured event table, queryable by actor, action, target, date&lt;br&gt;
A dashboard to browse and filter the history, the one we always pushed to "later"&lt;br&gt;
An embed component to expose activity to your B2B clients directly inside your product&lt;br&gt;
CSV and JSON export in one click&lt;br&gt;
Discord, Telegram, and webhook notifications on the actions you choose: successful payments, failed payments, subscription cancellations, signups, logins, admin actions, whatever matters to you&lt;br&gt;
Configurable retention per action pattern&lt;br&gt;
Cryptographic signature on every event so no one can rewrite the history after the fact&lt;br&gt;
Basically, what we wish we'd had on each of those previous projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;A feature your team rebuilds identically across N different projects isn't a feature. It's a product.&lt;/p&gt;

&lt;p&gt;If you find yourself redoing the same event table, the same export scripts, the same homemade notifications every time you ship a SaaS or an app, chances are you have the same blind spot we did.&lt;/p&gt;

&lt;h2&gt;
  
  
  If this resonates
&lt;/h2&gt;

&lt;p&gt;Recalled is in early access. You can sign up for the waitlist at &lt;a href="https://recalled.dev" rel="noopener noreferrer"&gt;https://recalled.dev&lt;/a&gt;&lt;/p&gt;

</description>
      <category>buildinpublic</category>
      <category>saas</category>
      <category>startup</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
