<?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: Enzo Bellussi</title>
    <description>The latest articles on DEV Community by Enzo Bellussi (@bellussi1).</description>
    <link>https://dev.to/bellussi1</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%2F4258888%2F9b88dce0-76cc-4f04-82b0-7f0f56af5a4c.png</url>
      <title>DEV Community: Enzo Bellussi</title>
      <link>https://dev.to/bellussi1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bellussi1"/>
    <language>en</language>
    <item>
      <title>How I Drew a Historical Globe on a Canvas Without a Map Library (140 Territories, 271 Connections)</title>
      <dc:creator>Enzo Bellussi</dc:creator>
      <pubDate>Tue, 24 Nov 2026 17:46:44 +0000</pubDate>
      <link>https://dev.to/bellussi1/how-i-drew-a-historical-globe-on-a-canvas-without-a-map-library-140-territories-271-connections-301e</link>
      <guid>https://dev.to/bellussi1/how-i-drew-a-historical-globe-on-a-canvas-without-a-map-library-140-territories-271-connections-301e</guid>
      <description>&lt;p&gt;What did the world look like in 1930? To answer that, I used to open three Wikipedia tabs and try to build the timeline in my head. Brazil, Europe and the United States sit in different articles, and none of them shows what was connected to what in the same year.&lt;/p&gt;

&lt;p&gt;That is why I built the map in &lt;strong&gt;&lt;a href="https://atlas.bellussi.dev/mapa/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=mapa" rel="noopener noreferrer"&gt;ATLAS&lt;/a&gt;&lt;/strong&gt;: a globe where you drag the timeline and see which territories exist, linked by influences, ruptures, actions and creations. This post explains how it is built.&lt;/p&gt;




