<?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: Norbert Madojemu</title>
    <description>The latest articles on DEV Community by Norbert Madojemu (@norbert_madojemu_e4d44040).</description>
    <link>https://dev.to/norbert_madojemu_e4d44040</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%2F3641968%2F70ef347e-c8e6-4826-bdfa-6a7bed113657.png</url>
      <title>DEV Community: Norbert Madojemu</title>
      <link>https://dev.to/norbert_madojemu_e4d44040</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/norbert_madojemu_e4d44040"/>
    <language>en</language>
    <item>
      <title>Handling Production Incidents</title>
      <dc:creator>Norbert Madojemu</dc:creator>
      <pubDate>Sat, 31 Oct 2026 07:01:24 +0000</pubDate>
      <link>https://dev.to/norbert_madojemu_e4d44040/handling-production-incidents-1fbg</link>
      <guid>https://dev.to/norbert_madojemu_e4d44040/handling-production-incidents-1fbg</guid>
      <description>&lt;p&gt;Everyone working in an organization that has systems running in production has probably experienced one or more production incidents, either in the past or at the moment. If it's happening right now, God be with you, lol.&lt;/p&gt;

&lt;p&gt;And if you've never experienced a production incident, you definitely will sooner or later.&lt;/p&gt;

&lt;p&gt;By production incidents, I mean situations where bugs make their way into production, a newly deployed fix crashes the server, one or more services become unavailable, or a feature that was previously working suddenly stops working as expected.&lt;/p&gt;

&lt;p&gt;When these things happen, how do you respond?&lt;/p&gt;

&lt;p&gt;I generally consider two approaches when handling production incidents:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fix-forward.&lt;/li&gt;
&lt;li&gt;Rollback.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  1. Fix-forward
&lt;/h2&gt;

&lt;p&gt;Fix-forward is when you deploy a new change to address an issue in production rather than reverting to a previous version.&lt;/p&gt;

&lt;p&gt;For example, let's say you deploy a new version of your application and discover that a particular API endpoint is returning a 500 Internal Server Error because of a bug in the newly introduced logic.&lt;/p&gt;

&lt;p&gt;If the issue is well understood and you can confidently implement, test, and deploy a safe fix quickly, you can fix forward.&lt;/p&gt;

&lt;p&gt;The idea is to correct the problem with another deployment rather than undoing the previous one.&lt;/p&gt;

&lt;p&gt;However, you need to be careful. During a critical incident, deploying another change without properly understanding the problem could introduce even more issues. Speed is important, but so is ensuring that the fix actually addresses the problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Rollback
&lt;/h2&gt;

&lt;p&gt;Rollback is reverting an application or service to a previously stable version.&lt;/p&gt;

&lt;p&gt;I consider rollback when a production incident is serious and a safe fix cannot be deployed immediately, or when reverting to the previous version is the quickest and safest way to restore service.&lt;/p&gt;

&lt;p&gt;However, there's a caveat.&lt;/p&gt;

&lt;p&gt;Before rolling back, you need to ensure that the previous application version is still compatible with the current database schema and other services.&lt;/p&gt;

&lt;p&gt;For example, you might have introduced a new database column or changed an existing database structure during the deployment. If the previous application version doesn't support that change, rolling back the application could introduce another problem.&lt;/p&gt;

&lt;p&gt;The same applies to frontend and backend compatibility. You might roll back the frontend to a previous version that expects an API response different from what the current backend provides.&lt;/p&gt;

&lt;p&gt;Also, rolling back application code doesn't automatically reverse database changes or undo transactions that have already happened.&lt;/p&gt;

&lt;p&gt;This is why database migrations should ideally be backward-compatible, especially when working with systems that require minimal downtime.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. A hypothetical scenario: A payment service goes down
&lt;/h2&gt;

&lt;p&gt;Let's put these approaches into a practical scenario.&lt;/p&gt;

&lt;p&gt;Imagine you're working on a fintech application that allows users to transfer money between bank accounts.&lt;/p&gt;

&lt;p&gt;Your team deploys a new version of the backend, which includes some improvements to the payment processing service.&lt;/p&gt;

&lt;p&gt;Shortly after deployment, monitoring alerts start coming in. You notice that payment requests are returning 500 errors, and users can no longer complete transfers.&lt;/p&gt;

&lt;p&gt;What do you do?&lt;/p&gt;

&lt;p&gt;First, you investigate.&lt;/p&gt;

&lt;p&gt;You check your application logs, monitoring dashboards, and error reports to understand what went wrong. You discover that a change introduced in the latest deployment is causing the payment processing endpoint to fail.&lt;/p&gt;

