<?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: Damien Cosset</title>
    <description>The latest articles on DEV Community by Damien Cosset (@damcosset).</description>
    <link>https://dev.to/damcosset</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%2F15827%2F8dbfb1b9-ef41-4b17-b59c-487fbc1769ed.jpg</url>
      <title>DEV Community: Damien Cosset</title>
      <link>https://dev.to/damcosset</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/damcosset"/>
    <language>en</language>
    <item>
      <title>Fearing the future</title>
      <dc:creator>Damien Cosset</dc:creator>
      <pubDate>Sat, 05 Dec 2026 11:19:37 +0000</pubDate>
      <link>https://dev.to/damcosset/fearing-the-future-3cem</link>
      <guid>https://dev.to/damcosset/fearing-the-future-3cem</guid>
      <description>&lt;h2&gt;
  
  
  From Fomo to Fobr
&lt;/h2&gt;

&lt;p&gt;I've written &lt;a href="https://damiencosset.dev/post/havent-written-code-in-months/" rel="noopener noreferrer"&gt;an article&lt;/a&gt; on a similar subjects a few weeks back. But I keep coming back to the feeling that I have. Before, I had what we called Fomo (Fear Of Missing Out). There were so many new technologies coming up every single month/year that I was scared that I would miss the next hype train and lag behind. But because you never knew in advance what would take off, and you had only so much time to learn new things, you would "gamble" and choose certain technologies and hope it would become relevant.&lt;/p&gt;

&lt;p&gt;Now, this feeling, I managed to get rid of it pretty early in my career. I realized I was able to learn new things anyway and if I was a few months behind, it really didn't matter that much.&lt;/p&gt;

&lt;p&gt;But today, we are a brand new world, surrounded by a technology that not only do things better, but it does for us. With Fomo, I felt like I still had a future. With Fobr (Fear Of Being Replaced, I suck at acronyms, leave me alone), it's not so clear.&lt;/p&gt;

&lt;h2&gt;
  
  
  Societal impacts
&lt;/h2&gt;

&lt;p&gt;When I think about it longer, it's not really all about programming and my job that I worry. It's about society in its entirety. I'll try to explain.&lt;/p&gt;

&lt;p&gt;We, as developers, are bombarded with speeches from the higher-ups: "Developers will be obsolete in 6 months". And we hear that every 2 weeks. Now, I'm not a catastrophist, I don't think we'll go that far that fast, but there is going to be an impact on our activities as developers. Many companies have already started to let people go because of the AI progress. So far, it seems like it affects our little bubble mostly.&lt;/p&gt;

&lt;p&gt;But here's the thing that worries me: how many jobs, how many millions of jobs across the globe would be impacted by the progress in AI? Realistically, how many tasks in so many jobs could be completely automated and replaced thanks to an properly configured AI and its workflow? Before, my thought process was: "ok, my job is going to change, but you're still gonna need developers to respond to this new market that AI is going to offer. The new tools, the new products etc.." So it was a way for me to reassure myself that even if my job was changing, I would still be useful.&lt;/p&gt;

&lt;p&gt;But if I keep pushing that thought process... Those new tools, new products, how many jobs will they take away? How many positions will no longer necessary because entire tasks are now being delegated to AI? What happens to our society if this trend confirms itself and millions loses their jobs and their livelihood? Towards which new jobs or branches those millions will go?&lt;/p&gt;

&lt;h2&gt;
  
  
  Thinking about our future
&lt;/h2&gt;

&lt;p&gt;Now, let's make one thing absolutely crystal clear. The inertia is huge. What we see happen in tech companies is most likely gonna take several years (probably even longer) before non-tech companies, governments start to apply what tech companies started doing aggressively. I think part of it is that they're not fully aware of the possibilities of AI. I'm French, and next year is going to be our next presidential election. When I hear politics talk about AI... well let's just say I don't feel like they are up to date. Which is both scary and reassuring in a way.&lt;/p&gt;

&lt;p&gt;Secondly, I don't believe our societies can handle the sort of "progress" that AI brings so fast. Even if we identified jobs that would disappear or being greatly reduced thanks to AI and acted on it, this would be catastrophic no? Whole lot of people suddenly out of jobs, who can't pay their mortgages, their bills...&lt;/p&gt;

&lt;p&gt;Our societies are defined by work. We earn a salary to pay for our housing, food, utilities, medecine and to contribute to welfare (if that's a thing in your country). What happens to our system when work is no longer available to us? If I can't sell my time for work anymore, how do I live? If, because of the progress made by AI, a lot of white-collar jobs are no longer necessary, who's gonna pay for my services, for your services? Are we all going to do labor work? Is there enough of it for all of us? &lt;/p&gt;

&lt;p&gt;If a society produces the same amount of food, housing, services... with half as many people. That society has become more productive and that's good news. But if the main way to earn a living in this society is still to sell your work, this state of affairs could be cataclysmic for people without a job anymore. And that's the paradox:  our society could become collectively richer while a part of its population become more precarious. &lt;/p&gt;

&lt;p&gt;Yeah, I don't know. It's a strange time. This is obviously only a possible path for us. I do feel that the strong inertia that we have means it's going to take a long time before it affects the rest of the society. But at the mean time, I'm afraid that these subjects are not the central point of political debates.&lt;/p&gt;

&lt;p&gt;The nature of work is changing. And with it, our societies will have to adapt. Does that mean we will finally enjoy our technological progress to work less, redistribute profits to everyone? Or will we go down the path of fighting for every scrap of work that can't be done by technology?&lt;/p&gt;

&lt;p&gt;Sorry, that one sounded a little chaotic. Just curious what you think about all this.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>ai</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>Email tracking looked simple. Privacy made it complicated.</title>
      <dc:creator>Damien Cosset</dc:creator>
      <pubDate>Fri, 04 Dec 2026 11:42:49 +0000</pubDate>
      <link>https://dev.to/notifizz/email-tracking-looked-simple-privacy-made-it-complicated-35me</link>
      <guid>https://dev.to/notifizz/email-tracking-looked-simple-privacy-made-it-complicated-35me</guid>
      <description>&lt;h2&gt;
  
  
  Dual pixels
&lt;/h2&gt;

&lt;p&gt;Ever tried to track email opens, only to discover that your emails contained two tracking pixels instead of one? We did.&lt;/p&gt;

&lt;p&gt;At Notifizz, we built our tracking system, with consent rules. But, our email service provider also added its own tracking pixel. A wrong configuration on our end meant that we could track things without consent. It also defeated the domain isolation per client that we had put in place. Not brilliant. Thankfully, we caught it very early in development by discovering two pixels in the HTML of an production email.&lt;/p&gt;

&lt;p&gt;When dealing with notifications, it's nice to have more feedback than just "the email has been sent". Did the user even open the email? Did he click on the links? Which one? Having an idea on what happened allows you to change your strategy or your wording and create email campaigns that actually meet your business goals.&lt;/p&gt;

&lt;p&gt;In this article, I'll explain how we tackle this issue at Notifizz, in the European context of GDPR. What we learned, what failed, and the solutions we implemented as a notification platform.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we wanted email tracking
&lt;/h2&gt;

&lt;p&gt;One frustrating thing about a marketing campaign is not knowing why it doesn't work. Because, there is a difference between an email that's never opened, an email opened but never interacted with, and an email that received interaction.&lt;/p&gt;

&lt;p&gt;In the first case, if it's never opened, you might have to ask yourselves if your segmentation was correct. Personally, if I receive an email trying to sell me a 50-meter yacht, I won't open it, I'm not in the market for that. Although, you also have to be aware that certain systems like Apple Mail Privacy Protection makes it difficult to know for certain if a user opened an email.&lt;/p&gt;

&lt;p&gt;In the second case, the user opens it, reads it, and does nothing else. Now, if you know this, you might wonder: ok, the user seemed interested but the email might be poorly worded, and we didn't convince the user to take the action(s) we wanted him to take.&lt;/p&gt;

&lt;p&gt;In the third case, let's say you want to convince users to come back to your application after a long absence (you know, the good old Duolingo harrassment method). If you know that the user clicked on your link to come back, you can be confident that the email targets the right people with the right wording and you might not need to spend more time on this campaign.&lt;/p&gt;

&lt;p&gt;So, this is why we wanted to handle email tracking in Notifizz, to give marketing teams a better understanding of their campaigns. However, we quickly learned that metrics are imperfect.&lt;/p&gt;

&lt;h2&gt;
  
  
  The privacy problem
&lt;/h2&gt;

&lt;p&gt;Because we are in Europe, we have to deal with GDPR (General Data Protection Regulation). GDPR is the European rules that deals with personal data. These regulations are set in place to protect users' data from public or private organisations. To give you an overview, &lt;a href="https://eur-lex.europa.eu/eli/reg/2016/679/oj" rel="noopener noreferrer"&gt;the regulation&lt;/a&gt; tells us that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;you must collect data for specified, explicit and legitimate purposes, and every processing needs a legal basis. GDPR lists six (art. 6.1): consent, contract, legal obligation, vital interests, public task and legitimate interests. Consent is only one of them: a password reset email needs none, because it's part of the service the person signed up for. And consent can't save an illegitimate purpose. A recruiter asking candidates about their religion or their plans to have children breaks the rules even with their consent: a candidate can't freely say no, and the question has nothing to do with the job.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;you must collect the minimum of data possible for your purposes and keep them only for the time you require them. Once you have no use for them anymore, they need to be deleted. One insurance company in France recently received a 5 millions euros fine because they kept contact data and connexion data for more than 10 years (!). They did other bad things like keeping passwords in plain text... Good job guys. &lt;a href="https://www.gblock.app/articles/cnil-macif-vie-5-million-plaintext-passwords-2026" rel="noopener noreferrer"&gt;CNIL decision&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Depending on the purpose, certain pixels require prior consent. Other, with strict reasons, don't. For example, having a pixel to secure authentication may qualify for a consent exemption (if you send an email with a connection code, you want to make sure the user open it on a known device for example) &lt;a href="https://www.cnil.fr/sites/default/files/2026-05/recommandation_tracking_pixels_emails.pdf" rel="noopener noreferrer"&gt;CNIL recommendation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For information, pixels' consent is not defined by GDPR, but by another european rule, &lt;a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX%3A02002L0058-20091219" rel="noopener noreferrer"&gt;ePrivacy (2002/58/EC, art. 5(3))&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It would take a lot of articles to go through all the regulations of GDPR and their implications but you get the gist of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The decisions we had to make
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Who collect consents?&lt;/em&gt; It's the sender's responsibility, not us as subcontractors. The sender gives us the consents through SDK or a CSV import (for each of his users). We didn't host a consent page because then we would have to hold the proof of the user's consents. Then it complicates things because we would know everything (the text displayed, which version, when the user consented or not ...). In the case of an audit, we would then have to provide the proof of consents. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are our choices, the page of consent could have been on our side but it is optional for the subcontractors to do this. &lt;a href="https://www.cnil.fr/sites/default/files/2026-05/recommandation_tracking_pixels_emails.pdf" rel="noopener noreferrer"&gt;CNIL recommandation&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Receive and be tracked are two distinct things.&lt;/em&gt; Deny tracking doesn't mean forbidding sending a notification. An untracked email has no pixel and no rewritten link (in a tracked email, links are redirected through our platform, measured then redirected to the actual link. That's called &lt;strong&gt;link wrapping&lt;/strong&gt;).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;A refusal always wins, even on emails already sent&lt;/em&gt;. If an email is sent and the user withdraw his consent after, it still redirects through us then the real page but the click doesn't exist for us. Same for the pixel, it's not counted. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Withdrawing consent doesn't make past measurement unlawful (GDPR art. 7(3)). But once consent is gone, nothing justifies keeping it tied to the person: we've built a nightly pass that erases their individual opens and clicks and keeps only totals with no identifier.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;When in doubt, no one is measured&lt;/em&gt;. Seems like an obvious one, but if we can't read the consent status, we don't track. If we can't read someone's consent status (a failed query, a timeout), no one is measured: a failed read never counts as "not opposed".&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;A tracking link carries no name&lt;/em&gt;. Each tracking link carries a token encrypted with AES-256-GCM: no one can read it, and any change to it is detected. It names the message and the button, never the person: who received that message is known only on our side. When you click, we send you on right away, then look up the message to decide whether the click can be recorded. If the person has been erased, there is nothing left to look up: the link still works, and the click counts for no one.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;Honest numbers&lt;/em&gt;. A non measured email appears as "Not measured", never as 0%. Rates are computed only with measured sends.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What we learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;When it comes to GDPR or ePrivacy, you need to read the texts, not just a summary. At first, we believed that an anonymous pixel didn't require consent, the &lt;a href="https://www.cnil.fr/sites/default/files/2026-05/recommandation_tracking_pixels_emails.pdf" rel="noopener noreferrer"&gt;CNIL&lt;/a&gt; said otherwise. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We thought we had to host a consent page. That's only an option&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The legal rule is simple, the identity is not. The same email address can be used by several accounts. The consent of one can't lift the withdrawal of another. That's why we store the consent per identity rather than on a recipient's record.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We changed opinions several times and that's ok. We did in-house pixel, then sealed token, then consent per channel.&lt;/p&gt;

