<?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: Udit Agarwal</title>
    <description>The latest articles on DEV Community by Udit Agarwal (@udit_agarwal).</description>
    <link>https://dev.to/udit_agarwal</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%2F4111731%2Fc8751cb3-d9a4-4c62-9063-2203f51c98a6.png</url>
      <title>DEV Community: Udit Agarwal</title>
      <link>https://dev.to/udit_agarwal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/udit_agarwal"/>
    <language>en</language>
    <item>
      <title>I Built RELAY: One Incident, Four Native Outputs, and a Publication Firewall</title>
      <dc:creator>Udit Agarwal</dc:creator>
      <pubDate>Wed, 02 Dec 2026 23:12:00 +0000</pubDate>
      <link>https://dev.to/udit_agarwal/i-built-relay-one-incident-four-native-outputs-and-a-publication-firewall-3c09</link>
      <guid>https://dev.to/udit_agarwal/i-built-relay-one-incident-four-native-outputs-and-a-publication-firewall-3c09</guid>
      <description>&lt;p&gt;What happens when an engineering team needs to communicate a production incident to customers, internal engineers and the general public at the same time?&lt;/p&gt;

&lt;p&gt;Different audiences need different information. But maintaining multiple communication channels manually can introduce inconsistencies, accidental information disclosure and misleading updates.&lt;/p&gt;

&lt;p&gt;That's the problem I explored while building &lt;strong&gt;RELAY&lt;/strong&gt; for Unlayer's Hyper Elements Template Challenge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One incident. Every channel. One source of truth.&lt;/strong&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%2Fw9c19hmc6qbdcnnaeya9.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%2Fw9c19hmc6qbdcnnaeya9.png" alt="RELAY" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://relay-gold-nine.vercel.app/" rel="noopener noreferrer"&gt;Live Demo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Udit-Agarwal20/RELAY" rel="noopener noreferrer"&gt;GitHub Repository&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/hyper-elements/hyper-elements/discussions/437" rel="noopener noreferrer"&gt;Competition Submission&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;During a software outage, engineering teams may need to maintain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A public incident status page.&lt;/li&gt;
&lt;li&gt;Customer notification emails.&lt;/li&gt;
&lt;li&gt;Internal engineering reports.&lt;/li&gt;
&lt;li&gt;Public announcement graphics.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Creating these independently introduces several risks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Contradictory metrics across communication channels.&lt;/li&gt;
&lt;li&gt;Accidental disclosure of internal engineering information.&lt;/li&gt;
&lt;li&gt;Unconfirmed hypotheses presented as established facts.&lt;/li&gt;
&lt;li&gt;Repeated manual work.&lt;/li&gt;
&lt;li&gt;Missing or incorrectly represented telemetry.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wanted to explore whether one structured incident record could power all these outputs while preserving their individual information boundaries.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introducing RELAY
&lt;/h2&gt;

&lt;p&gt;RELAY is an open-source, schema-driven incident communication system built using React, TypeScript and Hyper Elements.&lt;/p&gt;

&lt;p&gt;It transforms a single validated incident record into four native Hyper Elements outputs.&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%2F58a8cps4ks6ljgntu0xi.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%2F58a8cps4ks6ljgntu0xi.png" alt="Four native outputs" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Native Root&lt;/th&gt;
&lt;th&gt;Generated Output&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Page&lt;/td&gt;
&lt;td&gt;Responsive public incident status page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Email&lt;/td&gt;
&lt;td&gt;Customer notification email with HTML and plain-text versions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Document&lt;/td&gt;
&lt;td&gt;Internal engineering PDF report&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Canvas&lt;/td&gt;
&lt;td&gt;Square and landscape announcement graphics&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;However, generating four different formats is only half of the problem.&lt;/p&gt;

&lt;p&gt;The more interesting challenge is deciding what information each audience should receive.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Publication Firewall
&lt;/h2&gt;

&lt;p&gt;RELAY classifies incident information according to its declared visibility and confidence.&lt;/p&gt;

&lt;p&gt;Visibility:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Public&lt;/li&gt;
&lt;li&gt;Customer&lt;/li&gt;
&lt;li&gt;Internal&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Confidence:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Confirmed&lt;/li&gt;
&lt;li&gt;Suspected&lt;/li&gt;
&lt;li&gt;Unknown&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Before rendering any template, the system validates the canonical incident record and applies explicit audience-specific publication rules.&lt;/p&gt;

&lt;p&gt;This ensures that statements marked as internal or unconfirmed are withheld from inappropriate external communication channels.&lt;/p&gt;

&lt;p&gt;Instead of passing the entire incident record to every template, RELAY constructs separate audience-specific data projections.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;p&gt;The core architecture follows this sequence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Canonical Incident Record
          |
    Runtime Validation
          |
    Publication Firewall
          |
    Audience Projections
          |
    Native Hyper Elements Templates
          |
    HTML / Email / PDF / PNG
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This separation allows validation, information classification and rendering to remain independently testable.&lt;/p&gt;

&lt;p&gt;It also allows individual templates to be reused without depending on the RELAY Studio interface.&lt;/p&gt;

&lt;h2&gt;
  
  
  Publication X-Ray
&lt;/h2&gt;

&lt;p&gt;A publication policy becomes difficult to trust if developers cannot understand its decisions.&lt;/p&gt;