&lt;p&gt;Now you have a decision to make.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option A: Fix-forward&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you've identified the problem and the fix is straightforward, you can implement the correction, run the necessary tests, and deploy a new version.&lt;/p&gt;

&lt;p&gt;For example, you discover that a condition in the payment validation logic is incorrectly rejecting valid transactions. You correct the condition, test the affected scenarios, and deploy the fix.&lt;/p&gt;

&lt;p&gt;You then monitor the service to confirm that payment requests are being processed successfully.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option B: Rollback&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now imagine the issue is more complicated. The new payment processing logic has introduced several unexpected failures, and you cannot confidently deliver a tested fix immediately.&lt;/p&gt;

&lt;p&gt;If the previous application version is compatible with the current database schema and other services, you can roll back to that version to restore the payment service.&lt;/p&gt;

&lt;p&gt;But remember, you must also consider transactions that were already initiated before the rollback. Some might have failed, while others might have been processed successfully even though the application returned an error.&lt;/p&gt;

&lt;p&gt;You need to ensure that these transactions are reconciled before attempting to process them again. Otherwise, you risk duplicate payments.&lt;/p&gt;

&lt;p&gt;The objective is not just to get the service running again but to ensure that users' funds and transaction records remain consistent.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. How I approach production incidents
&lt;/h2&gt;

&lt;p&gt;Regardless of whether I choose to fix forward or roll back, there are a few things I consider when handling production incidents.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Identify the issue&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The first thing is understanding what is broken. I check application logs, error reports, monitoring dashboards, and recent deployments to identify the possible cause.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Assess the impact&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I determine how much of the system is affected. Is the entire application down, or is it just one service? Are all users affected, or is it a particular group? Are we dealing with failed payments, authentication issues, or something less critical?&lt;/p&gt;

&lt;p&gt;This helps establish the severity and urgency of the incident.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Mitigate the issue&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once I have a reasonable understanding of the problem, I determine the safest way to restore the affected functionality.&lt;/p&gt;

&lt;p&gt;This could mean fixing forward, rolling back, disabling an affected feature, or temporarily routing traffic away from an unhealthy service.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Verify the fix&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After deploying a fix or completing a rollback, I verify that the affected functionality is working as expected.&lt;/p&gt;

&lt;p&gt;For a payment service, for example, I wouldn't just check that the endpoint returns a successful response. I'd also verify that transactions are being processed correctly and that the relevant records are being persisted.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Monitor the system&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I continue monitoring the application to ensure the issue hasn't returned.&lt;/p&gt;

&lt;p&gt;I pay attention to error rates, response times, service health, and relevant business metrics.&lt;/p&gt;

&lt;p&gt;Getting the application back up doesn't necessarily mean the incident is completely resolved.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. What happens after the incident?
&lt;/h2&gt;

&lt;p&gt;One thing I believe is important is understanding why the incident happened in the first place.&lt;/p&gt;

&lt;p&gt;Once the system is stable, the team should conduct a post-incident review to understand the root cause, what went wrong, how the incident was handled, and what can be done to prevent a recurrence.&lt;/p&gt;

&lt;p&gt;This might involve improving automated tests, introducing additional monitoring and alerts, reviewing deployment processes, or making database migrations safer.&lt;/p&gt;

&lt;p&gt;The goal isn't to find someone to blame. It's to make the system more resilient.&lt;/p&gt;

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

&lt;p&gt;Production incidents are part of working with software systems, especially when you're building and maintaining applications that people depend on.&lt;/p&gt;

&lt;p&gt;What matters is how quickly and safely you can identify the problem, restore service, and prevent the same issue from happening again.&lt;/p&gt;

&lt;p&gt;Whether you choose to fix forward or roll back, always consider the wider system. Your application doesn't operate in isolation. It depends on databases, APIs, background workers, and other services.&lt;/p&gt;

