<?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>Forem: shivam kumar</title>
    <description>The latest articles on Forem by shivam kumar (@shivam_kumar_ffa16410b3fe).</description>
    <link>https://forem.com/shivam_kumar_ffa16410b3fe</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3886098%2F603eb1a8-9a60-4a2d-a062-9248b6df6671.png</url>
      <title>Forem: shivam kumar</title>
      <link>https://forem.com/shivam_kumar_ffa16410b3fe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/shivam_kumar_ffa16410b3fe"/>
    <language>en</language>
    <item>
      <title>Earth, Not as a line chart. Not as a dashboard. As a living, breathing 120,000-cell map where every pixel is a differential equation</title>
      <dc:creator>shivam kumar</dc:creator>
      <pubDate>Mon, 20 Apr 2026 06:57:44 +0000</pubDate>
      <link>https://forem.com/shivam_kumar_ffa16410b3fe/earth-not-as-a-line-chart-not-as-a-dashboard-as-a-living-breathing-120000-cell-map-where-every-299f</link>
      <guid>https://forem.com/shivam_kumar_ffa16410b3fe/earth-not-as-a-line-chart-not-as-a-dashboard-as-a-living-breathing-120000-cell-map-where-every-299f</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/challenges/weekend-2026-04-16"&gt;Weekend Challenge: Earth Day Edition&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;TERRA-STATE: VOX ATLAS&lt;/strong&gt;, a real-time ecological simulation that runs on a 200×600 world grid with 120,000 active cells.&lt;/p&gt;

&lt;p&gt;The project turns ecological and economic feedback into a live, playable planet. Forests generate water, agriculture drains soil, cities expand, and a DESERTIFICATION CASCADE can collapse the world if the balance breaks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Run the app locally:&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/shivamKumarG11/Dev-to-Weekend-challenge-Earthday-edition-submission.git
&lt;span class="nb"&gt;cd &lt;/span&gt;Dev-to-Weekend-challenge-Earthday-edition-submission
python run.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Then open:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://localhost:8000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Video demo: &lt;a href="https://youtu.be/wpWgt12ABmo" rel="noopener noreferrer"&gt;https://youtu.be/wpWgt12ABmo&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&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/shivamKumarG11" rel="noopener noreferrer"&gt;
        shivamKumarG11
      &lt;/a&gt; / &lt;a href="https://github.com/shivamKumarG11/Dev-to-Weekend-challenge-Earthday-edition-submission" rel="noopener noreferrer"&gt;
        Dev-to-Weekend-challenge-Earthday-edition-submission
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &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;Dev-to-Weekend-challenge-Earthday-edition-submission&lt;/h1&gt;

&lt;/div&gt;

&lt;/div&gt;
&lt;br&gt;
&lt;br&gt;
  &lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/shivamKumarG11/Dev-to-Weekend-challenge-Earthday-edition-submission" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;p&gt;The codebase is structured with a clean separation between simulation, external services, and frontend rendering.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;terra-state/app.py&lt;/code&gt; — FastAPI entrypoint, routes, and integration wiring&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;terra-state/core/engine.py&lt;/code&gt; — world state machine, tick loop, and grid operations&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;terra-state/core/simulation.py&lt;/code&gt; — pure differential-equation physics for biomes&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;terra-state/core/models.py&lt;/code&gt; — Pydantic v2 schemas for state and API contracts&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;terra-state/services/auth0_guard.py&lt;/code&gt; — JWT validation for authenticated agent actions&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;terra-state/services/gemini_oracle.py&lt;/code&gt; — Google Gemini advisory prompt builder&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;terra-state/services/snowflake_log.py&lt;/code&gt; — async telemetry sink for every tick&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;terra-state/services/backboard.py&lt;/code&gt; — live climate multiplier fetcher&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;terra-state/static/&lt;/code&gt; — frontend shell, Canvas renderer, app controller, styles&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I built the app with a focus on making the system feel immediate and scientifically grounded.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Isolated the physics engine in &lt;code&gt;terra-state/core/simulation.py&lt;/code&gt; so the world logic is testable and independent from HTTP or UI&lt;/li&gt;
