<?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: nimeshmarasinghe</title>
    <description>The latest articles on DEV Community by nimeshmarasinghe (@nimeshmarasinghe).</description>
    <link>https://dev.to/nimeshmarasinghe</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%2F4280125%2F51b91704-2d42-4215-b058-e3df3d39b633.png</url>
      <title>DEV Community: nimeshmarasinghe</title>
      <link>https://dev.to/nimeshmarasinghe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nimeshmarasinghe"/>
    <language>en</language>
    <item>
      <title>Building RELAY with Kiro: Exploring Offline-First Emergency Coordination</title>
      <dc:creator>nimeshmarasinghe</dc:creator>
      <pubDate>Thu, 03 Dec 2026 09:12:14 +0000</pubDate>
      <link>https://dev.to/nimeshmarasinghe/building-relay-with-kiro-exploring-offline-first-emergency-coordination-2o12</link>
      <guid>https://dev.to/nimeshmarasinghe/building-relay-with-kiro-exploring-offline-first-emergency-coordination-2o12</guid>
      <description>&lt;p&gt;Building a useful application is not just about writing code. It starts with understanding a problem, organizing ideas, making technical decisions, and gradually turning those decisions into something people can use.&lt;/p&gt;

&lt;p&gt;For Kiroween 2026, I decided to explore that process by building &lt;strong&gt;RELAY&lt;/strong&gt;, an emergency coordination Progressive Web App, with Kiro.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea behind RELAY
&lt;/h2&gt;

&lt;p&gt;During emergencies, information can become scattered. Communities may struggle to organize incident reports, communicate important updates, and identify which resources are available to support people in need.&lt;/p&gt;

&lt;p&gt;I wanted to explore whether a lightweight web application could bring some of these coordination activities together.&lt;/p&gt;

&lt;p&gt;That idea became RELAY.&lt;/p&gt;

&lt;p&gt;RELAY is a demonstration prototype designed around incident management, community announcements, resource management, request matching, QR code exchange, and offline access.&lt;/p&gt;

&lt;p&gt;It is not intended to replace official emergency services.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I chose Kiro
&lt;/h2&gt;

&lt;p&gt;I wanted to approach development with a clearer structure rather than simply adding features one by one.&lt;/p&gt;

&lt;p&gt;Kiro's spec-driven development workflow gave me a way to organize the project before and during implementation.&lt;/p&gt;

&lt;p&gt;I used three main specifications:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Requirements:&lt;/strong&gt; To define what the application should do and how its features should behave.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Design:&lt;/strong&gt; To document the architecture, components, and technical approach.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tasks:&lt;/strong&gt; To break the implementation into smaller development steps.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also used Kiro steering files to establish project-wide guidance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;product.md&lt;/code&gt; describes the product direction.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;structure.md&lt;/code&gt; documents the project organization.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;tech.md&lt;/code&gt; records the technology stack and development conventions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These documents helped me maintain a clearer direction as the application grew.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building the application
&lt;/h2&gt;

&lt;p&gt;RELAY was developed using HTML, CSS, and JavaScript.&lt;/p&gt;

&lt;p&gt;I used IndexedDB for local data storage and service workers to support application caching and offline access.&lt;/p&gt;

&lt;p&gt;The application includes several main areas.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Dashboard
&lt;/h3&gt;

&lt;p&gt;The dashboard provides an overview of incidents, available resources, and requests, helping users understand the current demonstration data at a glance.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Incident management
&lt;/h3&gt;

&lt;p&gt;Users can record and manage incidents with relevant information such as category, location, and severity.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Announcements
&lt;/h3&gt;

&lt;p&gt;A central area allows important community updates and notices to be organized.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Resource management
&lt;/h3&gt;

&lt;p&gt;Resources can be registered and tracked, making it easier to understand what support is available.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Request matching
&lt;/h3&gt;

&lt;p&gt;One of the features I particularly wanted to explore was matching requests with available resources.&lt;/p&gt;

&lt;p&gt;RELAY evaluates factors such as resource type, quantity, location, and urgency to calculate matching scores.&lt;/p&gt;

&lt;p&gt;This provides a structured way to identify potentially suitable resources.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. QR Exchange
&lt;/h3&gt;

&lt;p&gt;RELAY includes QR code generation and scanning to support the exchange of structured incident and resource information.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Offline support
&lt;/h3&gt;

&lt;p&gt;Connectivity can become unreliable during emergencies, so offline functionality was an important part of the project.&lt;/p&gt;

&lt;p&gt;Using IndexedDB and service-worker caching, RELAY can continue to provide access to its cached application and locally stored information when the network is unavailable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Challenges and lessons learned
&lt;/h2&gt;

&lt;p&gt;One of the main challenges was making the application work beyond a simple online demonstration.&lt;/p&gt;

&lt;p&gt;Managing related incidents, requests, and resources required careful attention to data consistency. Matching logic also needed to consider multiple factors rather than relying on a single condition.&lt;/p&gt;

&lt;p&gt;Offline support introduced another set of challenges. I had to understand how browser storage, caching, and service workers work together.&lt;/p&gt;

&lt;p&gt;Throughout development, Kiro's specifications and structured tasks helped me break larger problems into smaller pieces.&lt;/p&gt;

&lt;p&gt;The experience also taught me the importance of testing individual features and checking how they work together.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would improve next
&lt;/h2&gt;

&lt;p&gt;RELAY is currently a local-first demonstration prototype. Each browser maintains its own locally stored information.&lt;/p&gt;

&lt;p&gt;Future development could include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Secure synchronization between multiple users.&lt;/li&gt;
&lt;li&gt;Authentication and role-based access.&lt;/li&gt;
&lt;li&gt;Integration with verified emergency response organizations.&lt;/li&gt;
&lt;li&gt;More advanced resource allocation and coordination tools.&lt;/li&gt;
&lt;li&gt;Additional accessibility and usability improvements.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These improvements would be important before considering real-world operational use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Building RELAY for Kiroween 2026 has been a valuable learning experience.&lt;/p&gt;

&lt;p&gt;More importantly, it gave me an opportunity to explore a structured development workflow with Kiro and see how specifications, design decisions, and implementation tasks can work together.&lt;/p&gt;

&lt;p&gt;For me, the biggest takeaway is that building an application becomes much more manageable when the problem is clearly defined and the work is organized into meaningful steps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Project:&lt;/strong&gt; RELAY - Emergency Coordination&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Built with:&lt;/strong&gt; Kiro, HTML, CSS, JavaScript, IndexedDB, Service Workers, and QR code libraries.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/nimeshmarasinghe/RELAY-Emergency-Coordination" rel="noopener noreferrer"&gt;https://github.com/nimeshmarasinghe/RELAY-Emergency-Coordination&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://illustrious-lebkuchen-624d9f.netlify.app/public/" rel="noopener noreferrer"&gt;https://illustrious-lebkuchen-624d9f.netlify.app/public/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;RELAY is a demonstration prototype and does not replace official emergency services.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>pwa</category>
    </item>
  </channel>
</rss>