&lt;p&gt;A fix that restores one part of the system but breaks another isn't really a fix.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>softwareengineering</category>
      <category>sre</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Norbert Madojemu</dc:creator>
      <pubDate>Wed, 27 May 2026 00:11:06 +0000</pubDate>
      <link>https://dev.to/norbert_madojemu_e4d44040/-4fg4</link>
      <guid>https://dev.to/norbert_madojemu_e4d44040/-4fg4</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2" class="crayons-story__hidden-navigation-link"&gt;I Built a Screenshot-to-React Generator in 3 Hours&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/norbert_madojemu_e4d44040" class="crayons-avatar  crayons-avatar--l  "&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%2Fuser%2Fprofile_image%2F3641968%2F70ef347e-c8e6-4826-bdfa-6a7bed113657.png" alt="norbert_madojemu_e4d44040 profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/norbert_madojemu_e4d44040" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Norbert Madojemu
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Norbert Madojemu
                
              
              &lt;div id="story-author-preview-content-3759844" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/norbert_madojemu_e4d44040" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F3641968%2F70ef347e-c8e6-4826-bdfa-6a7bed113657.png" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Norbert Madojemu&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;May 26&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2" id="article-link-3759844"&gt;
          I Built a Screenshot-to-React Generator in 3 Hours
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/react"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;react&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/go"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;go&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/webdev"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;webdev&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;3&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            3 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>I Built a Screenshot-to-React Generator in 3 Hours</title>
      <dc:creator>Norbert Madojemu</dc:creator>
      <pubDate>Tue, 26 May 2026 23:58:35 +0000</pubDate>
      <link>https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2</link>
      <guid>https://dev.to/norbert_madojemu_e4d44040/i-built-a-screenshot-to-react-generator-in-3-hours-2ci2</guid>
      <description>&lt;p&gt;I got tired of translating Figma screens and UI screenshots into JSX before I could touch any real frontend work — routing, state, architecture, the stuff that actually matters. So I built a tool to do it for me.&lt;br&gt;
Drop a screenshot. Get a live, rendered React + Tailwind component. Streaming. In your browser. No build step.&lt;br&gt;
Here's how it works and what broke along the way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Stack&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Next.js 14 — frontend, split-panel UI&lt;/li&gt;
&lt;li&gt;Go — backend, image compression, SSE streaming&lt;/li&gt;
&lt;li&gt;Claude API (claude-sonnet-4-5) — vision + code generation&lt;/li&gt;
&lt;li&gt;Babel Standalone + Tailwind CDN — zero-build iframe preview&lt;/li&gt;
&lt;li&gt;localStorage — conversion history&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How It Works&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;Screenshot → Go (compress + resize) → Claude Vision (streaming) → SSE → Next.js → iframe preview&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The Go backend compresses the image to under 5MB, base64 encodes it, and opens a streaming connection to Claude's API. Each text delta gets forwarded to the browser as a JSON SSE event:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;data: {"delta":"import"}
data: {"delta":" React from 'react';"}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The frontend accumulates the stream into a code string. Once generation finishes, the code gets injected into an iframe using document.write() — React, Babel, and Tailwind loaded via CDN. The component renders instantly with no build step.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Bugs That Hurt&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Chunk concatenation.&lt;/strong&gt; Claude streams tokens. &lt;em&gt;import&lt;/em&gt; and &lt;em&gt;React&lt;/em&gt; arrive as separate events. Early on I was joining them naively and getting &lt;em&gt;importReact from 'react'&lt;/em&gt; — which Babel rejects. Fix: wrapped each delta in a JSON object on the Go side, read &lt;em&gt;obj.delta&lt;/em&gt; on the frontend. JSON preserves whitespace exactly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Import statements in the iframe.&lt;/strong&gt; The iframe loads React via CDN. If the generated code also has &lt;em&gt;import React from 'react'&lt;/em&gt;, Babel throws. Fix: stripped all imports and replaced &lt;em&gt;export default&lt;/em&gt; before injecting:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const clean = code
  .replace(/^import\s+[\s\S]*?from\s+['"][^'"]*['"];?\s*$/gm, "")
  .replace(/^export\s+default\s+/m, "const __Component__ = ")
  .trim();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Image media type mismatch.&lt;/strong&gt; Screenshots saved as &lt;em&gt;.png&lt;/em&gt; sometimes contain JPEG bytes. Claude rejects the mismatch. Fix: since the Go compressor always outputs JPEG, I hardcoded &lt;em&gt;image/jpeg&lt;/em&gt; as the declared media type regardless of the input format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Prompt That Works&lt;/strong&gt;&lt;br&gt;