&lt;h2&gt;
  
  
  Numbers from the current release (&lt;code&gt;v0.9.0&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Source: &lt;code&gt;ATLAS/generated/release-summary.json&lt;/code&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;140&lt;/strong&gt; territories on the map&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;271&lt;/strong&gt; connections between them&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;12&lt;/strong&gt; milestones from 1750 to 2026 on the timeline&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1,318&lt;/strong&gt; entities and &lt;strong&gt;3,138&lt;/strong&gt; typed relations in the graph that feeds the map&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  1. The geometry is a 236 kB static file, loaded only on &lt;code&gt;/mapa&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;The outlines come from &lt;strong&gt;Natural Earth 1:50m&lt;/strong&gt;. The file &lt;code&gt;natural-earth-globe.json&lt;/code&gt; is 236,498 bytes (measured in the repo).&lt;/p&gt;

&lt;p&gt;It is not part of the main bundle. A route resolver does a dynamic &lt;code&gt;import()&lt;/code&gt; of the JSON, so the browser only downloads it when you open &lt;code&gt;/mapa&lt;/code&gt;. The code comment says the chunk rarely changes, so it stays cached across deploys that only touch page code (&lt;code&gt;globe-base-map.resolver.ts&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;Anyone reading an article or an entry page pays nothing for the globe.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The projection is custom code: no &lt;code&gt;d3-geo&lt;/code&gt;, no Leaflet, no MapLibre
&lt;/h2&gt;

&lt;p&gt;The project's &lt;code&gt;package.json&lt;/code&gt; has no map library. It has &lt;code&gt;topojson-client&lt;/code&gt;, &lt;code&gt;d3-force&lt;/code&gt;, &lt;code&gt;d3-scale&lt;/code&gt; and &lt;code&gt;d3-shape&lt;/code&gt;. The projection lives in &lt;code&gt;globe-projection.ts&lt;/code&gt; (585 lines) and the drawing in &lt;code&gt;globe-canvas.ts&lt;/code&gt;, on a 2D canvas.&lt;/p&gt;

&lt;p&gt;How it works, from reading the code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Each latitude and longitude pair becomes a vector on the unit sphere (&lt;code&gt;toUnitVector&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Country rings are decoded once per session into &lt;code&gt;Float32Array&lt;/code&gt;s, 3 numbers per point (&lt;code&gt;packDegRingToUnitVecs&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;The projection is orthographic. &lt;code&gt;clipRingToHorizon&lt;/code&gt; keeps only the visible hemisphere (&lt;code&gt;z &amp;gt;= 0&lt;/code&gt;) and inserts short arcs along the limb where a polygon crosses the edge of the globe.&lt;/li&gt;
&lt;li&gt;Connections are great-circle arcs, elevated and with spherical occlusion: the part that passes behind the planet disappears (&lt;code&gt;projectGeodesicArc&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Clicks use &lt;code&gt;hitTestCountry&lt;/code&gt;. Labels use &lt;code&gt;placeGlobeLabels&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An orthographic globe has to clip polygons at the edge. Without it, countries crossing the horizon turn into wrong triangles.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. State with Signals
&lt;/h2&gt;

&lt;p&gt;The map page keeps UI state in &lt;code&gt;signal&lt;/code&gt;s: &lt;code&gt;reducedMotion&lt;/code&gt;, plus the legend, shortcuts and list panels (&lt;code&gt;legendShown&lt;/code&gt;, &lt;code&gt;shortcutsOpen&lt;/code&gt;, &lt;code&gt;tableOpen&lt;/code&gt;). It runs on Angular 21.2 and TypeScript 5.9.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Accessibility: the globe is not the only way to use the map
&lt;/h2&gt;

&lt;p&gt;A canvas has no structure for a screen reader. That is why there is an &lt;strong&gt;accessible list&lt;/strong&gt; with the same data.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The list button opens the panel with &lt;code&gt;aria-expanded&lt;/code&gt; and &lt;code&gt;aria-controls="lista-acessivel"&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Search is a &lt;code&gt;role="listbox"&lt;/code&gt; with options, and the &lt;code&gt;/&lt;/code&gt; key moves focus to it.&lt;/li&gt;
&lt;li&gt;There is a keyboard shortcuts panel.&lt;/li&gt;
&lt;li&gt;With &lt;code&gt;prefers-reduced-motion: reduce&lt;/code&gt;, animations become instant.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I did not test with a screen reader for this post. What I describe is what the code and the tests contain.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. What the map does not promise
&lt;/h2&gt;

&lt;p&gt;Borders follow contemporary reference outlines, and the interface says so. Coverage starts with Brazil and grows through Europe, the United States, Asia and Africa. A range like 1914 to 1945 shows the territories active in that period, not the exact borders of the time.&lt;/p&gt;

&lt;p&gt;There are tests for the projection (&lt;code&gt;globe-projection.spec.ts&lt;/code&gt;), for the data queries (&lt;code&gt;world-map.spec.ts&lt;/code&gt;) and for the page (&lt;code&gt;world-map-page.component.spec.ts&lt;/code&gt;).&lt;/p&gt;




&lt;h2&gt;
  
  
  Want to help?
&lt;/h2&gt;

&lt;p&gt;ATLAS is open source. If you want to work on maps, accessibility or historical data, there are tasks for newcomers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open the map: &lt;a href="https://atlas.bellussi.dev/mapa/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=mapa" rel="noopener noreferrer"&gt;atlas.bellussi.dev/mapa&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Code: &lt;a href="https://github.com/bellussi1/ATLAS" rel="noopener noreferrer"&gt;github.com/bellussi1/ATLAS&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Issues to start with: &lt;a href="https://github.com/bellussi1/ATLAS/labels/good%20first%20issue" rel="noopener noreferrer"&gt;good first issue&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A globe is only useful if people who cannot see the globe can use the same map.&lt;/p&gt;

</description>
      <category>angular</category>
      <category>typescript</category>
      <category>webdev</category>
      <category>opensource</category>
    </item>
    <item>
      <title>How I Built a Visual Knowledge Graph Encyclopedia (1,318 Entities, 12,146 Cited Claims) Without a Traditional Database</title>
      <dc:creator>Enzo Bellussi</dc:creator>
      <pubDate>Sun, 22 Nov 2026 15:22:51 +0000</pubDate>
      <link>https://dev.to/bellussi1/how-i-built-a-visual-knowledge-graph-encyclopedia-1318-entities-12146-cited-claims-without-a-26bm</link>
      <guid>https://dev.to/bellussi1/how-i-built-a-visual-knowledge-graph-encyclopedia-1318-entities-12146-cited-claims-without-a-26bm</guid>
      <description>&lt;p&gt;When I started building &lt;strong&gt;&lt;a href="https://atlas.bellussi.dev/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=architecture-r2" rel="noopener noreferrer"&gt;ATLAS&lt;/a&gt;&lt;/strong&gt;, I wanted to fix a frustrating pattern when studying history, politics, and economics online: you read an article on Marxism, Liberalism, or the Vargas Era, jump to a scattered summary elsewhere, lose track of who influenced whom, and have no quick way to tell whether a claim is a documented fact, an attributed thesis, or a contested interpretation.&lt;/p&gt;

&lt;p&gt;The default architecture would be Postgres + a Node/Go API + an admin panel. For an open-source project maintained by one person—and designed to stay fast and cheap without a 24/7 backend—a traditional database adds more operational drag than value.&lt;/p&gt;

&lt;p&gt;Instead, I went with &lt;strong&gt;content-addressed static releases on Cloudflare R2&lt;/strong&gt; (SHA-256 hashed JSON bundles), served to an &lt;strong&gt;Angular 21&lt;/strong&gt; front-end with &lt;strong&gt;1,413 prerendered routes&lt;/strong&gt; on Cloudflare Pages.&lt;/p&gt;




&lt;h2&gt;
  
  
  Real numbers from the current release (v0.7.0)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;1,318&lt;/strong&gt; typed entities (people, works, concepts, parties, institutions, events, countries, places)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;12,146&lt;/strong&gt; claims, every single one with a citation — split into 8,278 documented facts, 1,544 contested claims, 1,171 attributed theses, and 1,153 interpretations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1,482&lt;/strong&gt; sources&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;3,003&lt;/strong&gt; typed relations in the graph&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;14&lt;/strong&gt; continuous readings and &lt;strong&gt;21&lt;/strong&gt; guided itineraries&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  1. Content-addressed releases on R2 (no DB, no broken cache)
&lt;/h2&gt;

&lt;p&gt;Instead of querying an API on every click, the build pipeline (&lt;code&gt;npm run content:build&lt;/code&gt;) validates all 24 collections with &lt;strong&gt;Zod&lt;/strong&gt;, resolves graph edges, splits the data into specialized bundles (&lt;code&gt;readingBundle&lt;/code&gt;, &lt;code&gt;networkBundle&lt;/code&gt;, and the full &lt;code&gt;bundle&lt;/code&gt;), and hashes every artifact with SHA-256.&lt;/p&gt;

&lt;p&gt;The Git repo only stores a tiny pointer file (&lt;code&gt;content/content-pointer.json&lt;/code&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every production build reads the exact release hash pinned in Git.&lt;/li&gt;
&lt;li&gt;Because artifact filenames contain their SHA-256 hash, edge caching can be aggressive and immutable without risking version skew.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;1,078 Wikimedia images&lt;/strong&gt; referenced by entries are also mirrored on R2 by content hash (&lt;code&gt;m/&amp;lt;sha256&amp;gt;.jpg&lt;/code&gt;), avoiding broken external hotlinks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The trade-off I'm still working on (and tracking as an open issue): readings currently fetch a heavier bundle than they strictly need for a single page. Next step is finer route-level splitting.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Local LLMs for mining drafts—never as autonomous authors
&lt;/h2&gt;

&lt;p&gt;A common question is whether ATLAS content is AI-generated. &lt;strong&gt;It isn't.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I run local models via &lt;strong&gt;Ollama&lt;/strong&gt; (&lt;code&gt;qwen3&lt;/code&gt; / &lt;code&gt;gemma2&lt;/code&gt;) plus GPU embeddings (&lt;code&gt;BAAI/bge-m3&lt;/code&gt;) strictly in offline ingestion scripts (&lt;code&gt;scripts/ingestion/&lt;/code&gt;), behind three guardrails:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Closed corpus:&lt;/strong&gt; models only see primary texts and curated sources extracted locally (constitutions, primary documents, Wikipedia CC BY-SA 4.0, SEP/IEP) via &lt;code&gt;firecrawl-local&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mandatory verbatim quotes:&lt;/strong&gt; every proposed claim or relation must include a &lt;code&gt;quote&lt;/code&gt; string. A deterministic validator checks that the quote appears verbatim in the source passage and explicitly names both endpoints—otherwise it is rejected automatically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Human review gate:&lt;/strong&gt; accepted drafts enter as &lt;code&gt;pending&lt;/code&gt; (&lt;code&gt;ok: null&lt;/code&gt;) and never publish automatically.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  3. Four views over one graph
&lt;/h2&gt;

&lt;p&gt;Because all entities and edges live in one typed model, the same graph drives four different ways to explore:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Readings&lt;/strong&gt; (&lt;code&gt;/leituras&lt;/code&gt;): long-form continuous prose with sources and claim types inline.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Itineraries&lt;/strong&gt; (&lt;code&gt;/itinerarios&lt;/code&gt;): question-driven step-by-step routes through the graph.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network Graph&lt;/strong&gt; (&lt;code&gt;/grafos&lt;/code&gt;): interactive network with path finding between any two entries.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;World Map&lt;/strong&gt; (&lt;code&gt;/mapa&lt;/code&gt;): canvas globe with historical connections and a 1750–2026 timeline.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Want to explore or contribute?
&lt;/h2&gt;

&lt;p&gt;Code is MIT, content is CC BY-SA 4.0:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Live: &lt;a href="https://atlas.bellussi.dev/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=architecture-r2" rel="noopener noreferrer"&gt;atlas.bellussi.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Repository: &lt;a href="https://github.com/bellussi1/ATLAS" rel="noopener noreferrer"&gt;github.com/bellussi1/ATLAS&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Good first issues: &lt;a href="https://github.com/bellussi1/ATLAS/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22" rel="noopener noreferrer"&gt;browse open issues&lt;/a&gt; (includes both code/perf tasks and non-code source/image audits)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you've shipped large static datasets in Angular or React SPAs, how do you split your data bundles to keep initial load fast without spinning up a query API?&lt;/p&gt;

</description>
      <category>angular</category>
      <category>typescript</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