&lt;p&gt;It's been one of the most complicated areas to implement because there are a lot of different rules to follow. Yet, it has to be comprehensible enough for our users so that they don't get drowned in countless settings while letting the recipients give or withdraw their consent without hurdles. &lt;/p&gt;

&lt;p&gt;In the end, we learned a lot about building a system that respects European privacy regulations. It was also a fun experience to explore the different use cases and understand what is legally permitted and technically possible.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://notifizz.com" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Try Notifizz for your notification workflows&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>privacy</category>
      <category>security</category>
      <category>backend</category>
    </item>
    <item>
      <title>Personalising notifications with business data: sync it, or read it at send time?</title>
      <dc:creator>Damien Cosset</dc:creator>
      <pubDate>Tue, 01 Dec 2026 14:41:34 +0000</pubDate>
      <link>https://dev.to/notifizz/personalising-notifications-with-business-data-sync-it-or-read-it-at-send-time-3jj6</link>
      <guid>https://dev.to/notifizz/personalising-notifications-with-business-data-sync-it-or-read-it-at-send-time-3jj6</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;A useful notification needs data the event did not carry. You can copy it into your notification tool ahead of time, or read it from your own systems when the message is built. What each choice costs, what is still stored, and which one fits.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9d4cjgcg3r1ofdbaweoj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9d4cjgcg3r1ofdbaweoj.png" alt="The Enrichers page in Notifizz: three enrichers with their cache lifetime, the invoice enricher without cache, and one enricher still to implement for the “Trial ending” campaign." width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A useful notification needs data the triggering event did not carry. "Your invoice is overdue" becomes useful with the amount, the due date and the name of the person who can pay it. "Your trial ends in three days" becomes useful with what the account actually used. None of that is in the event your backend sent.&lt;/p&gt;

&lt;p&gt;There are two ways to get it: copy the data into your notification tool ahead of time, or read it from your own systems when the message is built. This article is for the CTO or head of product who has to pick one, and for the marketing lead whose campaigns depend on the answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Syncing ahead of time
&lt;/h2&gt;

&lt;p&gt;The common model: your backend, or a customer data pipeline, sends people and their attributes to the notification tool, which stores them on a profile. Campaigns read the profile.&lt;/p&gt;

&lt;p&gt;It has real strengths. The data is on hand when the message is built, segments are evaluated without calling you, and your API is not in the send path.&lt;/p&gt;

&lt;p&gt;It has three costs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Drift.&lt;/strong&gt; An attribute is as fresh as the last sync. An invoice paid an hour ago can still read as unpaid, and the reminder goes out anyway.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A pipeline to maintain.&lt;/strong&gt; Each new piece of data a campaign needs means a field to add to the sync, and often a ticket for the development team.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An extra copy of your data.&lt;/strong&gt; Whatever you send the tool, whether every customer or a selection of people and attributes, becomes one more copy. It has to be kept up to date, protected and covered by a retention policy, including for people who rarely receive anything. Some tools also bill by the number of profiles it holds.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Reading at send time
&lt;/h2&gt;

&lt;p&gt;The other model reads the data where it lives, at the moment the message is built.&lt;/p&gt;

&lt;p&gt;In Notifizz, this is the job of enrichers. An enricher is a small function in your own backend, declared once with a typed input, a typed output and a cache policy: "the account owner for this organisation", "is this invoice still unpaid", "the plan of this user". Notifizz discovers the catalog of enrichers your backend exposes, and its calls to them are signed and timestamped.&lt;/p&gt;

&lt;p&gt;Each campaign has an orchestrator, the code that decides who receives the message and with what data. It calls the enrichers it needs, and it runs again before each step of the sequence. The third reminder about an invoice reads the invoice again at that step, within the cache lifetime the enricher declares: an invoice enricher that must always be exact declares no cache, and then the third reminder sees the invoice as it is when it leaves. When the invoice is paid, and the payment is the campaign's objective with the campaign set to end on it, the remaining reminders are cancelled.&lt;/p&gt;

&lt;p&gt;The strengths mirror the costs above: the data is as fresh as your system allows, and there is no sync to maintain. A new campaign that only needs data your enrichers already return reuses them, with no redeploy. When it needs data none of them returns yet, Notifizz opens an implementation task, and a developer adds or extends an enricher and deploys your backend.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cost of reading live
&lt;/h2&gt;

&lt;p&gt;Your API is now in the send path, and that has to be designed, not discovered.&lt;/p&gt;

&lt;p&gt;What should happen when an enricher fails? Notifizz's answer: the run stops. Failures are typed, the run is marked failed with its error code, the campaign's health shows it, and the call is not retried. An empty result never silently skips a send either. The choice is deliberate: no message rather than a message built without the data it needed, such as a reminder for an invoice nobody could check.&lt;/p&gt;

&lt;p&gt;That puts two things on your team: enrichers that answer reliably in production, and someone who watches the campaign's health. A campaign cannot go Live while one of its enrichers is missing in production, which catches the most common mistake before it costs a send.&lt;/p&gt;

&lt;h2&gt;
  
  
  Caching is not syncing
&lt;/h2&gt;

&lt;p&gt;Reading live does not mean calling your API for every message. Each enricher declares how long its responses may be cached. Without a declaration, they are cached for an hour; an enricher can declare a shorter or longer lifetime, or no cache at all for data that must always be live. Choose it per enricher, according to how fast its data changes.&lt;/p&gt;

&lt;p&gt;The difference with a sync is in what the cache holds and for how long. A cache holds only the records a notification actually needed, kept per organisation and per environment, and it empties itself when its lifetime runs out. A sync holds what you chose to send the tool, for as long as your retention policy keeps it, whether or not anything is ever sent to those people.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is still stored
&lt;/h2&gt;

&lt;p&gt;Reading at send time does not mean storing nothing, and a tool that claims otherwise deserves a second question.&lt;/p&gt;

&lt;p&gt;In Notifizz, the data an enricher returns is not stored on the person's record. It does leave copies, each with its own lifetime: the trace of the run that asked for it, the short cache, and the messages built from it. On the person, Notifizz keeps your user identifier, the email address for a limited window and then a hash of it, per-message delivery events, the in-app inbox, and subscription and opt-out state. Several of these retention windows are set by your organisation, within minimums the platform enforces; the others are fixed by the platform. The documentation lists them in its &lt;a href="https://notifizz.com/docs/concepts/privacy-friendly" rel="noopener noreferrer"&gt;privacy section&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;One practical consequence for your developers. In a run's trace, the values stored under a few key names that designate secrets, such as password or token, are masked; anything else is kept as the enricher returned it. So an enricher should return only the fields campaigns actually need, and never credentials or sensitive data a notification has no use for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which one fits
&lt;/h2&gt;

&lt;p&gt;Syncing makes sense when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;your data already flows into profiles through a pipeline you trust;&lt;/li&gt;
&lt;li&gt;you send to large segments selected on attributes, where reading each person live would be wasteful;&lt;/li&gt;
&lt;li&gt;your API cannot take the extra load, or cannot be in the send path.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reading at send time makes sense when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the data changes between steps: invoices, trial status, usage;&lt;/li&gt;
&lt;li&gt;marketing launches campaigns more often than the sync can follow;&lt;/li&gt;
&lt;li&gt;you would rather not keep one more copy of your customer data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reading at send time fits notifications triggered by one user's action and about one account, where the data moves between the first message and the last. For broadcasts to segments selected across your whole base, syncing stays a sound choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What stays with your team
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Writing the enrichers, usually a small amount of code each, and keeping them available in production.&lt;/li&gt;
&lt;li&gt;Returning only the fields campaigns need, and choosing a cache lifetime for each enricher, according to how fast its data changes.&lt;/li&gt;
&lt;li&gt;Deciding which business data a notification may use at all.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The documentation explains &lt;a href="https://notifizz.com/docs/why/enrichers" rel="noopener noreferrer"&gt;why Notifizz uses enrichers&lt;/a&gt;. For how this choice weighs in a wider decision, see &lt;a href="https://notifizz.com/blog/build-vs-buy-saas-notifications" rel="noopener noreferrer"&gt;our guide to building or buying a notification system&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://notifizz.com" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Check how Notifizz handles real-time enrichers&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>backend</category>
      <category>notifications</category>
      <category>systemdesign</category>
    </item>
    <item>
      <title>Can AI agents maintain our software architecture documentation?</title>
      <dc:creator>Damien Cosset</dc:creator>
      <pubDate>Sat, 28 Nov 2026 19:36:20 +0000</pubDate>
      <link>https://dev.to/damcosset/can-ai-agents-maintain-our-software-architecture-documentation-2jli</link>
      <guid>https://dev.to/damcosset/can-ai-agents-maintain-our-software-architecture-documentation-2jli</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;With the advent of AI, documentation has taken a more important place than before. First, as we delegate more and more coding tasks to AI agents and we switch context a lot faster than before, it's easier to forget decisions. Second, AI is also a lot better at writing documentation so delegating it means we also don't have a hand in that anymore.&lt;/p&gt;