You are an expert React and Tailwind CSS developer.&lt;br&gt;
Generate a complete, production-ready React functional component&lt;br&gt;
that faithfully reproduces the screenshot's layout, spacing,&lt;br&gt;
colors, and typography.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tailwind utility classes only — no inline styles&lt;/li&gt;
&lt;li&gt;Realistic placeholder text, not Lorem Ipsum
&lt;/li&gt;
&lt;li&gt;Mobile-first responsive classes&lt;/li&gt;
&lt;li&gt;Hover and focus states on interactive elements&lt;/li&gt;
&lt;li&gt;Return ONLY the component code, no markdown fences&lt;/li&gt;
&lt;li&gt;Self-contained, no required props
"No markdown fences" is critical — without it Claude wraps output in triple backticks and Babel chokes on them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What It Actually Produces&lt;/strong&gt;&lt;br&gt;
Tested on a Personal Details mobile screen, a dark SaaS landing page, and an analytic dashboard. All three came back with correct layout structure, color palette, component hierarchy, and interactive states. Light tweaking needed, but production-usable as a starting point.&lt;br&gt;
What it doesn't nail: exact hex colors (approximates to nearest Tailwind value), complex animations, data-driven elements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cost&lt;/strong&gt;&lt;br&gt;
Under $5 total — including every debug run and demo conversion during the build.&lt;br&gt;
Each conversion is ~500–800 prompt tokens + image tokens + ~2000 generation tokens. A few cents per screenshot. The tool replaces 30–60 minutes of manual JSX work per screen.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Point&lt;/strong&gt;&lt;br&gt;
This doesn't replace frontend engineering. It removes the part that doesn't need one — translating static visuals into boilerplate markup. Get the structure from the screenshot, then spend your time on architecture, state, performance, and the interactions that actually require expertise.&lt;br&gt;
Three hours to build. $5 to run. Every hour saved after that compounds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code&lt;/strong&gt;&lt;br&gt;
Full source on GitHub: &lt;a href="https://github.com/norbertose09/Screenshot-figma-to-react" rel="noopener noreferrer"&gt;github.com/norbertose/screenshot-figma-to-react&lt;/a&gt;&lt;br&gt;
Stack: Next.js · Go · Claude API. Clone it, swap in your ANTHROPIC_API_KEY, and run.&lt;br&gt;
The $5 subscription is still active.&lt;/p&gt;

</description>
      <category>react</category>
      <category>go</category>
      <category>ai</category>
      <category>webdev</category>
    </item>
    <item>
      <title>I Got Tired of Rebuilding Admin Dashboards, So I Made One Installable</title>
      <dc:creator>Norbert Madojemu</dc:creator>
      <pubDate>Thu, 25 Dec 2025 16:55:32 +0000</pubDate>
      <link>https://dev.to/norbert_madojemu_e4d44040/i-got-tired-of-rebuilding-admin-dashboards-so-i-made-one-installable-4ie2</link>
      <guid>https://dev.to/norbert_madojemu_e4d44040/i-got-tired-of-rebuilding-admin-dashboards-so-i-made-one-installable-4ie2</guid>
      <description>&lt;p&gt;Every admin dashboard I worked on looked different on paper — but structurally, they were the same.&lt;/p&gt;

&lt;p&gt;Same sidebar.&lt;br&gt;
Same header.&lt;br&gt;
Same colors.&lt;br&gt;
Same responsiveness problems.&lt;/p&gt;

&lt;p&gt;Yet for every new project, we rebuilt the layout from scratch.&lt;/p&gt;

&lt;p&gt;That changed the day I spent several minutes debugging a slightly “off” dashboard width in a new project and realized something was wrong with our process, not the layout.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Moment I’d Had Enough&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I was collaborating with a colleague on a new internal project. He built the initial admin layout, and when I opened it, something felt… off.&lt;/p&gt;

&lt;p&gt;The width wasn’t right.&lt;/p&gt;

&lt;p&gt;Not obviously broken. Just wrong enough to be annoying.&lt;/p&gt;

&lt;p&gt;So I spent several minutes digging through the layout:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;container widths&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;padding&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;sidebar calculations&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Tailwind classes stacked on Tailwind classes&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Eventually I found the issue, but the real question hit me harder:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why are we still debugging dashboard layouts in 2025?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We had already solved this problem before. Multiple times.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Real Problem (It Wasn’t the Layout)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The real issue wasn’t that dashboards are hard to build.&lt;/p&gt;

&lt;p&gt;It was that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;We kept rewriting the same TailwindCSS&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We copied files between projects and fixed breakages&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We re-tested mobile responsiveness every time&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Minor inconsistencies kept creeping in across projects&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All this before writing a single line of business logic.&lt;/p&gt;

&lt;p&gt;That’s when the idea became obvious:&lt;/p&gt;

&lt;p&gt;What if the dashboard itself was just… installable?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Idea: A Reusable Dashboard as an npm Package&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Instead of rebuilding or copying layouts, I wanted to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Install a package&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Get a consistent admin dashboard structure&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Skip layout and responsiveness setup&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Focus purely on features and logic&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Not a design system.&lt;br&gt;
Not a full-blown framework.&lt;/p&gt;

