<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gizem Boğa on Medium]]></title>
        <description><![CDATA[Stories by Gizem Boğa on Medium]]></description>
        <link>https://medium.com/@gizembogatech?source=rss-c1be05c94185------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*e5N6k1dmsJ-FGOKO</url>
            <title>Stories by Gizem Boğa on Medium</title>
            <link>https://medium.com/@gizembogatech?source=rss-c1be05c94185------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 23:18:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gizembogatech/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Modern Frontend Mimarisinde CAP Teoremi]]></title>
            <link>https://medium.com/digigeek/modern-frontend-mimarisinde-cap-teoremi-e28a63135b54?source=rss-c1be05c94185------2</link>
            <guid isPermaLink="false">https://medium.com/p/e28a63135b54</guid>
            <category><![CDATA[cap-theorem]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Gizem Boğa]]></dc:creator>
            <pubDate>Tue, 30 Dec 2025 21:05:29 GMT</pubDate>
            <atom:updated>2026-01-12T20:41:06.477Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*DcCHwCVaVAQ5xngzsru6dg.png" /></figure><p><strong>CAP Teoremi</strong> genellikle backend tarafında konuşulan, veritabanları ve mikroservislerle ilişkilendirilen bir kavram olarak bilinir. Bu yüzden frontend geliştiricilerin büyük bir kısmı için <strong>CAP</strong>, “bizim alanımızın dışında” kalan teorik bir başlık gibi durur.</p><p>Ancak modern <strong>frontend</strong> uygulamalarına yakından bakıldığında bu yaklaşımın artık geçerli olmadığı görülür. <strong>Cache</strong> kullanan, <strong>server-side rendering</strong> yapan, offline senaryoları olan ve hatta <strong>micro-frontend</strong> mimarileriyle çalışan bir frontend uygulaması, pratikte dağıtık bir sistem gibi davranır. Dolayısıyla <strong>CAP</strong> <strong>Teoremi</strong>, frontend tarafında da doğrudan karşılığı olan bir çerçeve hâline gelir.</p><p>Bu yazıda <strong>CAP Teoremi</strong>’ni frontend perspektifinden ele alacak, ardından <strong>React</strong> ve <strong>TanStack Query</strong> üzerinden bu kararların günlük geliştirme pratiğinde nasıl somutlaştığını inceleyeceğiz.</p><p>Bu yazıda sırasıyla:</p><ul><li>CAP Teoremi’nin ne olduğunu</li><li>Distributed systems kavramını</li><li>CAP’in her bir bileşeninin (C, A, P) ne anlama geldiğini</li><li>Bu kavramların frontend mimarileriyle neden doğrudan ilişkili olduğunu ele alacağız.</li><li>TanStack Query ve React üzerinden örnekler vereceğiz.</li></ul><h3>CAP Teoremi Nedir?</h3><p>CAP Teoremi, bir <strong>distributed system</strong>’ın aynı anda aşağıdaki üç özelliği tam olarak <strong>sağlayamayacağını</strong> ifade eder:</p><ol><li>Consistency (Tutarlılık)</li><li>Availability (Erişilebilirlik)</li><li>Partition Tolerance (Bölünmeye Dayanıklılık)</li></ol><h4>Teoremin özeti şudur:</h4><blockquote>Bir sistem, network partition’ların mümkün olduğu bir ortamda, Consistency ve Availability’den yalnızca birini tam olarak garanti edebilir.</blockquote><h4>Buradaki kritik varsayım şudur:</h4><blockquote>Gerçek dünyada “partition hiç olmaz” varsayımı geçerli değildir.</blockquote><h3>Distributed Systems Nedir ve Neden Önemlidir?</h3><p><strong>Distributed system</strong>, tek bir makine veya süreç yerine; birden fazla bağımsız bileşenin network üzerinden birlikte çalıştığı sistemlerdir.</p><h4>Örnekler:</h4><ul><li>Mikroservis mimarileri</li><li>CDN + API + Client yapıları</li><li>Client-side cache katmanları</li><li>Micro-frontend mimarileri</li></ul><h4>Distributed sistemlerin doğasında şunlar vardır:</h4><ul><li>Network gecikmeleri</li><li>Paket kayıpları</li><li>Timeout’lar</li><li>Bağımsız bileşenlerin farklı zamanlarda cevap vermesi</li></ul><p><strong>CAP Teoremi</strong>, bu belirsizlik ortamında <strong>hangi davranışın tercih edildiğini açıkça tanımlamak </strong>için kullanılır.</p><h3>CAP Teoremi’nin Bileşenleri</h3><h3>1. Consistency (C) — Tutarlılık</h3><p>Consistency, sistemdeki tüm istemcilerin <strong>her zaman aynı ve en güncel veriyi</strong> görmesi anlamına gelir.</p><p>Bu yaklaşımda:</p><ul><li>Bir write işlemi tamamlandıysa, sonraki tüm read’ler bu veriyi görmelidir</li><li>Eski veya geçici veri gösterilmez</li><li>“Doğru veri” her şeyin önündedir</li></ul><p>Consistency odaklı sistemlerde:</p><ul><li>Kullanıcı beklemek zorunda kalabilir</li><li>Sistem geçici olarak yanıt vermeyebilir</li><li>Ancak yanlış veya çelişkili veri gösterilmez</li></ul><p>Finansal işlemler, ödeme adımları ve kritik onay süreçleri için vazgeçilmezdir.</p><h3>2. Availability (A) — Erişilebilirlik</h3><p>Availability, sistemin <strong>her isteğe mutlaka bir yanıt dönebilmesi</strong> anlamına gelir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IILwhAAdzHuNJIqg" /><figcaption>Photo by <a href="https://unsplash.com/@picsbyjameslee?utm_source=medium&amp;utm_medium=referral">James Lee</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Bu yaklaşımda:</p><ul><li>Sistem her zaman “çalışıyor” görünür</li><li>Kullanıcı etkileşime devam edebilir</li><li>Dönen verinin güncel olması garanti değildir</li></ul><p>Availability odaklı sistemlerde:</p><ul><li>Cache veya eski veri gösterilebilir</li><li>Kullanıcı deneyimi ön plandadır</li><li>“Yanıt vermek”, “doğru yanıt vermekten” önce gelir</li></ul><p>Dashboard’lar, içerik ve listeleme ekranları için yaygın bir tercihtir.</p><h3>3. Partition Tolerance (P) — Bölünmeye Dayanıklılık</h3><p>Partition Tolerance, sistemin <strong>network kopmaları veya gecikmeler yaşandığında da çalışmaya devam edebilmesi</strong> anlamına gelir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2d2ltWHkILz9bRVF" /><figcaption>Photo by <a href="https://unsplash.com/@simone_dalmeri?utm_source=medium&amp;utm_medium=referral">Simone Dalmeri</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Backend dünyasında partition:</p><ul><li>Node’lar arası bağlantı kopması</li><li>Replikasyon gecikmeleri</li></ul><p>Frontend dünyasında partition:</p><ul><li>Zayıf veya kesilen internet bağlantısı</li><li>API timeout’ları</li><li>CDN problemleri</li><li>Micro-frontend’lerden birinin yüklenememesi</li></ul><p>Önemli nokta şudur:</p><blockquote><em>Distributed bir sistemde partition bir ihtimal değil, </em><strong><em>kesin bir gerçektir</em></strong><em>.</em></blockquote><p>Bu nedenle modern sistemler P’yi <strong>zorunlu bir özellik</strong> olarak kabul eder.</p><h3>CAP Neden “Üçü Birden Olmaz” Der?</h3><p><strong>Partition</strong>’ın kaçınılmaz olduğu kabul edildiğinde sistem şu soruyla karşı karşıya kalır;</p><p>Network kopukken:</p><ul><li><strong>Doğru veri mi göstermeliyim?</strong></li><li><strong>Yoksa sistemi çalışır mı tutmalıyım?</strong></li></ul><p>Bu noktada sistem:</p><ul><li>Ya <strong>Consistency</strong>’yi seçer</li><li>Ya <strong>Availability</strong>’yi seçer</li></ul><p>Ancak ikisini aynı anda garanti edemez.</p><h3>CAP Kesişimleri</h3><h3>CP — Consistency + Partition Tolerance</h3><blockquote>Network kopsa bile yanlış veri gösterme.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*kZl6gLoSAb92tLFzGD8-Bg.png" /><figcaption>Consistency + Partition Tolerance</figcaption></figure><p>Bu yaklaşımda:</p><ul><li>Sistem geçici olarak yanıt vermeyebilir</li><li>UI bloklanabilir</li><li>Ancak veri her zaman doğrudur</li></ul><p>Kritik işlemler için uygundur.</p><h3>AP — Availability + Partition Tolerance</h3><blockquote><em>Veri eski olabilir ama sistem çalışmalı.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*b2PV-7Nr6MIWN--CzG96ng.png" /></figure><p>Bu yaklaşımda:</p><ul><li>UI her zaman ayakta tutulur</li><li>Cache veya stale veri gösterilebilir</li><li>Kullanıcı deneyimi önceliklidir</li></ul><p>Modern frontend uygulamalarının büyük çoğunluğu bu gruptadır.</p><h3>CA — Consistency + Availability</h3><blockquote><em>Her zaman güncel veri ve her zaman çalışan sistem.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ZQE27Yq2sYyEQdy9TpMbfg.png" /></figure><p>Bu yaklaşım, <strong>partition olmadığı varsayımına dayanır</strong>.<br>Distributed sistemlerde bu varsayım gerçekçi değildir.</p><p>CA yalnızca:</p><ul><li>Lokal</li><li>Network bağımsız</li><li>Demo veya mock ortamlar</li></ul><p>gibi sınırlı senaryolarda mümkündür.</p><h3>Frontend Bu Konunun Neresinde?</h3><p>Modern frontend uygulamaları:</p><ul><li>Cache kullanır</li><li>SSR ve hydration yapar</li><li>Offline davranışlar tanımlar</li><li>Micro-frontend mimarileri uygular</li></ul><p>Bu nedenle frontend:</p><blockquote><strong>Distributed system’in pasif değil, karar veren bir parçasıdır.</strong></blockquote><p>Cache süreleri, loading davranışları, error handling ve offline UX; hepsi birer <strong>CAP tercihidir</strong>.</p><h3>CAP Teoremi’ni React ve TanStack Query ile Somutlaştırmak</h3><p>CAP Teoremi frontend’de teorik bir kavram olarak kalmamalıdır. Gerçek değeri, günlük geliştirme sırasında aldığımız <strong>cache</strong>, <strong>loading</strong>, <strong>error handling</strong> ve <strong>offline davranış</strong> kararlarında ortaya çıkar. React ekosisteminde TanStack Query, frontend’in CAP tercihlerini açıkça ifade edebildiğimiz en net araçlardan biridir.</p><h4>1. ) AP Yaklaşımı: Availability + Partition Tolerance</h4><blockquote>“Veri eski olabilir ama UI çalışmalı.”</blockquote><p>Bu yaklaşım, dashboard’lar ve listeleme ekranları için en yaygın tercihtir.</p><p>Örnek Senaryo:</p><ul><li>Kullanıcı uygulamayı açar</li><li>Network yavaş veya geçici olarak kopuktur</li><li>Daha önce alınmış veri cache’te mevcuttur</li></ul><p>Bu durumda amaç:</p><ul><li>UI’yi hızlıca göstermek</li><li>Kullanıcıyı bekletmemek</li><li>Arka planda veriyi güncellemeye çalışmak</li></ul><h4>1.a ) TanStack Query ile AP Konfigürasyonu</h4><pre>useQuery({<br>  queryKey: [&#39;campaignList&#39;],<br>  queryFn: fetchCampaigns,<br>  staleTime: 2 * 60 * 1000,<br>  refetchOnWindowFocus: false,<br>});</pre><ul><li>staleTime: → 2 dakika boyunca veri “kabul edilebilir derecede güncel” sayılır</li><li>Cache varsa UI <strong>anında render edilir</strong></li><li>Network kopsa bile uygulama çalışır</li></ul><p>Bu yapı, frontend’in bilinçli olarak:</p><ul><li><strong>Availability’yi</strong></li><li><strong>Partition Tolerance’ı</strong></li></ul><p>önceliklendirdiğini gösterir.</p><h4>1.b ) SSR + Client Hydration: CAP Geriliminin En Net Hali</h4><p>Server-Side Rendering kullanılan projelerde CAP gerilimi daha görünür hâle gelir.</p><p>SSR Tarafı</p><pre>// getServerSideProps veya server component<br>await queryClient.fetchQuery({<br>  queryKey: [&#39;campaignList&#39;],<br>  queryFn: fetchCampaigns,<br>  staleTime: 5 * 60 * 1000,<br>});</pre><p>Bu noktada:</p><ul><li>Veri sunucuda alınır</li><li>HTML içerisine gömülür</li><li>Kullanıcı sayfayı açtığında listeyi <strong>anında</strong> görür</li></ul><p>Sayfa hızlı açılmıştır. Kullanıcı beklemez. Bu, net bir <strong>Availability</strong> tercihidir.</p><p>Client tarafı:</p><pre>useQuery({<br>  queryKey: [&#39;campaignList&#39;],<br>  queryFn: fetchCampaigns,<br>});</pre><p>TanStack Query açısından bu veri:</p><ul><li>Cache’te vardır</li><li>Ama staleTime verilmediği için <strong>stale</strong> kabul edilir</li></ul><p>Sonuç olarak:</p><ul><li>UI, SSR’dan gelen veriyle render edilir</li><li>Aynı anda arka planda yeniden fetch başlar</li></ul><p>Kullanıcı çoğu zaman bunun farkına bile varmaz. Ancak mimari açıdan çok önemli bir karar alınmıştır.</p><h4>Burada frontend şunu söyler:</h4><blockquote>“Kullanıcıyı bekletmeyeceğim. Önce ekranda bir şey göstereceğim.<em><br></em>Veriyi sonra güncellerim.”</blockquote><p>Yani:</p><ul><li><strong>UI hızlı açılır → Availability</strong></li><li><strong>Veri sonradan doğrulanır → Consistency gecikmeli sağlanır</strong></li></ul><p>Bu, CAP Teoremi açısından bakıldığında:</p><ul><li><strong>Partition</strong> ihtimali kabul edilmiştir</li><li><strong>Availability</strong> öne alınmıştır</li><li><strong>Consistency</strong> bilerek ertelenmiştir</li></ul><h4>2. ) CP Yaklaşımı: Consistency + Partition Tolerance</h4><blockquote>“Network kopsa bile yanlış veri göstermem.”</blockquote><p>Bu yaklaşım, kritik kullanıcı aksiyonlarının olduğu ekranlarda tercih edilir.</p><h4>Örnek Senaryo</h4><ul><li>Ödeme ekranı</li><li>Kullanıcı “Satın Al” butonuna basacak</li><li>Veri güncel değilse işlem kesinlikle yapılmamalı</li></ul><h4>TanStack Query ile CP Eğilimli Konfigürasyon</h4><pre>useQuery({<br>  queryKey: [&#39;paymentSummary&#39;],<br>  queryFn: fetchPaymentSummary,<br>  staleTime: 0,<br>  retry: false,<br>});</pre><ul><li>Veri her zaman <strong>stale</strong> kabul edilir</li><li>Cache’te veri olsa bile yeniden fetch edilir</li><li>Network yoksa; UI bloklanır ve kullanıcıya hata gösterilir</li></ul><p>Bu yaklaşımda frontend:</p><ul><li>Availability’den bilinçli olarak vazgeçer</li><li>Tutarlılığı mutlak öncelik kabul eder</li></ul><h3>Sonuç: Frontend’de Asıl Mesele Ne Seçtiğini Bilmek</h3><p><strong>CAP Teoremi</strong> frontend için teorik bir kavram değil, her gün verdiğimiz teknik kararların arkasındaki düşünce çerçevesidir. Cache süreleri, loading davranışları, SSR ve hydration stratejileri ya da offline senaryoları tasarlarken, farkında olsak da olmasak da aynı soruya cevap veririz:</p><p><strong>Bu ekranda kullanıcıyı bekletmek mi daha doğru, yoksa geçici olarak eksik bir bilgi göstermek mi?</strong></p><p>Modern frontend uygulamalarında, özellikle kritik olmayan kullanıcı akışlarında, varsayılan yaklaşım çoğu zaman kullanıcıyı bekletmemek yönündedir. Mevcut veri hemen gösterilir, doğruluk ise arka planda sağlanır. Bu, <strong>Availability</strong>’nin öne alındığı;<strong> Consistency</strong>’nin ise bilinçli olarak gecikmeli veya sınırlı şekilde ele alındığı bir tercihtir.</p><p>Ancak bu yaklaşım evrensel bir kural değildir. Ödeme, onay veya veri doğruluğunun mutlak olduğu ekranlarda frontend, <strong>Availability</strong>’den vazgeçerek <strong>Consistency</strong>’yi önceliklendirir. Bu noktada doğru olmayan bir veriyi göstermektense, hiçbir şey göstermemek tercih edilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DYJZ2-tV5rh1eK4T" /><figcaption>Photo by <a href="https://unsplash.com/@jakobowens1?utm_source=medium&amp;utm_medium=referral">Jakob Owens</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>CAP Teoremi</strong> tam olarak bu ayrımı netleştirir. Hangi özelliğin her zaman mümkün olmadığını söyler ve geliştiriciyi, her ekran için neyin feda edileceğine bilinçli şekilde karar vermeye zorlar. Yanlış olan şey <strong>Availability</strong> ya da <strong>Consistency</strong>’yi seçmek değildir; asıl problem, bu seçimleri farkında olmadan ve bağlamdan bağımsız şekilde yapmaktır.</p><p>Frontend artık yalnızca component yazılan bir katman değildir. Network hatalarını, cache davranışlarını ve veri tutarlılığını yöneten; dağıtık bir sistemin aktif bir parçasıdır. Bu nedenle bir frontend mimarisinin kalitesi, kullanılan framework’ten çok, <strong>hangi senaryoda hangi davranışın sergilendiğinin açıkça tanımlanmış olmasıyla</strong> ölçülür.</p><p>CAP Teoremi bu noktada bir kısıt değil, güçlü bir pusuladır. “Mükemmel sistem” arayışını bir kenara bırakıp şu soruyu sordurur:</p><p><strong>Bu ekranda neyi kaybetmeye hazırım?</strong></p><p>Bu soruya net cevabı olan frontend uygulamaları, yalnızca daha hızlı değil; aynı zamanda daha öngörülebilir, daha dayanıklı ve kullanıcıya karşı daha tutarlı sistemlerdir.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e28a63135b54" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digigeek/modern-frontend-mimarisinde-cap-teoremi-e28a63135b54">Modern Frontend Mimarisinde CAP Teoremi</a> was originally published in <a href="https://medium.com/digigeek">DigiGeek</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Integrate Zeplin Designs into React Projects Using GitHub Copilot and MCP]]></title>
            <link>https://medium.com/digigeek/how-to-integrate-zeplin-designs-into-react-projects-using-github-copilot-nad-mcp-d3105495db2f?source=rss-c1be05c94185------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3105495db2f</guid>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[zeplin]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mcp-server]]></category>
            <dc:creator><![CDATA[Gizem Boğa]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 12:07:36 GMT</pubDate>
            <atom:updated>2025-12-10T05:17:44.665Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lNhd6xPGMoTzhIlH04ZiOQ.png" /></figure><h3>What You Will Learn by the End of This Article</h3><p>By the end of this article, you will understand:</p><ul><li>How Copilot can fetch <strong>Zeplin</strong> designs and translate them into <strong>React components</strong></li><li><strong>How to let Copilot access the full design file directly, instead of sending screenshots</strong></li><li>How to connect Zeplin, GitHub Copilot, and MCP to streamline design-to-code workflows</li><li>How to set up and configure the <strong>MCP server </strong>in <strong>VS Code</strong></li><li>How to automate repetitive UI development tasks using this integration</li><li>A<strong> step-by-step</strong> example of converting a Zeplin screen into a fully coded React component</li></ul><h3>Introduction</h3><p>Modern frontend development demands a seamless connection between design and implementation. As teams scale and UI complexity grows, even small inconsistencies between design tools and codebases can create significant friction.</p><p>A new workflow — powered by <strong>Zeplin</strong>, <strong>GitHub Copilot,</strong> <strong>Visual Studio Code</strong>, and the <strong>Model Context Protocol</strong> (MCP) — provides a streamlined, intelligent bridge between design and code.</p><p>This article explains<strong> how to set up</strong> that integration and <strong>demonstrates</strong> why it is a game-changer for frontend engineers.</p><h3>Why This Integration Matters</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RCJumEoBRE6f0D4l" /><figcaption>Photo by <a href="https://unsplash.com/@vladimir_d?utm_source=medium&amp;utm_medium=referral">Volodymyr Dobrovolskyy</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Turning design files into accurate, production-ready UI components can be time-consuming. Developers often jump between Zeplin, Figma, or Sketch and their code editor, manually checking spacing, colors, typography, and component structures.</p><p><strong>In many cases, they even resort to sending screenshots to Copilot and asking it to “guess” the layout.</strong></p><blockquote><strong>But screenshots are limited:<br></strong> Copilot can only infer what it sees, without access to real tokens, measurements, or the full design hierarchy.</blockquote><p>With MCP, GitHub Copilot gains <strong>direct access to the entire Zeplin design file</strong>—not just an image of it.</p><p>This allows Copilot to read actual layout data, spacing values, color tokens, component structure, and style rules. As a result, it can generate highly accurate React components that match the design specifications far more reliably than any screenshot-based workflow.</p><blockquote>The result:<br>Less manual work. Fewer inconsistencies. Faster delivery.</blockquote><h3>What You Need Before You Start</h3><p>To enable<strong> Zeplin–Copilot–VS Code</strong> integration, make sure the following tools are installed:</p><h3>1. Node.js</h3><p>The MCP server runs as a<strong> Node.js </strong>application.<br>Install the latest LTS version from the official <strong>Node.js</strong> website.</p><h3>2. NPM</h3><p>NPM comes bundled with <strong>Node.js</strong> and is required to install the <strong>Zeplin MCP server package</strong> (@zeplin/mcp-server).</p><h3>3. Visual Studio Code + GitHub Copilot</h3><p>VS Code is where the <strong>MCP server </strong>is <strong>configured</strong> and <strong>executed</strong>.<br>Copilot uses MCP to convert Zeplin design data into code suggestions.</p><h3>4. Zeplin Access Token</h3><p>Required for the <strong>MCP server</strong> to <strong>fetch</strong> design information via the <strong>Zeplin API</strong>.</p><h3>How to Install and Configure the MCP Server</h3><p>There are two ways to set up the MCP server:<br>a quick setup using the VS Code UI, or a project-level configuration using mcp.json.</p><h3>Method 1: Install the MCP Server via VS Code UI (Fastest)</h3><p>This approach is perfect for developers who want a fast, frictionless setup.</p><ol><li>Open the Command Palette:<br><strong>Cmd + Shift + P → Add Server</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ymLdXCGoXgTBDXXyqKiVvQ.png" /><figcaption><strong>Example — VS Code</strong></figcaption></figure><p>2. Choose <strong>NPM</strong> as the installation method.</p><p>3. Enter the package name:<br>@zeplin/mcp-server</p><p>4. Paste your <strong>Zeplin access token</strong> when prompted.</p><p>5. To start the server:<br><strong>Cmd + Shift + P → List Servers → Select your Zeplin server</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_RnIUnnxxOTUMTSPPCIWbA.png" /><figcaption><strong>Example — VS Code</strong></figcaption></figure><blockquote>No manual configuration. No extra files. Just plug in and start coding.</blockquote><h3>Method 2: Configure the MCP Server Manually Using mcp.json</h3><ol><li>Create a configuration file named <em>“mcp.json” </em>in:<br>./vscode/mcp.json</li><li>Start with the example from <a href="https://docs.github.com/en/copilot/how-tos/provide-context/use-mcp/extend-copilot-chat-with-mcp#configuring-mcp-servers-manually">GitHub’s MCP documentation:</a></li></ol><pre>{<br>  &quot;inputs&quot;: [<br>    {<br>      &quot;type&quot;: &quot;promptString&quot;<br>    }<br>  ],<br>  &quot;servers&quot;: {<br>    &quot;fetch&quot;: {<br>      &quot;command&quot;: &quot;uvx&quot;,<br>      &quot;args&quot;: [&quot;mcp-server-fetch&quot;]<br>    }<br>  }<br>}</pre><p>3. Add your <strong>Zeplin MCP server configuration</strong>:</p><p>— Visit: <a href="https://app.zeplin.io/">https://app.zeplin.io</a></p><p>— Click <strong>VS Code Connect</strong> in the right-hand sidebar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*MTD9rxm0AF73QwP0ZsaITw.png" /><figcaption><strong>Example — Zeplin</strong></figcaption></figure><p>— Generate your Zeplin access token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1sjgsvMBRRYtjwwG8hTiMg.png" /><figcaption><strong>Example — Zeplin</strong></figcaption></figure><p>— Insert the block <em>“zeplin” </em>into the servers section in our <em>mcp.json</em> file:</p><pre>{<br>  &quot;inputs&quot;: [<br>    {<br>      &quot;type&quot;: &quot;promptString&quot;<br>    }<br>  ],<br>  &quot;servers&quot;: {<br>    &quot;zeplin&quot;: {<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [&quot;-y&quot;, &quot;@zeplin/mcp-server@latest&quot;],<br>      &quot;env&quot;: {<br>        &quot;ZEPLIN_ACCESS_TOKEN&quot;: &quot;{your_token}&quot;<br>      }<br>    }<br>  }<br>}</pre><p>Save the file, then click the <strong>Start Server</strong> button that appears in VS Code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*-iN0naQzB9ujYFPIbCxDfw.png" /></figure><h3><strong>Practical Example: Using MCP to Turn Zeplin Designs into React Code</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ihGZdp3yWvSs0bzT" /><figcaption>Photo by <a href="https://unsplash.com/@alisvisuals?utm_source=medium&amp;utm_medium=referral">Ali Hajian</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Once the <strong>MCP server </strong>is <strong>running</strong>, the experience inside <strong>VS Code</strong> becomes dramatically more powerful.</p><p>In <strong>Copilot Agent Mode</strong>, you can simply paste a Zeplin screen link and ask Copilot to:</p><ol><li><strong>Open your project in VS Code</strong><br>Make sure the MCP server is <strong>running</strong> and properly connected (Zeplin MCP server configured and started in VS Code).</li><li><strong>Activate GitHub Copilot Chat (Agent mode)</strong><br>Open the <strong>Copilot Chat panel</strong> in <strong>VS Code</strong> and ensure you are using the <strong>MCP-enabled</strong> “agent” that has access to the <strong>Zeplin server.</strong></li><li><strong>Provide the Zeplin link</strong><br>Paste the URL of the Zeplin screen, component, or project into the Copilot chat. <br>Example prompt:<br><strong><em>“Use this Zeplin design to generate a React component: &lt;Zeplin link&gt;”</em></strong></li><li><strong>Ask Copilot to fetch and interpret the design</strong><br>Instruct Copilot to retrieve the design details via MCP and analyze them: layout, spacing, typography, colors, and component structure.<br>Example prompt: <br><strong><em>“Fetch this Zeplin design via MCP and describe its structure and styles. Then propose a React component implementation.”</em></strong></li><li><strong>Generate the React component</strong><br>Ask Copilot to <strong>produce a React component</strong> that matches the Zeplin design.<br>Example prompt: <br><strong><em>“Generate a React component for this design using functional components and our existing styling approach (e.g., CSS Modules/Tailwind).”</em></strong></li><li><strong>Review and refine the code<br> — </strong>Verify that the generated component reflects the Zeplin design accurately.<br> — Adjust naming, props, and structure to fit your existing architecture or design system.<br> — Optionally, ask Copilot to extract reusable subcomponents or hooks.</li><li><strong>Reuse for repetitive UI patterns</strong><br>This workflow is especially powerful for repetitive or pattern-based UI elements (cards, lists, headers, modals, etc.), where Copilot can repeatedly generate consistent components from similar Zeplin designs.</li></ol><blockquote>This eliminates tedious manual measurement and helps enforce a consistent design system</blockquote><h3>How GitHub Copilot Enhances This Process</h3><p>Copilot becomes significantly smarter with MCP:</p><ul><li>It understands the actual design instead of guessing.</li><li>It can read component hierarchies directly from Zeplin.</li><li>It produces cleaner, more accurate code.</li><li>It reduces repetitive UI implementation work.</li></ul><blockquote>This is especially beneficial in large-scale <strong>React</strong> or <strong>Next.js </strong>applications where consistency and speed are crucial.</blockquote><h3>Why Frontend Developers Love This Setup</h3><p>Integrating Zeplin with MCP and Copilot offers several major advantages:</p><ul><li>Faster transition from design to code</li><li>Stronger alignment with UI specs</li><li>Reduced styling errors</li><li>Less context switching</li><li>Easier onboarding for new developers</li><li>Improved DX across the team</li></ul><blockquote>In short:<br>You spend less time translating pixels and more time solving meaningful problems.</blockquote><h3>Final Thoughts</h3><p>The integration of Zeplin, GitHub Copilot, VS Code, and MCP is more than a convenience — it represents a modern, efficient way to build UI at scale. By reducing manual effort and eliminating design-to-code inconsistencies, developers can produce higher-quality interfaces faster and with greater confidence.</p><p>If you’re looking to enhance your frontend workflow, this setup is one of the most impactful improvements you can implement.</p><p>To learn more, visit Zeplin’s official documentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PIMJAnbpRp9Y4aVK" /><figcaption>Photo by <a href="https://unsplash.com/@blakeweyland?utm_source=medium&amp;utm_medium=referral">Blake Weyland</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3105495db2f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/digigeek/how-to-integrate-zeplin-designs-into-react-projects-using-github-copilot-nad-mcp-d3105495db2f">How to Integrate Zeplin Designs into React Projects Using GitHub Copilot and MCP</a> was originally published in <a href="https://medium.com/digigeek">DigiGeek</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>