&lt;p&gt;But we still need to have access to the docs, the RFC and the ADR, written in order to know how the system is and how we got there. In this article, we'll explore a setup with Claude and Obsidian in order to maintain a project's documentation and see how it looks like. So in this article, I'll explore with you how I'm trying to set this up.&lt;/p&gt;

&lt;h2&gt;
  
  
  The context
&lt;/h2&gt;

&lt;p&gt;I will be using my side project Notifizz as an example. We have a few developers working on it, taking decisions with their own AI agents and modifying the code. Right now, the documentation in our project looks something like this inside our repository:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnhett9g6n35t5wbdljjt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnhett9g6n35t5wbdljjt.png" alt="Folder structure of our AI generated docs" width="294" height="266"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As of today, we have around 160 ADR, 45 RFC and about 300 plans that we generated with an agent. It's a good start but we lack a clear overview of each domain and we don't really know easily when an ADR stopped being right, or what is the status of our decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using Obsidian
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://obsidian.md/" rel="noopener noreferrer"&gt;Obsidian&lt;/a&gt; is a free application used to take notes and manage knowledge databases. &lt;/p&gt;

&lt;p&gt;For my purposes, I'm going to create an Obsidian Vault, a local system folder to store my markdown files and a hidden &lt;code&gt;.obsidian&lt;/code&gt; configuration folder for app settings and plugins.&lt;/p&gt;

&lt;p&gt;Once you've installed the application, you can find the "Obsidian Vault" button on the bottom left, then "Manage Vaults...". In the modal, you can create your new vault and choose a folder from which to store your vault.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffji54nl707cpf48g0l1w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffji54nl707cpf48g0l1w.png" alt="Modal to create a new Obsidian Vault" width="800" height="654"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What I'm hoping is that Obsidian is going to give us an easier interface to work with, by displaying properties and allowing us to filter them (domain, verified_at, reviewed_on...). Also, Obsidian has backlinks and graphs that should work nicely with our markdowns.&lt;/p&gt;

&lt;h2&gt;
  
  
  The plan
&lt;/h2&gt;

&lt;p&gt;What I want:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A homepage where I can get a quick overview of each domain&lt;/li&gt;
&lt;li&gt;For each domain, a page that explains how it works and a page where it lists the decisions and if they are in the code or not.&lt;/li&gt;
&lt;li&gt;Once a week, a task runs, detect changes and proposes modifications. I don't want the AI to do the modifications without running them by me first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Letting Claude create the first domain
&lt;/h3&gt;

&lt;p&gt;I chose one of our most complex domains to test it out: notification tracking. Notification tracking is how Notifizz knows what happens to a notification after it is sent.&lt;/p&gt;

&lt;p&gt;Once that's done (and after fixing some formatting issues), I end up with an index page with a table that gives me an overview of each domain and its status (confronted with the code, did I review it, how fresh it is ... )&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc3a3w4ol9ccizgchr6x7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc3a3w4ol9ccizgchr6x7.png" alt="Index table" width="800" height="683"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In each domain, I get a page called map, that explains to me in a rather succinct Markdown document what the domain contains and how it does it. The properties include the domain, a sha for the verified_at, a title and a list of sources used. The sources include the ADR, RFC and the code that Claude consulted. So, it's a photograph of what the code contains at that moment.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhm4lvx89aw9bel1g359x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhm4lvx89aw9bel1g359x.png" alt="A map of a domain" width="800" height="634"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The second page is called decisions. This one lists the ADRs of this domain and check if the code applies it. So this page is more about realizing the differences between the decisions we took and the state of the code. The page has several tables for each ADR of the domain and describes the gaps between the ADR and the code.&lt;/p&gt;

&lt;p&gt;Ok, I could see this being somewhat useful. But so far, I'm not entirely convinced.&lt;/p&gt;

&lt;h3&gt;
  
  
  Change formatting to get something nicer
&lt;/h3&gt;

&lt;p&gt;Using the "Bases" functionality, I can display a table with filters, the properties list, a search functionality. Now we're talking. Obviously, it's not very useful now because I have only two domains but down the line, I can see this being quite good.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7gcdyc8iy1kmcajdkyw5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7gcdyc8iy1kmcajdkyw5.png" alt="Base table" width="800" height="437"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7mkjnsb75tgafcxohdhz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7mkjnsb75tgafcxohdhz.png" alt="Filters available" width="800" height="282"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the decisions pages, Claude added a little diagram that allows me to have a quick overview of the decisions and their status for this domain. That feels better than a table.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz4wk76g6xt0hzl160br8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz4wk76g6xt0hzl160br8.png" alt="Diagram with each decision's status for this domain" width="800" height="677"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Setting up the weekly review
&lt;/h3&gt;

&lt;p&gt;A weekly scheduled task checks the knowledge base against the latest code. It flags the pages whose code has changed, lists any new ADRs or RFCs, and drafts an update for one page on a separate branch.&lt;br&gt;
I don't want the agent to modify the knowledge base by itself. I review the diff and merge it. I want to have the final say. &lt;/p&gt;

&lt;p&gt;The "one page" is important I believe, I don't want to be drowned in updates. I don't think this project has enough people to have that many changes that would require a big update change regularly. I'll see after a few weeks if the knowledge base become too much behind the reality.&lt;/p&gt;

&lt;p&gt;Claude, after running the tasks, gives me a table of proposed changes to modify the docs. I've asked for checkboxes on each modification so I can cherry-pick which one I want or not.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F22rmkcq77x3h0lwe6fwu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F22rmkcq77x3h0lwe6fwu.png" alt="The table with the choices available" width="800" height="751"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding a few more domains
&lt;/h2&gt;

&lt;p&gt;The initial setup is, I think, decent. I'm gonna ask Claude to map 2 or 3 more domains of my project to see how it looks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5b69ygkblhp4vwyinfli.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5b69ygkblhp4vwyinfli.png" alt="Adding more domains" width="800" height="297"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What Claude found
&lt;/h2&gt;

&lt;p&gt;Right off the bat, we have 6 gaps that appeared on the notification tracking domain. Things that we decided in the latest ADR doesn't appear that way in the code, or at least partially. So, I have a pretty clear list of things to check. Why do we have those gaps? Are those decisions that we took during the implementation of the code with Claude and we decided to deviate from the ADR? Or is there a clear problem that we need to address? Or did Claude misinterpreted something.&lt;/p&gt;

&lt;p&gt;The first 3 gaps seem to be a lack of implementation, but I don't a reason as for why it's not in the code. That would need some extra analysis. But at least, I know where to look.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review
&lt;/h2&gt;

&lt;p&gt;As a reminder, the goal of this experiment was to do a little proof-of-concept to have an agent maintain my project's knowledge base. Because we don't write much code today, and we are switching contexts very rapidly, it's easy to feel like the project is slipping out of our hands and not ours anymore.&lt;/p&gt;

&lt;p&gt;The test was to use Obsidian to have a better interface to consult the hundreds of documents that we have. What is interesting in my case is really two things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;how does a domain really work in the code right now&lt;/li&gt;
&lt;li&gt;compared to the decision that we took in the ADRs, are there gaps with the implementation?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This first overview gives me a clearer picture of where I'm standing. I feel like the domain recap gives me an opportunity to learn parts of the application I haven't touched yet. And having the lists of gaps between the code and the ADRs maintained automatically by an agent is useful to keep track of what needs to be done.&lt;/p&gt;

&lt;p&gt;Overall, for a setup that took me a couple hours to set up, it feels nice. Obviously, I'm gonna need a few weeks of trial, testing and adjustments to make sure this tool fits our needs. But reading it feels a lot less overwhelming than searching through hundreds of markdown files in an editor.&lt;/p&gt;

&lt;h2&gt;
  
  
  Risks
&lt;/h2&gt;

&lt;p&gt;There is a clear risk to this approach that I have to be careful about: AI-driven documentation sprawl. While code usually passes code reviews and CI tests, documentation rarely has that sort of checks. AI can create a huge mass of documentation that is impossible to review for humans. Obsolete documentation can become an issue for agentic workflows because your agents are using wrong data to write code or propose solutions. In this case, documentation becomes more a problem than an assistance.&lt;/p&gt;

&lt;p&gt;So, this is why I chose a weekly review that doesn't modify anything without my approval to mitigate this. I feel like documentation becomes more important than ever and I need to have a say in it, I need to stay in control of what makes it to the documentation. If that becomes a source for our agentic workflows to fix bugs or develop new feature, it needs to be precise. &lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;I now have an Obsidian vault that keeps tracks of domains in my Notifizz project. I have an overview of what these domains do &lt;strong&gt;in the code&lt;/strong&gt; and possible gaps between the decisions taken in the ADRs and the code. In the future, an agent runs every week to check if new things have been done and if the documentation may be obsolete. But, in order to avoid the docs to become false, I'll keep the final word.&lt;/p&gt;

&lt;p&gt;It's going to take me some time to refine, test it, talk about it with my colleagues to find the right tuning for this tool. But I have a feeling this could become something useful in the future.&lt;/p&gt;

&lt;p&gt;Do you use special tools or agentic workflows to keep track of your documentation in your projects?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>tooling</category>
      <category>architecture</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Should you sync your customer data to your notification platform?</title>
      <dc:creator>Damien Cosset</dc:creator>
      <pubDate>Fri, 27 Nov 2026 16:30:53 +0000</pubDate>
      <link>https://dev.to/notifizz/should-you-sync-your-customer-data-to-your-notification-platform-1nin</link>
      <guid>https://dev.to/notifizz/should-you-sync-your-customer-data-to-your-notification-platform-1nin</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Sending notifications is a vast subject. Many questions and architecture decisions that have a huge impact on your product. Sending too many notifications, the wrong type, to the wrong people can shatter your company's reputation.&lt;/p&gt;

&lt;p&gt;One crucial process about notifications is data. What to do when an event triggering a notification doesn't contain all the data necessary to prepare the message? How do I retrieve the extra information? Where does that information live? There are two approaches to this problem.&lt;/p&gt;

&lt;p&gt;In this article, we'll look at the pros and cons of syncing your customer data to your notification platform or keeping your data on your side to access it on demand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Approach A: Synchronize your data
&lt;/h2&gt;

&lt;p&gt;This approach means that the notification platform holds a copy of your customer data on their side. The notification platform usually doesn't need to make extra external calls to retrieve data, and you can create segments easier on their side. On the other end, it means that your customer data is duplicated elsewhere and you have to implement processes to guarantee data integrity and the data could be obsolete compared to the real data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pros
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Availability&lt;/strong&gt;: Your app fails, the data could still be available on the notification platform if they are synchronized.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Segmentation&lt;/strong&gt;: Easier to create segments on the stored profiles.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Performance&lt;/strong&gt;: No external calls, we read the data from the local attributes.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Cons
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Privacy&lt;/strong&gt;: You have to duplicate your customer data in an external provider, creating another point of failure for that data to be stolen.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Data Freshness&lt;/strong&gt;: Data could be out of sync between the copy and the real data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Integration&lt;/strong&gt;: You need to implement mechanisms to keep your data in sync or update it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Maintenance&lt;/strong&gt;: You need to maintain data integrity.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Approach B: Retrieve it on demand
&lt;/h2&gt;