&lt;p&gt;Just a &lt;strong&gt;solid dashboard foundation.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Building the Dashboard (The Comfortable Part)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I started fresh and rebuilt the dashboard using:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;React&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;TypeScript&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;TailwindCSS&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It intentionally mirrored what we already used internally:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Same color palette&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Same font face&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Same sidebar/header/content structure&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Same responsive behavior&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This part was easy. Familiar. Almost relaxing.&lt;/p&gt;

&lt;p&gt;Then I decided to package it.&lt;/p&gt;

&lt;p&gt;That’s where things got… spicy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Turning It into an npm Package (The Humbling Part)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I genuinely thought this would be straightforward.&lt;/p&gt;

&lt;p&gt;It wasn’t.&lt;/p&gt;

&lt;p&gt;I actually gave up halfway through the first attempt.&lt;br&gt;
Then came back.&lt;br&gt;
Then almost gave up again.&lt;/p&gt;

&lt;p&gt;But a new project landed — one that needed the exact same dashboard — and I refused to rebuild it from scratch.&lt;/p&gt;

&lt;p&gt;So I pushed through.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Why Is My Design Broken?” — The Debugging Saga&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I packaged the dashboard, installed it into a host project, and…&lt;/p&gt;

&lt;p&gt;The layout broke.&lt;/p&gt;

&lt;p&gt;Spacing was off.&lt;br&gt;
Styles were missing.&lt;br&gt;
Everything looked almost right — which is the worst kind of wrong.&lt;/p&gt;

&lt;p&gt;After a lot of back-and-forth, I realized two key issues:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;The styles weren’t being bundled correctly&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The host project wasn’t resolving the style paths properly&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This led to a painful loop:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;fix&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;build&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;publish&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;install&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;notice something else broke&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The package went through several versions.&lt;/p&gt;

&lt;p&gt;I think we’re currently on &lt;strong&gt;version 8&lt;/strong&gt; — the first one I’d confidently call “stable”.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Finally Worked&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once I slowed down and treated this like a real library (not a side hack), things clicked.&lt;/p&gt;

&lt;p&gt;The final approach looked like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Build and test the dashboard normally with React + TypeScript&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set &lt;strong&gt;React as a peer dependency&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;it is very important to note that you don’t ship React with your library, you share the host app’s React instance&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Clean up the project structure&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Properly bundle styles so they work in consuming apps&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add a build step&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Publish to npm&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Simple in theory. Unforgiving in practice.&lt;/p&gt;

&lt;p&gt;A Tiny Usage Example&lt;/p&gt;

&lt;p&gt;Once installed, using the dashboard looks something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { DashboardLayout } from "admin-dashboard";

function App() {
  return (
    &amp;lt;DashboardLayout&amp;gt;
      &amp;lt;h1&amp;gt;Dashboard Overview&amp;lt;/h1&amp;gt;
      {/* Your actual features live here */}
    &amp;lt;/DashboardLayout&amp;gt;
  );
}

export default App;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s it.&lt;/p&gt;

&lt;p&gt;Sidebar.&lt;br&gt;
Header.&lt;br&gt;
Responsive layout.&lt;/p&gt;

&lt;p&gt;Handled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why This Was 100% Worth It&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, when I start a new project:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;I install the package&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I get a familiar, consistent dashboard instantly&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Mobile responsiveness is already solved&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Styling is no longer a recurring discussion&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most importantly, I get to focus on functionality, not layout déjà vu.&lt;/p&gt;

&lt;p&gt;This wasn’t about building a “cool npm package”.&lt;/p&gt;

&lt;p&gt;It was about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Saving time&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Reducing cognitive load&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enforcing consistency&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Treating internal tooling like a first-class citizen&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Final Thoughts&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you’ve rebuilt the same admin dashboard more than twice, this isn’t a motivation problem.&lt;/p&gt;

&lt;p&gt;It’s a systems problem.&lt;/p&gt;

&lt;p&gt;And sometimes, the most impactful solution isn’t a new feature —&lt;br&gt;
it’s packaging the thing you’re already tired of rebuilding.&lt;/p&gt;

&lt;p&gt;If this sounds familiar, maybe your next productivity win isn’t another refactor…&lt;/p&gt;

&lt;p&gt;Maybe it’s your first npm package.&lt;/p&gt;

</description>
      <category>react</category>
      <category>npm</category>
      <category>architecture</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