&lt;li&gt;Used &lt;strong&gt;FastAPI&lt;/strong&gt; to expose a tick endpoint, world state hydration, Oracle sector reports, authenticated agent actions, and integration endpoints&lt;/li&gt;
&lt;li&gt;Added a &lt;code&gt;POST /tick&lt;/code&gt; route that advances the simulation and fires an async Snowflake logger without blocking the response&lt;/li&gt;
&lt;li&gt;Implemented Auth0 JWT verification in &lt;code&gt;terra-state/services/auth0_guard.py&lt;/code&gt;, with a local &lt;code&gt;dev-token&lt;/code&gt; bypass for development&lt;/li&gt;
&lt;li&gt;Wired Google Gemini to generate a concise advisory bulletin from the live world state&lt;/li&gt;
&lt;li&gt;Added Backboard remote config to influence drought severity and market demand every tick&lt;/li&gt;
&lt;li&gt;Built the frontend as a zero-framework HTML5 Canvas SPA with pan/zoom controls and a live metrics strip&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Best Use of &lt;strong&gt;Backboard&lt;/strong&gt; — live climate overrides influence drought and market demand in real time&lt;/li&gt;
&lt;li&gt;Best Use of &lt;strong&gt;Auth0 for Agents&lt;/strong&gt; — authenticated spatial agent actions with audit logging&lt;/li&gt;
&lt;li&gt;Best Use of &lt;strong&gt;Google Gemini&lt;/strong&gt; — AI bulletins from the current planetary state&lt;/li&gt;
&lt;li&gt;Best Use of &lt;strong&gt;Snowflake&lt;/strong&gt; — non-blocking telemetry logging for every simulation tick&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>weekendchallenge</category>
      <category>ai</category>
    </item>
    <item>
      <title>Launching DSTAIR: 3 Insights from Building a High-End Analytical Platform</title>
      <dc:creator>shivam kumar</dc:creator>
      <pubDate>Sat, 18 Apr 2026 19:10:46 +0000</pubDate>
      <link>https://forem.com/shivam_kumar_ffa16410b3fe/launching-dstair-3-insights-from-building-a-high-end-analytical-platform-45ki</link>
      <guid>https://forem.com/shivam_kumar_ffa16410b3fe/launching-dstair-3-insights-from-building-a-high-end-analytical-platform-45ki</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey DEV Community! 👋&lt;/strong&gt; For my very first post here, I wanted to share a major project I recently launched. I’m an engineering student at IIT Madras, and I led the technical development and UI/UX redesign for &lt;strong&gt;&lt;a href="https://www.institutionalreform.org/" rel="noopener noreferrer"&gt;DSTAIR | Institutional Reform Analysis&lt;/a&gt;&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Spearheaded by my professor, it's a web-based diagnostic tool designed to evaluate a country's institutional health and recommend targeted anti-corruption policies. Bringing his methodology to life as a production-ready platform meant merging complex data processing with a premium web experience. &lt;/p&gt;

&lt;p&gt;Here are three architectural and design insights I gained during the build.&lt;/p&gt;

&lt;h3&gt;
  
  
  Insight 1: Streamlining Database Logic
&lt;/h3&gt;

&lt;p&gt;To maintain a strict and clean architecture, I completely removed the traditional repository layer. Instead, I tied all database interactions directly into the data models themselves. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Result:&lt;/strong&gt; HTTP routes remain incredibly thin—handling only basic parsing and session logic—while the business logic remains centralized. Keeping the models "fat" and the routes "thin" made the complex mathematical scoring logic much easier to scale and maintain.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Insight 2: The "Economist meets OpenAI" Aesthetic
&lt;/h3&gt;

&lt;p&gt;Most data-heavy institutional tools are clunky and visually dated. We wanted an authoritative, intellectual, and clean aesthetic. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Execution:&lt;/strong&gt; To present dense institutional diagnostics without overwhelming the user, I relied heavily on a &lt;strong&gt;Bento Grid&lt;/strong&gt; layout. It forces design restraint, organizes complex data into highly digestible cards, and makes translating intricate data dashboards to mobile devices significantly easier. &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Insight 3: Bridging Server Context with Frontend Reactivity
&lt;/h3&gt;

&lt;p&gt;The core analysis workspace is a highly dynamic interface that needs heavy context from the backend to compute legitimacy scores on the fly in the browser. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Solution:&lt;/strong&gt; Instead of relying on a messy external JavaScript architecture that struggles to securely access backend variables, I embedded the core workspace logic directly inside the server-rendered templates. This allowed instant, secure access to backend context and routing URLs, while using a lightweight, declarative frontend framework to handle simple UI states natively.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Explore the Live Platform
&lt;/h3&gt;

&lt;p&gt;You can check out my professor's methodology and the live tool we built here: &lt;strong&gt;&lt;a href="https://www.institutionalreform.org/" rel="noopener noreferrer"&gt;DSTAIR | Institutional Reform Analysis&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I’d love to hear from other developers building data-heavy apps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Have you experimented with tying database logic directly to your models in Python frameworks?&lt;/li&gt;
&lt;li&gt;How do you prefer to handle the bridge between server-side context and frontend engines?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let me know in the comments. Excited to finally join and share with the DEV community!&lt;/p&gt;

</description>
      <category>analytics</category>
      <category>architecture</category>
      <category>showdev</category>
      <category>ux</category>
    </item>
  </channel>
</rss>