&lt;p&gt;This approach means that you keep your data in one place: your own systems. It means that there is only one source of truth and you don't need to worry about being in sync with other providers. However, performance might be a bit slower because the notification platform will need to make external calls to retrieve the data. It's also your responsibility to provide the endpoints necessary to retrieve the data and create the segments.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pros
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Data Freshness&lt;/strong&gt;: You get the freshest data from the one source of truth used, depending of availability and cache strategies.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Privacy&lt;/strong&gt;: Possibility to limit the data exposed to the external service providers&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Segmentation&lt;/strong&gt;: Depends, could be more difficult to implement but you have complete control of your filters and criteria.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Cons
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Availability&lt;/strong&gt;: Depends on the availability of your API to retrieve business data&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Integration&lt;/strong&gt;: Need to implement endpoints and/or enrichment functions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Performance&lt;/strong&gt;: More latency to call external services.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Maintenance&lt;/strong&gt;: Need to maintain API contracts, their performances and their errors.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A concrete example
&lt;/h2&gt;

&lt;p&gt;To revisit what I talked about in &lt;a href="https://dev.to/notifizz/how-to-add-an-in-app-notification-center-in-your-angular-application-48dj"&gt;this article&lt;/a&gt;, we'll talk about invoice creation.&lt;/p&gt;

&lt;p&gt;I create an invoice and I want to notify my customer that a new invoice is available for him. I trigger an event &lt;code&gt;invoice.created&lt;/code&gt; that contains the invoice's id and an organisation's id.&lt;/p&gt;

&lt;p&gt;Notifications must be sent to that organisation's billing managers and include the amount, due date and name of the organisation.&lt;/p&gt;

&lt;p&gt;Approach A — Synchronisation&lt;/p&gt;

&lt;p&gt;The platform already possesses the necessary attributes to identify the billing managers and personalize the message.&lt;/p&gt;

&lt;p&gt;Question: Has this information been correctly synchronized?&lt;/p&gt;

&lt;p&gt;Approach B — Fetch on demand&lt;/p&gt;

&lt;p&gt;The system calls the application to get the recipients and fetch the missing data.&lt;/p&gt;

&lt;p&gt;Question : What happens if the API is slow, unavailable or throws an error?&lt;/p&gt;

&lt;h2&gt;
  
  
  What we chose at Notifizz
&lt;/h2&gt;

&lt;p&gt;At Notifizz, we went straight to approach B. We believe that your data should stay on your side and avoid duplication. We feel like it's better to limit the amount of data stored by a third party.&lt;/p&gt;

&lt;p&gt;This approach allows our clients to define their endpoints on their API and their enrichment functions as they wish. Doesn't matter how complex their business logic might be, if they can implement it in their code and expose it, we can use it. We believe it allows for lot of possibilities when it comes to retrieve data or creating segments.&lt;/p&gt;

&lt;p&gt;To tackle certain performance issues, we allow clients to use a cache   for their enrichers data. That way, you choose if you want Notifizz to keep in cache data that you know won't change too much and avoid unnecessary calls or call your API every time to make sure you get the freshest data. The choice is yours.&lt;/p&gt;

&lt;p&gt;How does your team handle notifications? Are you closer to approach A or B?&lt;/p&gt;


&lt;div class="ltag-offer"&gt;
  &lt;div class="ltag-offer__body"&gt;
&lt;br&gt;
We built Notifizz using Approach B to retrieve customer data on demand and avoid data duplication. Check it out if you're looking for an event-driven notification architecture!&lt;br&gt;
&lt;/div&gt;
    &lt;a href="https://notifizz.com" class="ltag-offer__button crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Explore Notifizz&lt;/a&gt;
&lt;/div&gt;


</description>
      <category>architecture</category>
      <category>systemdesign</category>
      <category>backend</category>
    </item>
    <item>
      <title>When does a design decision become an architectural decision?</title>
      <dc:creator>Damien Cosset</dc:creator>
      <pubDate>Wed, 25 Nov 2026 18:43:56 +0000</pubDate>
      <link>https://dev.to/damcosset/when-does-a-design-decision-become-an-architectural-decision-54c7</link>
      <guid>https://dev.to/damcosset/when-does-a-design-decision-become-an-architectural-decision-54c7</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In the book "Fundamentals of Software Architecture", the authors define software architecture like so: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;«&amp;nbsp;The software architecture of a system consists of an architecture style as the starting point, combined with the architecture characteristics it must support, the logical components to implement its behavior, and finally the architecture decisions justifying it all&amp;nbsp;»&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Four dimensions that architects must think about when conceiving the system. In our journey to explore what an architect must do and think, we'll start by talking about Architecture vs Design. When is a  decision a design decision? When does it become an architectural decision?&lt;/p&gt;

&lt;h2&gt;
  
  
  What's the difference?
&lt;/h2&gt;

&lt;p&gt;Imagine that you have an outdoor space that you want to transform into a garden. Your dream garden.&lt;/p&gt;

&lt;p&gt;How many trees does it have? Does it have a barbecue set in concrete? Is it surrounded by hedges? Do you want to create a pond?&lt;/p&gt;

&lt;p&gt;These decisions define the structure of your garden, that would be its &lt;em&gt;architecture&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Now, let's get more detailed. Do you want to plant flowers? Which type? Are they red? Blue? What color should the barbecue be?&lt;/p&gt;

&lt;p&gt;These are more about the design of your garden.&lt;/p&gt;

&lt;p&gt;Why is the pond architecture and the flower color design? Because removing a pond means digging up the garden, while changing flowers takes an afternoon. &lt;/p&gt;

&lt;h2&gt;
  
  
  The criteria
&lt;/h2&gt;

&lt;p&gt;But how do you &lt;strong&gt;know&lt;/strong&gt; for sure which is which? Well, like most things in software, it depends. Software architecture is all about context. Each context might make you choose different answers to a problem, and yet, each answer may be right. &lt;/p&gt;

&lt;p&gt;There are three questions to ask ourselves:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is it more strategic or more tactical? What's the scope?&lt;/li&gt;
&lt;li&gt;How much effort does it take to implement or change? Meaning, not only doing the change, but what if I need to rollback the entire decision ?&lt;/li&gt;
&lt;li&gt;How significant are the trade-offs? What are the compromises?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Asking yourself each of these questions will give you a pretty solid idea of which side of the spectrum your decision is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Strategic vs tactical
&lt;/h2&gt;

&lt;p&gt;How can we know if a decision is more of a strategic one or a tactical one?&lt;/p&gt;

&lt;p&gt;Well, the book provides us with a few subjective questions. Things like: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;how much thought and planning is involved in the decision?&lt;/li&gt;
&lt;li&gt;how many people involved in the decision?&lt;/li&gt;
&lt;li&gt;is it a long-term strategic decision or a short-term tactical one?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's take examples.&lt;/p&gt;

&lt;p&gt;We have a module &lt;code&gt;billing&lt;/code&gt;. A component that displays information wants to use the Observer pattern to refresh itself. &lt;/p&gt;

&lt;p&gt;Architecture or design?&lt;/p&gt;

&lt;p&gt;In this case, everything stays in the same module. It shouldn't affect a lot of people on the team so its scope is small. &lt;em&gt;Design&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;But what about: &lt;code&gt;billing&lt;/code&gt; wants to react to the changes on the module &lt;code&gt;users&lt;/code&gt;. Module maintained by another team and more modules plan on doing the same thing. Well now, that decision creates a contract between modules, and we have to coordinate with another team. &lt;em&gt;Architecture&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It's all about context. Both cases feel very similar, a module wants to use the observer pattern. But in the end, the decisions are completely different, yet both rankings are correct. It's not the technique or the person that determines the ranking, it's the impact of the decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost of Change
&lt;/h2&gt;

&lt;p&gt;This one is pretty straightforward. How much time do I need to implement that change? What does it cost to do it? And also, NOT do it? Does it become more and more costly as time goes by?&lt;/p&gt;

&lt;p&gt;For example, a developer chooses to store an amount field in float in the database. What seems like a simple type decision is actually on the architecture spectrum. If my whole application handles those amounts, everything is impacted. Plus, this decision is written in the database model so the cost becomes higher as time goes by, because every transaction persisted is more data we'll eventually have to migrate. And what if we decide to rollback that decision in 2 years? That is costly. All of this makes it fall on the architecture side of decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trade-offs
&lt;/h2&gt;

&lt;p&gt;In software, we compromise. We have constraints to work with. Sometimes we have to adjust to the reality. If a developer tells you that their solution is the perfect solution and it has no trade-offs, well it's because they haven't identified them and that's a problem.&lt;/p&gt;

&lt;p&gt;As the first law of software architecture says in the book:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Everything in software architecture is a trade-off.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You ALWAYS sacrifice something when you take an architectural decision. The difficult and crucial part is to know what you sacrifice. &lt;/p&gt;

&lt;p&gt;For example, a developer proposes to you that the whole logic behind calculating the budgets should be written in stored procedure in PostgreSQL. That's a BIG decision. But what are the trade-offs of such a decision? What do you gain? What do you sacrifice?&lt;/p&gt;

&lt;h3&gt;
  
  
  Gains
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Performance: Can reduce network round trips by processing data directly in the database.&lt;/li&gt;
&lt;li&gt;Security: Least privilege, application only accesses the procedure, not the tables.&lt;/li&gt;
&lt;li&gt;Reusable: the same procedure can be used by different applications&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Sacrifices
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Scalability: all the work is now done on the database, harder to scale out.&lt;/li&gt;
&lt;li&gt;Portability: What if we move from PostgreSQL to mySQL? Does it work? How much time and effort will we need to achieve that migration?&lt;/li&gt;
&lt;li&gt;Coupling: All applications depend on the same procedure.&lt;/li&gt;
&lt;li&gt;Testability: Every test will require a running database.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Note that coupling and reusability talk about the same thing, but from a different perspective.&lt;/p&gt;

&lt;p&gt;So, knowing all this, you can make a decision. It could be interesting if you have several applications that share the database. But it could be risky if you ever need to scale out. The context of your system (software, but also the politics inside your organisation) will help you make the proper decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this article, we began thinking like an architect. Out of the four different dimensions, we focused on the architecture decisions by trying to understand the impact of every decision we could make and how everything depends on the context you are dealing with.&lt;/p&gt;

&lt;p&gt;Do you have example of decisions that seemed like a design decision but ended up falling on the architectural side of decisions? Why?&lt;/p&gt;

&lt;p&gt;Have fun &amp;lt;3&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>programming</category>
      <category>softwareengineering</category>
      <category>learning</category>
    </item>
    <item>
      <title>How to add an in-app notification center in your Angular application</title>
      <dc:creator>Damien Cosset</dc:creator>
      <pubDate>Tue, 24 Nov 2026 11:14:46 +0000</pubDate>
      <link>https://dev.to/notifizz/how-to-add-an-in-app-notification-center-in-your-angular-application-48dj</link>
      <guid>https://dev.to/notifizz/how-to-add-an-in-app-notification-center-in-your-angular-application-48dj</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In this article, we'll explore how to set up an Angular application with a NestJS backend. Then, we'll use Notifizz and its event driven campaign to send personalized notifications inside an in-app notification center&lt;/p&gt;