&lt;p&gt;That's why RELAY includes Publication X-Ray, an interactive interface for inspecting how information is allowed, withheld or segregated across different audiences.&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%2Foxxamvi3ii07hnf14db5.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%2Foxxamvi3ii07hnf14db5.png" alt="Publication X-Ray" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Rather than simply hiding information, the system exposes the reasons behind its publication decisions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://relay-gold-nine.vercel.app/#xray" rel="noopener noreferrer"&gt;Explore Publication X-Ray&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Interactive Validation Lab
&lt;/h2&gt;

&lt;p&gt;I also wanted reviewers to be able to challenge the actual validation logic rather than simply look at screenshots.&lt;/p&gt;

&lt;p&gt;The Validation Lab includes ten fictional edge-case scenarios covering situations such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Invalid incident chronology.&lt;/li&gt;
&lt;li&gt;Unsafe URLs.&lt;/li&gt;
&lt;li&gt;Impossible telemetry values.&lt;/li&gt;
&lt;li&gt;Missing resolution timestamps.&lt;/li&gt;
&lt;li&gt;Internal-only observations.&lt;/li&gt;
&lt;li&gt;Unconfirmed claims.&lt;/li&gt;
&lt;li&gt;Zero versus missing metrics.&lt;/li&gt;
&lt;/ul&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%2Fagcvkg0xs5plteario3j.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%2Fagcvkg0xs5plteario3j.png" alt="Validation Lab" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Users can modify structured incident payloads and inspect how the runtime validation and audience projection rules respond.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://relay-gold-nine.vercel.app/#lab" rel="noopener noreferrer"&gt;Try the Validation Lab&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Hyper Elements?
&lt;/h2&gt;

&lt;p&gt;Hyper Elements provided a common React-based approach to defining reusable templates across four different rendering formats.&lt;/p&gt;

&lt;p&gt;RELAY uses native template contracts, structured properties, reusable themes and native rendering APIs.&lt;/p&gt;

&lt;p&gt;This allowed the application to maintain shared data contracts while respecting the different layout and rendering requirements of webpages, emails, PDFs and graphics.&lt;/p&gt;

&lt;p&gt;The customer email template also supports a verified Unlayer Builder design round-trip.&lt;/p&gt;

&lt;h2&gt;
  
  
  Technology Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;React&lt;/li&gt;
&lt;li&gt;TypeScript&lt;/li&gt;
&lt;li&gt;Hyper Elements&lt;/li&gt;
&lt;li&gt;Vite&lt;/li&gt;
&lt;li&gt;Playwright&lt;/li&gt;
&lt;li&gt;GitHub Actions&lt;/li&gt;
&lt;li&gt;Vercel&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Testing and Reliability
&lt;/h2&gt;

&lt;p&gt;The published release passed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;34 core automated tests.&lt;/li&gt;
&lt;li&gt;5 Studio verification tests.&lt;/li&gt;
&lt;li&gt;Native validation for all four Hyper Elements templates.&lt;/li&gt;
&lt;li&gt;Responsive browser verification.&lt;/li&gt;
&lt;li&gt;Accessibility scans of tested application states.&lt;/li&gt;
&lt;li&gt;GitHub Actions verification on Node.js 22 and 24.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Important Limitations
&lt;/h2&gt;

&lt;p&gt;RELAY is an experimental open-source project, not a production-ready incident management platform.&lt;/p&gt;

&lt;p&gt;Its publication rules depend on correctly declared visibility and confidence classifications. It does not independently determine whether an incident statement is factually true.&lt;/p&gt;

&lt;p&gt;The interactive Studio uses fictional incident data and does not provide production authentication or role-based access control.&lt;/p&gt;

&lt;p&gt;These are areas that would require further consideration before real-world deployment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It Yourself
&lt;/h2&gt;

&lt;p&gt;RELAY is MIT licensed, and the source code, native templates, documentation, example datasets and verification scripts are available on GitHub.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/Udit-Agarwal20/RELAY.git
&lt;span class="nb"&gt;cd&lt;/span&gt; RELAY
npm ci
npm run build:studio
npm run preview:studio
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GitHub: &lt;a href="https://github.com/Udit-Agarwal20/RELAY" rel="noopener noreferrer"&gt;https://github.com/Udit-Agarwal20/RELAY&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Live demo: &lt;a href="https://relay-gold-nine.vercel.app/" rel="noopener noreferrer"&gt;https://relay-gold-nine.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  I'd Love Your Feedback
&lt;/h2&gt;

&lt;p&gt;I'm currently a second-year Computer Science student exploring software engineering, AI engineering and open-source development.&lt;/p&gt;

&lt;p&gt;Building RELAY was an opportunity to explore structured content generation, runtime validation, information boundaries and multi-format rendering.&lt;/p&gt;

&lt;p&gt;I'm particularly interested in hearing from developers who work with incident management, SRE, DevOps or reusable template systems.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Would this approach be useful in real incident communication workflows?&lt;/li&gt;
&lt;li&gt;What important architectural or security considerations am I missing?&lt;/li&gt;
&lt;li&gt;How would you approach audience-specific communication differently?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd appreciate honest feedback, suggestions and contributions.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: AI coding assistants were used extensively during development, alongside my project planning, direction and testing. This article was also prepared with AI assistance.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>ai</category>
      <category>webdev</category>
      <category>react</category>
    </item>
  </channel>
</rss>