&lt;p&gt;You can find the code used for this tutorial here:&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Tagada85" rel="noopener noreferrer"&gt;
        Tagada85
      &lt;/a&gt; / &lt;a href="https://github.com/Tagada85/angular-nestjs-in-app-notifications" rel="noopener noreferrer"&gt;
        angular-nestjs-in-app-notifications
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Companion code for the DEV article 'From a Backend Event to an In-App Notification: The Full Journey with Angular and NestJS', using Notifizz
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Acme Invoicing: an Angular + NestJS demo app&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;A billing team creates invoices for its clients. Each client has their own space with their invoices.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Run it&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Requires Node 22 or 24.&lt;/p&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-c1"&gt;cd&lt;/span&gt; backend
npm install
cp .env.example .env
npm run start:dev&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Fill &lt;code&gt;backend/.env&lt;/code&gt; with the two secret keys of one non-production Notifizz environment (dashboard: the SDK setup
page). The backend refuses to start while a key is missing. They never leave the server.&lt;/p&gt;
&lt;p&gt;The API listens on &lt;a href="http://localhost:3000/api" rel="nofollow noopener noreferrer"&gt;http://localhost:3000/api&lt;/a&gt;.&lt;/p&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-c1"&gt;cd&lt;/span&gt; frontend
npm install
cp src/environments/environment.development.example.ts src/environments/environment.development.ts
npm start&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Paste the front API key of the same Notifizz environment in &lt;code&gt;environment.development.ts&lt;/code&gt; (not committed). It is
public: the browser sends it with every request of the Notifizz bell.&lt;/p&gt;
&lt;p&gt;The app runs on &lt;a href="http://localhost:4200" rel="nofollow noopener noreferrer"&gt;http://localhost:4200&lt;/a&gt;. The Angular dev server forwards &lt;code&gt;/api&lt;/code&gt; to the backend
(&lt;code&gt;frontend/proxy.conf.json&lt;/code&gt;), so the backend needs no CORS setup.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Try it&lt;/h2&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Open &lt;a href="http://localhost:4200/billing" rel="nofollow noopener noreferrer"&gt;http://localhost:4200/billing&lt;/a&gt; in one tab and…&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Tagada85/angular-nestjs-in-app-notifications" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  Setting up Angular and NestJS
&lt;/h2&gt;

&lt;p&gt;First, let's install NestJS and Angular CLI if not already done&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i -g @nestjs/cli @angular/cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's create our folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mkdir in-app-notif-angular-nest
&lt;span class="nb"&gt;cd&lt;/span&gt; in-app-notif-angular-nest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then create our NestJS backend with &lt;code&gt;nest new backend&lt;/code&gt;. Answer the questions for the setup and run &lt;code&gt;ng new frontend&lt;/code&gt; next. Again, answer the questions (the answers don't matter for our tutorial).&lt;/p&gt;

&lt;p&gt;Now we can run &lt;code&gt;cd backend &amp;amp;&amp;amp; npm run start:dev&lt;/code&gt; and &lt;code&gt;cd frontend &amp;amp;&amp;amp; npm start -- --port 4210&lt;/code&gt; to start our backend and our frontend. &lt;/p&gt;

&lt;p&gt;And in our browser, we have our Angular app running!&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdb8vvw802x8trm1fl8nb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdb8vvw802x8trm1fl8nb.png" alt="App running on localhost:4210" width="800" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After that, I've asked Claude to add some simple functionalities: an invoice creation form, a couple of customers, and their own client spaces. If you want the code, don't hesitate to check out the github repo!&lt;/p&gt;

&lt;p&gt;This form will be the starting point for launching our in-app notifications.&lt;/p&gt;
&lt;h2&gt;
  
  
  Signing up for Notifizz
&lt;/h2&gt;

&lt;p&gt;For our notification center, we will use Notifizz. We can create an account for free &lt;a href="https://use.notifizz.com/admins/signup" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We'll create our first campaign: New invoice.&lt;/p&gt;

&lt;p&gt;In the workflow, we'll create a new event that we'll call invoice.created. We'll choose an in-app notification to be sent. Finally, we'll define the recipient as "Customer". This helps the dev team and AI helpers to know who should receive these notifications.&lt;/p&gt;

&lt;p&gt;Once the campaign step is done, we can "Implement" and start setting up our code.&lt;/p&gt;

&lt;p&gt;At this point, Notifizz gives us the tasks we need to do in order to complete our setup and launch this campaign. Let's tackle them!&lt;/p&gt;
&lt;h2&gt;
  
  
  Putting it all together.
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Configuring our Notification Center
&lt;/h3&gt;

&lt;p&gt;In Settings -&amp;gt; Channels -&amp;gt; Notification Center, we'll go into Authentication. &lt;/p&gt;

&lt;p&gt;Here we can choose how we verify our users to make sure that each user gets only their notifications. For this tutorial, we'll choose the backend signed-token mode. Basically, our backend will provide a token to Notifizz to make sure the right user gets the right notifications in his interface.&lt;/p&gt;

&lt;p&gt;Then, we provide the path under which our users are identified. In our case, it will be &lt;code&gt;clientId&lt;/code&gt;. This is used in the implementation section to send notifications to the right user.&lt;/p&gt;
&lt;h3&gt;
  
  
  Adding Notifizz to the front-end
&lt;/h3&gt;

&lt;p&gt;In Settings -&amp;gt; Channels -&amp;gt; Notification Center -&amp;gt; Install, we have the code needed to add the notification center. &lt;/p&gt;

&lt;p&gt;From your frontend folder, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install @notifizz/angular
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the &lt;code&gt;client-space-page.ts&lt;/code&gt;, we'll import our component:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;NotifizzAngularComponent&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'@notifizz/angular'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Add it to the imports of the @Component&lt;/span&gt;
&lt;span class="nd"&gt;@Component&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;selector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'app-client-space-page'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;imports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;CurrencyPipe&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;DatePipe&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;NotifizzAngularComponent&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;templateUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'./client-space-page.html'&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;Then, in the html template, let's add the notifizz-bell. You can retrieve your sandbox API key from Settings -&amp;gt; Environments -&amp;gt; Sandbox -&amp;gt; Copy the Front API key.&lt;/p&gt;

&lt;p&gt;We create a function in the &lt;code&gt;client-space-page.ts&lt;/code&gt; to setup our options.&lt;/p&gt;

&lt;p&gt;The token is our backend signed token, we'll talk about it later.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt; &lt;span class="k"&gt;protected&lt;/span&gt; &lt;span class="k"&gt;readonly&lt;/span&gt; &lt;span class="n"&gt;bellOptions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;computed&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;NotifizzOptions&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;session&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&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="n"&gt;session&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="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;notifizzFrontApiKey&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;authType&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'backendToken'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;userId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;userEmail&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;notifizzToken&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;notificationCenterStyles&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;marginTop&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'20px'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&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;In the html template:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;header&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"topbar"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"brand"&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"/"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Acme Invoicing&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
  @if (client(); as me) {
    &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"account"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;{{ me.name }} &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"muted"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;· {{ me.company }}&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
      &lt;span class="c"&gt;&amp;lt;!-- The bell reads its options once, when it mounts: it only mounts once the session gave the token. --&amp;gt;&lt;/span&gt;
      @if (bellOptions(); as options) {
        &lt;span class="nt"&gt;&amp;lt;notifizz-bell&lt;/span&gt; &lt;span class="na"&gt;[options]&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"options"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/notifizz-bell&amp;gt;&lt;/span&gt;
      }
    &lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
  }
&lt;span class="nt"&gt;&amp;lt;/header&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And that's all you need on the front-end !&lt;/p&gt;

&lt;h3&gt;
  
  
  Adding Notifizz to the back-end
&lt;/h3&gt;

&lt;p&gt;From your backend folder, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install @notifizz/nodejs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We'll create a &lt;code&gt;notifizz.module.ts&lt;/code&gt; that we will use to inject the NotifizzClient in the backend. It takes two keys: an authSecretKey to verify users identity and an sdkSecretKey. Both of them are found in the Settings -&amp;gt; Environments.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nd"&gt;@Module&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;providers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;provide&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;NotifizzClient&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;useFactory&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;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="n"&gt;authSecretKey&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sdkSecretKey&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;notifizzKeys&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;NotifizzClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;authSecretKey&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sdkSecretKey&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;exports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;NotifizzClient&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;NotifizzModule&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;Then we'll add the token signature function in the backend. Because we chose the mode "Backend-signed token", we are responsible for providing a signed token of our user id to prove who he is.&lt;/p&gt;

&lt;p&gt;Simply put, we retrieve the signed token from our backend, and pass it to the notification center in our frontend.&lt;/p&gt;

&lt;p&gt;For our demo purposes, we have our client info from the request. Obviously, in your application, you would use your own authentication service.&lt;/p&gt;

&lt;p&gt;But the idea is simple, take your id, use the &lt;code&gt;generateHashedToken&lt;/code&gt; from the Notifizz SDK to sign it and return it. Done!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;  &lt;span class="c1"&gt;// Demo only: anyone can open a client's space by sending their id.&lt;/span&gt;
  &lt;span class="c1"&gt;// A real app takes the client from its own authentication, never from the request.&lt;/span&gt;
  &lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;clientId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Session&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;clients&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;clientId&lt;/span&gt;&lt;span class="p"&gt;)&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="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;NotFoundException&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Unknown client'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;notifizzToken&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;notifizz&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;generateHashedToken&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&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;Perfect! Now we have our setup completed and if we go to our app's client pages, we can see the notification center and we can open it!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq7g13wnuwohkbo0cqcod.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq7g13wnuwohkbo0cqcod.png" alt="Notifizz Bell with no notifications yet" width="800" height="308"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Adding the event
&lt;/h3&gt;

&lt;p&gt;When we set up our campaign, we defined an event to trigger it. Now is time to implement it to our code. In the Notifizz's orchestrator, the AI agent is asking you questions about how you wish to implement it. We're doing something simple for this tutorial so we'll go down the route of: everything is available in the original event's payload.&lt;/p&gt;

&lt;p&gt;Once I've answered the AI's questions, the agent gives me a prompt if I wish to send it to my AI friend. In the end, code looks something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// in invoices.service.ts&lt;/span&gt;
&lt;span class="c1"&gt;// inside the create function that creates a new invoice&lt;/span&gt;
&lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;notifizz&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;track&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s1"&gt;'invoice.created'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="n"&gt;clientId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;clientName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;invoiceId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;invoice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;invoiceNumber&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;invoice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;invoiceAmount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;invoice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;amountInCents&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;invoiceCurrency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;invoice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;currency&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="n"&gt;dueDate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;invoice&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dueDate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;catch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;unknown&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
        &lt;span class="kc"&gt;this&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`invoice.created not sent for ${invoice.number}: ${String(error)}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&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 that's it! That's all we need.&lt;/p&gt;

&lt;h3&gt;
  
  
  Triggering an event
&lt;/h3&gt;

&lt;p&gt;Now, in my application, I will create an invoice to trigger the event. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffhuw7sutdbwelbu4ovh8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffhuw7sutdbwelbu4ovh8.png" alt="Creating an invoice" width="800" height="291"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once that's done, I can see in Notifizz that the setup worked. In the SDK and Notification Center settings, I can see that Notifizz correctly detected that the sandbox environment triggered an event and installed the notification center. Awesome!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc3xsi58q04ok3f71r8rj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc3xsi58q04ok3f71r8rj.png" alt="Sdk Setup" width="800" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fej8t42ft01egdc6r370w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fej8t42ft01egdc6r370w.png" alt="Notification center setup" width="759" height="308"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now I can go back to our campaign, which is still in its implementation status. We have done all the tasks necessary to move forward and our developer job is done. The campaign can now be sent to "Review", the last step before sending it live.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sending notifications
&lt;/h2&gt;

&lt;p&gt;Let's send an invoice to our customer Bob Durand for 1250$&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fht13dhypeaxjz5rsfcom.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fht13dhypeaxjz5rsfcom.png" alt="Invoice form for Bob" width="800" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If I go to Bob's client space, I can now see that he has a new notification.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg5s14t83bc2k2m3zcmfm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg5s14t83bc2k2m3zcmfm.png" alt="Bob space" width="798" height="162"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that this notification has the information I provided.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0oh1il9nc0e2c9xkjx8b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0oh1il9nc0e2c9xkjx8b.png" alt="Bob's notification" width="461" height="349"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If I click on the Pay now button, I correctly go to the little page I added where I have the invoice's information.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbitd156bjrfer3guajcm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbitd156bjrfer3guajcm.png" alt="Bob's invoice information" width="645" height="333"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In Notifizz, the workflow's campaign recent executions show me the last runs that we did. And it correctly tracked that Bob clicked on the button, and therefore, because we chose to track the "Click" event in the objectives of this campaign, Notifizz considers that this campaign is a success for Bob. We could have tracked another event for this campaign's objective (say invoice.paid for example), no limits here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkx48sae3a2qdavcewe18.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkx48sae3a2qdavcewe18.png" alt="Objective goal for Bob" width="392" height="645"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Amazing!&lt;/p&gt;

&lt;p&gt;Let's send a couple of invoices to the other customer, Alice, to make sure she gets them as well.&lt;/p&gt;

&lt;p&gt;I have created two invoices for her. And we correctly have the two notifications in the notification center!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3psusljjrcevu3u6qq9y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3psusljjrcevu3u6qq9y.png" alt="Alice's space" width="800" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faty3ehjrehms4ndgyiro.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faty3ehjrehms4ndgyiro.png" alt="Alice's notifications" width="450" height="353"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, you're up and running to implement a simple notification center in your application with Notifizz! All that's left for us to do is go Live with this campaign and replace our sandbox API keys with our production API keys.&lt;/p&gt;
&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this tutorial, we made a little application that implemented Notifizz as a notification center. Upon triggering an invoice creation, we added an event listened by Notifizz which sends in-app notifications to the appropriate customers.&lt;/p&gt;

&lt;p&gt;Next time, we will explore more possibilities with Notifizz. Stay tuned!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://use.notifizz.com/admins/signup" class="crayons-btn crayons-btn--primary" rel="noopener noreferrer"&gt;Try Notifizz for free&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>angular</category>
      <category>webdev</category>
      <category>nestjs</category>
      <category>eventdriven</category>
    </item>
    <item>
      <title>I Haven't Written a Line of Code in Months. And I Don't Know How to Feel About It.</title>
      <dc:creator>Damien Cosset</dc:creator>
      <pubDate>Fri, 20 Nov 2026 23:04:09 +0000</pubDate>
      <link>https://dev.to/damcosset/on-finding-purpose-kk6</link>
      <guid>https://dev.to/damcosset/on-finding-purpose-kk6</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;It's been a while since I wrote something here. It feels like it was a lifetime ago. Our world, and especially our programming world, moves so fast that I can't recognize the way it was 6 years ago, 2 years ago, or even at the beginning of this year. So, I wanted to write down some thoughts and see where they take me.&lt;/p&gt;

&lt;h1&gt;
  
  
  Dealing with changes
&lt;/h1&gt;

&lt;p&gt;In our line of work, we're used to changes right? New languages, new technologies, new frameworks... we've always had new things to look forward to, or being scared of, learn, hate... But this AI stuff... Damn, it's not just something new, it's the first time I've actually felt threatened, in danger, overwhelmed.&lt;/p&gt;

&lt;p&gt;It's a very strange feeling because I have the feeling like we are at the edge of a new world, full of possibilities, adventures, discoveries. Things that we thought would take us weeks, months, or years to do or solve become doable so much faster. In the field of science, we see cool stuff happening. And even if I don't understand anything about it, it looks cool to discover new proofs and solutions, even if it's AI assisted. But...&lt;/p&gt;

&lt;h1&gt;
  
  
  What about me?
&lt;/h1&gt;

&lt;p&gt;I'm a good developer ok? I'm not a rockstar, but I've some strenghts. I've always enjoyed learning new stuff about design patterns, how to write good code. Less than a year ago, I was still learning new things, trying to write more elegant code. I was happy when I found a beautiful solution to a problem.&lt;/p&gt;

&lt;p&gt;Around March this year, our team decided it was time to equip everyone with Claude. I don't think I've written a line of code since then. How insane is that? Most of my time was spent in writing code, and now, it has completely disappeared from my tasks. So now, I'm mostly managing agents and doing all the conception and planning. That's where my "expertise" comes in. Because this stuff writes much better code than me anyway.&lt;/p&gt;

&lt;p&gt;I feel... dizzy. &lt;/p&gt;

&lt;h1&gt;
  
  
  What about my (our) future?
&lt;/h1&gt;

&lt;p&gt;The one thing that is scary is not knowing to me. I don't know what our jobs will look like next year, in 2 years, in 10 years. Will we still have a job? How will it look? I'm not much into the doom prediction like "Developers will be gone in 6 months". But &lt;em&gt;something&lt;/em&gt; is gonna change drastically right? What about the juniors, the people entering the job market today?&lt;/p&gt;

&lt;p&gt;It's not all bad of course. It's not. It's the uncertainty that's difficult for me.&lt;/p&gt;

&lt;p&gt;I'm building a very cool project with a few colleagues and AI allowed us to move a lot faster than we would have on our own. That's really exciting. Being able to deliver features a lot faster to users is always a nice feeling. That's one of the main reasons I started doing this anyway, help people.&lt;/p&gt;

&lt;h1&gt;
  
  
  Loss of craftsmanship
&lt;/h1&gt;

&lt;p&gt;When I wrote the code, with my slow hands, I felt like a craftsman. I was building something. The code was mine. Now, it's not. It's industrialized. A machine makes it. Like countless other craftsmen in the history of our species, what I used to do with my hands in hours or days is done by a machine in minutes.&lt;/p&gt;

&lt;p&gt;It's a strange feeling. Of course, I try to comfort myself. I still need to pilot this thing. It doesn't have my humanity, it doesn't know my users like I know them. I have better business knowledge than this machine. And in the end, it's always me that makes the final decision. For how long? And how much value does it have? &lt;/p&gt;

&lt;p&gt;This is also why I write this. Because I can still sit in front of my computer and pour out the words. My words. From my brain and my heart. It feels good to create something all by yourself. And I still have the hope that whatever the future holds for us, we will build cool stuff to help people. I hope that the AI era that we're entering will be a net positive for humanity.&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;That's it, that was my little rant. I'll keep building things that I believe will help people to better their lives and jobs. We will see, together, where this new world takes us.&lt;/p&gt;

&lt;p&gt;Have fun &amp;lt;3&lt;/p&gt;

</description>
      <category>ai</category>
      <category>watercooler</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>We Tried Automating Notifications with Make. Here's What We Learned.</title>
      <dc:creator>Damien Cosset</dc:creator>
      <pubDate>Fri, 20 Nov 2026 19:17:13 +0000</pubDate>
      <link>https://dev.to/notifizz/we-tried-automating-notifications-with-make-heres-what-we-learned-1nhp</link>
      <guid>https://dev.to/notifizz/we-tried-automating-notifications-with-make-heres-what-we-learned-1nhp</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In this article, I'll expose an issue we had in one of my freelance missions, what we learned from it and how it started our journey towards building our own system.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclaimer: I am one of the co-founders of &lt;a href="https://notifizz.com" rel="noopener noreferrer"&gt;Notifizz&lt;/a&gt;, a unified notification platform that leverages AI to give marketing teams autonomy in handling their notifications.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Our architecture was composed of several microservices. One of them was handling the notifications: receiving requests and calling whatever third party service was responsible for sending a message.&lt;/p&gt;

&lt;p&gt;Marketing teams designed notifications to achieve certain goals: alerting a customer of a new invoice, reminding him of an important task, informing about a new functionality... Each notification exists , or should exist, to achieve a business goal. &lt;/p&gt;

&lt;p&gt;Obviously, there is no guarantee that a notification will allow the company to achieve whatever goal they set right away. You track an objective related to a notification, and you see if users do the action you intended them to do from that notification. &lt;/p&gt;

&lt;p&gt;What if it doesn't work? Or doesn't work well enough? Marketing might want to make a few changes. Adjust the wording. Perhaps send the notification at a different moment in the process. Or maybe send an email AND an in-app message...&lt;/p&gt;

&lt;p&gt;And that's the first hurdle. For every change, marketing needs to either have a little bit of experience with certain tools (we used mailgun for example, which isn't the most straightforward piece of technology for non-devs) or send a ticket to the dev team to implement the changes. The marketing team is completely dependent on the dev team. It loses time and possibly keeps a suboptimal campaign live while the dev team finds the time to do the changes and push it to prod.&lt;/p&gt;

&lt;h3&gt;
  
  
  A solution?
&lt;/h3&gt;

&lt;p&gt;So we thought (back in 2023), what if the marketing team had complete control over their campaigns? What if they were completely independent from the dev team? How would that look like?&lt;/p&gt;

&lt;p&gt;You still need developers in the loop, obviously. But we thought that we could create everything we needed in our application beforehand (events, endpoints...) like building blocks, and let the marketing team construct their campaigns like this.&lt;/p&gt;

&lt;p&gt;Our application would emit events. For instance, a new invoice is created -&amp;gt; event &lt;strong&gt;invoice.created&lt;/strong&gt;, emitted from the microservice responsible for invoicing. That microservice would publish this event and its payload to a pub/sub topic. &lt;/p&gt;

&lt;p&gt;So far, so good. But now you need an interface right? Because marketing wants to create a campaign to alert clients about the invoice. And the marketing team doesn't know anything about code, or what's an API or a microservice... And they need something flexible so that they add a new field if necessary, or update the wording...&lt;/p&gt;

&lt;p&gt;So we thought about adding Make. Make lets you create scenarios and chain modules in a sequence. It takes an input (in our case, it would take our pub/sub' subscription) and you can chain different modules to manipulate data.&lt;/p&gt;

&lt;p&gt;And because you can create custom modules in Make, we created modules that allowed us to call our API, so we could enrich the original event payload input with data from some of our other microservices. That way, we thought, even if marketing is missing a field, they will use one of our pre-designed modules and add it themselves, without the devs! Genius!&lt;/p&gt;

&lt;p&gt;Right? Input's data -&amp;gt; call one or several modules to enrich -&amp;gt; call our notification microservice to send the notification.&lt;/p&gt;

&lt;p&gt;Well, it was a disaster.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it didn't work
&lt;/h2&gt;

&lt;p&gt;First, the payload you get from the event is a JSON, and it needs to be parsed for the Make scenario to know it and manipulate it. So right off the bat, you're adding a JSON concept into a process that's supposed to be developers free. &lt;/p&gt;

&lt;p&gt;Second, if you call our API, you need to think about security. So you need to pass a token, or an api key or something from Make to make sure your data is not being called from anyone. Another concept that's not marketing friendly.&lt;/p&gt;

&lt;p&gt;Third, you actually need a lot of JSON manipulating in that use case inside Make. Too much for a non technical person to use. The whole point was to make sure you didn't need to be a developer to use that process.&lt;/p&gt;

&lt;p&gt;A "simple" scenario could look like this&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn6u6f978yhzoh2lxenf0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn6u6f978yhzoh2lxenf0.png" alt="What a Make scenario could look like" width="798" height="121"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fourth, the variety of tools used complicated things. Because everything was spread out across different tools (templates were in Mailgun, the team used Intercom, Mailchimp, plus Make ...), it was impossible to teach the marketing team to be fully autonomous in the process. It would have been way too costly to train them on these tools to handle everything like we expected. It wasn't their job anyway.&lt;/p&gt;

&lt;p&gt;Fifth, we also needed to handle different environments. Obviously, you don't send your notifications to production right off the bat. You need to test them locally, then test them in a deployed environment then finally you push it to production. In our case, we needed to have a different scenario for each environment (different pub/sub subscription/topic, different modules).&lt;/p&gt;

&lt;h2&gt;
  
  
  What we learned
&lt;/h2&gt;

&lt;h4&gt;
  
  
  Lack of control
&lt;/h4&gt;

&lt;p&gt;No-code, at least in 2023 the way we used it became a growing problem saying: You need to adapt everything to us and our way of things, not the other way around. And it became clear that the level of complexity would be way too expensive to implement and maintain with the available tools in order to achieve the marketing autonomy goals we had.&lt;/p&gt;

&lt;h4&gt;
  
  
  The expertise needed
&lt;/h4&gt;

&lt;p&gt;You can't remove developers entirely from that loop. At one point or another, you need a developer to implement some code (an endpoint to enrich, a new event, a new field in an existing event ...). So the problem became more of: how do we clearly separate dev tasks from marketing tasks so that each team does what it's good at, without making each other lose too much time?&lt;/p&gt;

&lt;p&gt;To do that, we think, we need to have a centralized interface where everything was easier to follow and monitor. In one place, designing your email, in-app or intercom messages, track deliverability, events and their payloads and where in the development process is the campaign. &lt;/p&gt;

&lt;h4&gt;
  
  
  Lack of visibility
&lt;/h4&gt;

&lt;p&gt;Marketing teams have very little visibility on the number of notifications that are being sent throughout the application and in other marketing campaigns. We realized that our marketing team knew quite well about the actions they took to bring in new clients but very little about the users inside the app. And that was mostly due to the fact that there were a lot of different tools involved. The development team became, de facto, responsible for a lot of notifications inside the app, from designing, to wording, to tracking its effects. &lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This is what started our journey into building Notifizz. There is no doubt that what we did at the time was not perfect. Decisions were taken that could have been better. Technical choices that could have been wrong. In the end, the system worked, but couldn't work for the audience we had in mind. But it opened new doors, with the idea that maybe we could do better by building our own product.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>architecture</category>
      <category>automation</category>
      <category>buildinpublic</category>
    </item>
    <item>
      <title>Understanding Javascript's Proxies and Reflect API</title>
      <dc:creator>Damien Cosset</dc:creator>
      <pubDate>Mon, 07 Oct 2024 06:59:03 +0000</pubDate>
      <link>https://dev.to/damcosset/understanding-javascripts-proxies-and-reflect-api-1e6i</link>
      <guid>https://dev.to/damcosset/understanding-javascripts-proxies-and-reflect-api-1e6i</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In Javascript, Proxies enables you to trap specific object operations and customize them. The Proxy acts as an intermediary between the object and the "real world". Thus, you can enhance an object basic operations to implement more complex logic or redefine fundamental operations to fit your needs.&lt;/p&gt;

&lt;p&gt;Use cases includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;log property accesses, useful for debugging&lt;/li&gt;
&lt;li&gt;validate any interaction with an object (such as form validation)&lt;/li&gt;
&lt;li&gt;helps enforcing consistent formatting for&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Proxy takes two parameters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;target: which is the original object you want to proxy&lt;/li&gt;
&lt;li&gt;handler: an object that defines the operations you will intercept and how you will redefine said operations&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Basic example
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;greeting1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hello"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;greeting2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Good morning"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;handler&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;prop&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;receiver&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;prop&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;" friends!"&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="n"&gt;proxy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Proxy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;greeting1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;// Hello friends!&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;greeting2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;// Good morning friends!&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, we define a Proxy. The target object has two properties. We define a handler that provides an implementation of the &lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/Proxy/get" rel="noopener noreferrer"&gt;get()&lt;/a&gt; handler. The get trap intercepts the access to any property on the target object, and within it, we can modify the behavior as needed.&lt;/p&gt;

&lt;p&gt;With this setup, it means that every time we are going to access properties in the target object, the handler intercepts it, and runs the code we implemented. In our case, it just takes the property value and adds &lt;code&gt;friends!&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reflect
&lt;/h3&gt;

&lt;p&gt;Often times, Proxies are used with the Reflect API. Reflect provides methods with the sames names as the Proxy traps. Like its name indicates, it reflects the semantics for invoking the corresponding object internal methods.&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;greeting1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hello"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;greeting2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Good morning"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;handler&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;prop&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;receiver&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Reflect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;" friends!"&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="n"&gt;proxy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Proxy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;greeting1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;// Hello friends!&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;greeting2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;// Good morning friends!&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reflect is not required to use Proxies but using Reflect allows us to be sure that the behavior matches the native Javascript engine operations. It also ensure compatibility with future updates, prevents unintended side effects and simplifies code. Without it, the developer would have to re-implement behavior like property access, assignment, deletion... which can be error-prone and inconsistent with Javascript's native behavior.&lt;/p&gt;

&lt;h3&gt;
  
  
  Examples
&lt;/h3&gt;

&lt;p&gt;Let's build some examples to explore what we can do with Proxy. &lt;/p&gt;

&lt;h4&gt;
  
  
  Logging
&lt;/h4&gt;

&lt;p&gt;In our first example, let's say we wish to log which actions are taken on a object. Whenever we get, set or delete a property, I want to be print out to the console. This could be useful for debugging purposes.&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Damien"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;32&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"WRITING"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;loggerHandler&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;prop&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;receiver&lt;/span&gt;&lt;span class="p"&gt;)&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="n"&gt;prop&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`[LOG] Accessing property ${prop}. Current value is ${target[prop]}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Reflect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`[LOG] Error accessing non-existent property ${prop}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

    &lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`[LOG] Setting property ${key}. New value: ${value}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Reflect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

    &lt;span class="nf"&gt;deleteProperty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;prop&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;warn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`[LOG] Deleting property: ${prop}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Reflect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;deleteProperty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;)&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="n"&gt;proxy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Proxy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;loggerHandler&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="c1"&gt;// [LOG] Accessing property name. Current value is Damien&lt;/span&gt;
&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="c1"&gt;// [LOG] Accessing property status. Current value is WRITING&lt;/span&gt;

&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Bob"&lt;/span&gt; &lt;span class="c1"&gt;// [LOG] Setting property name. New value: Bob&lt;/span&gt;
&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"NAPPING"&lt;/span&gt; &lt;span class="c1"&gt;// [LOG] Setting property status. New value: NAPPING&lt;/span&gt;

&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;job&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Developer"&lt;/span&gt; &lt;span class="c1"&gt;// [LOG] Setting property job. New value: Developer&lt;/span&gt;

&lt;span class="k"&gt;delete&lt;/span&gt; &lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;job&lt;/span&gt; &lt;span class="c1"&gt;// [LOG] Deleting property: job&lt;/span&gt;

&lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;job&lt;/span&gt; &lt;span class="c1"&gt;// [LOG] Error accessing non-existent property job&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We defined a &lt;code&gt;loggerHandler&lt;/code&gt; that redefines 3 fundamentals operations: get, set and delete. For each action, we log something to the console describing what is happening. The beauty of the Proxy, we don't need to write the console statement everytime. We interact with our object like we always do, and the proxy takes care of the logging behavior. Pretty cool no?&lt;/p&gt;

&lt;h4&gt;
  
  
  Input validations
&lt;/h4&gt;

&lt;p&gt;In our second example, we will use a proxy to perform input validations for form data.&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;validationRules&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s2"&gt;"Name must be at least 3 characters long"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isInteger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s2"&gt;"Age must be a number"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'@'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s2"&gt;"Enter a valid email"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;formData&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;formHandler&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&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="k"&gt;typeof&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s2"&gt;"string"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&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="n"&gt;validationResult&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;validationRules&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&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="n"&gt;validationResult&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`Validation failed for property ${key}: ${validationResult}`&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;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Reflect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;)&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="n"&gt;formProxy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Proxy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;formData&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;formHandler&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;formProxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"32 years old"&lt;/span&gt; &lt;span class="c1"&gt;// Validation failed for property age: Age must be a number&lt;/span&gt;
&lt;span class="n"&gt;formProxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Da"&lt;/span&gt; &lt;span class="c1"&gt;// Validation failed for property name: Name must be at least 3 characters long&lt;/span&gt;
&lt;span class="n"&gt;formProxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"damcoss mail.com"&lt;/span&gt; &lt;span class="c1"&gt;// Validation failed for property email: Enter a valid email&lt;/span&gt;

&lt;span class="n"&gt;formProxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;32&lt;/span&gt; &lt;span class="c1"&gt;// OK&lt;/span&gt;
&lt;span class="n"&gt;formProxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Damien"&lt;/span&gt; &lt;span class="c1"&gt;// OK&lt;/span&gt;
&lt;span class="n"&gt;formProxy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"damcoss@mail.com"&lt;/span&gt; &lt;span class="c1"&gt;// OK&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We define here an object with different methods used to validate whether or not the values are valid. Then, we use the same logic. We have our target object &lt;code&gt;formData&lt;/code&gt; that we want to proxy. In the &lt;code&gt;formHandler&lt;/code&gt;, we redefine the &lt;em&gt;set()&lt;/em&gt; method to apply our validation rules on the inputs values.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Proxies, combined with the Reflect API, are flexible and powerful tools to intercept and customize operations on objects. Using them, you can enhance and control behavior dynamically. By using the Reflect API, you also make sure that the behavior is consistent with the Javascript engine. &lt;/p&gt;

&lt;p&gt;Proxies are often used in libraries and frameworks to enable advanced behabior like reactive programming, API wrappers and property observation.&lt;/p&gt;

&lt;p&gt;Have fun ❤️&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Adding Uniqrate to Your Hugo Website: A Step-by-Step Guide</title>
      <dc:creator>Damien Cosset</dc:creator>
      <pubDate>Thu, 03 Oct 2024 10:16:44 +0000</pubDate>
      <link>https://dev.to/damcosset/how-to-add-uniqrate-to-hugo-41be</link>
      <guid>https://dev.to/damcosset/how-to-add-uniqrate-to-hugo-41be</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://uniqrate.com" rel="noopener noreferrer"&gt;Uniqrate&lt;/a&gt; is a powerful tool designed for blogs and documentation, allowing readers to engage with your content through voting and comments. The voting widget—referred to as an island—helps you gain insights into what your readers enjoy, while also gathering analytics to enhance your understanding of user preferences.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://gohugo.io/" rel="noopener noreferrer"&gt;Hugo&lt;/a&gt;, one of the most popular open-source static site generators, is written in Go and optimized for speed, flexibility, and ease of use. In this guide, we’ll walk through how to seamlessly integrate Uniqrate into a Hugo-powered website, giving you a simple way to gather user feedback and improve your content.&lt;/p&gt;

&lt;p&gt;In this article, we'll see how you can add Uniqrate to a Hugo powered website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting the Uniqrate script
&lt;/h2&gt;

&lt;p&gt;After signing up for &lt;a href="https://app.uniqrate.com/admins/signup" rel="noopener noreferrer"&gt;Uniqrate&lt;/a&gt; and selecting your plan, navigate to the Settings tab to customize the appearance and text of your voting island. Once you're satisfied with your configuration, go to the Setup drawer to copy the code snippet by clicking on &lt;em&gt;Copy to clipboard&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzqy7kfbt9v19kn32ro76.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzqy7kfbt9v19kn32ro76.png" alt="Uniqrate’s interface showing where to copy the code snippet." width="799" height="608"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Awesome! Now, we can move on the next step!&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding it to Hugo
&lt;/h2&gt;

&lt;p&gt;For my example, I will use the &lt;a href="https://github.com/adityatelange/hugo-PaperMod" rel="noopener noreferrer"&gt;PaperMod&lt;/a&gt; template but the logic will be more or less the same of any Hugo templates you use.&lt;/p&gt;

&lt;p&gt;If you need help to setup a Hugo website, don't hesitate to check out &lt;a href="https://gohugo.io/getting-started/quick-start/" rel="noopener noreferrer"&gt;the documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Override your template's defaults
&lt;/h3&gt;

&lt;p&gt;Your theme will have a folder called &lt;em&gt;layouts/&lt;/em&gt;, located in &lt;em&gt;themes/&lt;/em&gt;. For example, the PaperMod theme has this structure once added to your website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi32lmyp8ivkbsen4kki3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi32lmyp8ivkbsen4kki3.png" alt="Folder structure PaperMod" width="530" height="438"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To override or extend your theme’s default templates, place your custom content in your own layouts/ folder. Hugo will prioritize these over the theme's default settings when rendering the site.&lt;/p&gt;

&lt;p&gt;You have to choose which file you need to override, copy it in your &lt;em&gt;layouts/&lt;/em&gt; folder and add the code you want.&lt;/p&gt;

&lt;p&gt;So the plan is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Identify the correct file to override.&lt;/li&gt;
&lt;li&gt;Copy it to your layouts/ folder.&lt;/li&gt;
&lt;li&gt;Add the Uniqrate script to the copied file.&lt;/li&gt;
&lt;li&gt;Profit!&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Adding our Uniqrate script to Hugo
&lt;/h3&gt;

&lt;p&gt;This is where you'll need to know what files your template is using. Make sure to check the documentation of your template if it exists. In the case of PaperMod, there is a file called &lt;em&gt;extend_head.html&lt;/em&gt;, it's located in the &lt;em&gt;layouts/themes/partials/&lt;/em&gt; folder.&lt;/p&gt;

&lt;p&gt;The PaperMod developers added in the file a comment to tell us what this file does:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{- /* Head custom content area start */ -}}
{{- /*     Insert any custom code (web-analytics, resources, etc.) - it will appear in the &amp;lt;head&amp;gt;&amp;lt;/head&amp;gt; section of every page. */ -}}
{{- /*     Can be overwritten by partial with the same name in the global layouts. */ -}}
{{- /* Head custom content area end */ -}}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is perfect! We want our Uniqrate script to be added to the  section of every page.&lt;/p&gt;

&lt;p&gt;So, we copy this file and paste it in our &lt;em&gt;layouts/partials/&lt;/em&gt; folder. Notice that we need to keep the subfolders structure, so we need the &lt;em&gt;partials&lt;/em&gt; subfolder here.&lt;/p&gt;

&lt;p&gt;Finally, in our &lt;em&gt;extend_head.html&lt;/em&gt; we just copied, let's add our script:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;{{ if eq hugo.Environment "production" }}
&lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_rmc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_rmc&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_rmc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"YOUR_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;apiUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"API_URL"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;loaderVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;server&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_rmc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;queue&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_rmc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;queue&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rmc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rmc&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;arguments&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_rmc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;queue&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementsByTagName&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"head"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createElement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"script"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;src&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;appendChild&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"ISLAND_URL"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/widget.js"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
{{ end }}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Obviously, the script you copied from Uniqrate will have your personal values.&lt;/p&gt;

&lt;p&gt;The condition &lt;code&gt;{{ if eq hugo.Environment "production" }}&lt;/code&gt; ensures that the Uniqrate script is only included when the site is live in a production environment, helping you avoid loading the script during local testing or development. If you want to test the Uniqrate island locally, you can temporarily remove this condition 😉&lt;/p&gt;

&lt;p&gt;Congratulations! You’ve successfully integrated Uniqrate into your Hugo-powered website. By adding this user-friendly voting widget, you’re giving your readers an easy way to provide feedback while collecting valuable analytics to enhance your content. Whether you're running a blog or managing documentation, this integration helps you stay connected with your audience.&lt;/p&gt;

&lt;p&gt;Have fun ❤️&lt;/p&gt;

</description>
      <category>buildinpublic</category>
      <category>webdev</category>
      <category>showdev</category>
      <category>html</category>
    </item>
    <item>
      <title>Launching our very first product: Uniqrate</title>
      <dc:creator>Damien Cosset</dc:creator>
      <pubDate>Sat, 28 Sep 2024 23:29:27 +0000</pubDate>
      <link>https://dev.to/damcosset/launching-our-very-first-product-uniqrate-4gn5</link>
      <guid>https://dev.to/damcosset/launching-our-very-first-product-uniqrate-4gn5</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;About three months ago, two of my colleagues and I joined forces with a common goal: to build and launch products. We enjoy working with each other daily, so we decided to test our collaboration by building something together.&lt;/p&gt;

&lt;p&gt;With two developers and one designer, we feel like our skill sets complement each other well, along with our personalities. Although we have big plans and aspirations, we decided to give this partnership a "test run" by creating what we thought would be a relatively small project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Uniqrate
&lt;/h2&gt;

&lt;p&gt;The result of this collaboration is &lt;a href="https://uniqrate.com/" rel="noopener noreferrer"&gt;Uniqrate&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Uniqrate is an analytics and reader feedback tool for blogs and documentation. We wanted to create an easy way for readers to give their feedback and comment on the content they are reading.&lt;/p&gt;

&lt;p&gt;The concept is relatively straightforward: we provide you with a piece of code that displays a visually appealing widget on your website. The widget allows readers to vote and comment on the page's content. Additionally, you can choose to ask for their email addresses to engage with your readers later on.&lt;/p&gt;

&lt;p&gt;We aimed to create a lightweight widget that seamlessly integrates with a webpage's content. Using Preact, we were able to develop a compact, efficient solution that doesn’t affect website performance. We also believe the design is visually appealing without distracting from the rest of the content.&lt;/p&gt;

&lt;p&gt;Our goal was to develop a feedback tool specifically tailored for blogs and documentation. In the age of AI, we believe it's crucial for bloggers and documentation writers to collect reader data to enhance content accuracy. With Uniqrate, we hope to help achieve that.&lt;/p&gt;

&lt;p&gt;You also have access to a dashboard that displays all the ratings and comments left by your users. We provide some analytics, such as time spent on pages, which pages get the best ratings, and more.&lt;/p&gt;

&lt;p&gt;Feel free to explore and give us your feedback! :)&lt;/p&gt;

&lt;h3&gt;
  
  
  The experience of building and launching of project
&lt;/h3&gt;

&lt;p&gt;On a personal level, I've always wanted to build cool things. That's why I started programming in the first place! But working alone, I always felt something was missing: motivation, vision, time, skills, ideas... It felt like I could never finish anything.&lt;/p&gt;

&lt;h3&gt;
  
  
  Being part of a team
&lt;/h3&gt;

&lt;p&gt;That has been a game changer for me. A team of three, each with specific skill sets. I no longer have to take on the role of a designer and risk producing something subpar—we have a skilled designer for that. It's a real relief!&lt;/p&gt;

&lt;p&gt;Being part of a team also helps with motivation. We have our daily jobs, which take up a good chunk of time, and we all have lives outside of work too. So, finding the time and motivation to work on the project can be tricky at times. We've had our ups and downs, but being part of a team means we can help each other during tough times. Seeing my teammates diligently producing great code and designs motivated me to do the same and contribute my best work.&lt;/p&gt;

&lt;h3&gt;
  
  
  Ship it
&lt;/h3&gt;

&lt;p&gt;When do you ship? When do you actually launch your product? We decided on a roadmap, what we thought were the minimum features needed for the product to be put out there. We sticked to it, ran into some troubles, fixed some of them, compromised on others, and decided on a deadline to let the project fly.&lt;/p&gt;

&lt;p&gt;The last few days were a bit hectic. We oscillated between the excitement of seeing our work pay off, the disappointment of it not being perfect, and the anxiety of potentially creating something ineffective. It was a whirlwind of emotions, but an incredible experience nonetheless.&lt;/p&gt;

&lt;h3&gt;
  
  
  Let's Do It Again!
&lt;/h3&gt;

&lt;p&gt;It feels amazing to be part of a project like this. Being able to actually create something, see it come to life, and not just store it away in a dark corner feels great. Perhaps it won’t succeed, and maybe we didn’t create something that resonates with users. If that’s the case, it will certainly be a tough lesson, but I’m incredibly proud of what we’ve accomplished.&lt;/p&gt;

&lt;p&gt;No matter what happens, we’ve built the foundation of our partnership to keep creating, keep having fun, and keep shipping new projects.&lt;/p&gt;

&lt;p&gt;For our first attempt, we created &lt;a href="https://uniqrate.com/" rel="noopener noreferrer"&gt;Uniqrate&lt;/a&gt;. I hope you’ll take a peek, and I’ll see you at the next launch!&lt;/p&gt;

&lt;p&gt;Have fun ❤️&lt;/p&gt;

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