<?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: RustLite</title>
    <description>The latest articles on DEV Community by RustLite (@rustlite).</description>
    <link>https://dev.to/rustlite</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%2F4263431%2F7ed3c6af-d253-440c-b503-18a441d2eddb.png</url>
      <title>DEV Community: RustLite</title>
      <link>https://dev.to/rustlite</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rustlite"/>
    <language>en</language>
    <item>
      <title>A Zero-JS Static Site for a Game Companion on Cloudflare</title>
      <dc:creator>RustLite</dc:creator>
      <pubDate>Tue, 24 Nov 2026 20:49:28 +0000</pubDate>
      <link>https://dev.to/rustlite/rustlite-a-free-companion-toolkit-for-the-game-rust-2mdc</link>
      <guid>https://dev.to/rustlite/rustlite-a-free-companion-toolkit-for-the-game-rust-2mdc</guid>
      <description>&lt;p&gt;RustLite is a free companion for the survival game Rust. The product itself is a full web app. Alongside it we run a small &lt;strong&gt;brand hub&lt;/strong&gt;, a handful of pages that explain what RustLite does and link out to it. This post is about that hub, because it's a nice example of how little you need for a fast, crawlable site.&lt;/p&gt;

&lt;p&gt;Short version: six HTML pages, one CSS file under 3 KB, an SVG icon, and zero &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; tags, served from Cloudflare Pages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a separate static hub at all?
&lt;/h2&gt;

&lt;p&gt;The main app is dynamic. It does player lookups, live maps and calculators. That's great for users but it's a lot of moving parts for something whose only job is "explain the product and point to the right page."&lt;/p&gt;

&lt;p&gt;A static hub gives us:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A page per feature, each with one clear purpose&lt;/li&gt;
&lt;li&gt;Pages that load instantly on any connection&lt;/li&gt;
&lt;li&gt;Nothing to patch, no server to keep alive, no build step to break&lt;/li&gt;
&lt;li&gt;A stable place to link from profiles and directories&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can see the result at the &lt;a href="https://rustlite-hub.pages.dev/" rel="noopener noreferrer"&gt;RustLite hub homepage&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The whole file tree
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;site/
├── index.html
├── player-lookup.html
├── rust-plus.html
├── wiki.html
├── tools.html
├── around-the-web.html
├── 404.html
├── style.css          (~2.7 KB)
├── assets/radar-r.svg
├── robots.txt
├── sitemap.xml
├── _redirects
└── &amp;lt;indexnow-key&amp;gt;.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. No framework, no bundler, no &lt;code&gt;node_modules&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pretty URLs for free
&lt;/h3&gt;

&lt;p&gt;The files are named &lt;code&gt;tools.html&lt;/code&gt;, &lt;code&gt;wiki.html&lt;/code&gt; and so on, but Cloudflare Pages serves them at &lt;code&gt;/tools&lt;/code&gt; and &lt;code&gt;/wiki&lt;/code&gt; without any config. The sitemap lists the clean versions, so search engines see one URL per page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Styling with one tiny stylesheet
&lt;/h2&gt;

&lt;p&gt;The whole look comes from a single &lt;code&gt;style.css&lt;/code&gt;. The theme is a handful of CSS custom properties:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nt"&gt;root&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;--bg&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mh"&gt;#0b0e12&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;--panel&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mh"&gt;#12161c&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;--line&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mh"&gt;#232a33&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--ink&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mh"&gt;#e8eaed&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;--mute&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mh"&gt;#9aa3ad&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--acc&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mh"&gt;#f0641e&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;--acc2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mh"&gt;#ff8a4a&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Dark background, rust-orange accent. Headings use Barlow Condensed and labels use JetBrains Mono, both from Google Fonts with &lt;code&gt;preconnect&lt;/code&gt; hints. Everything else is the system font stack, so body text renders before any web font arrives.&lt;/p&gt;

&lt;p&gt;Layout is a centered &lt;code&gt;.wrap&lt;/code&gt; with a max width, a &lt;code&gt;.grid&lt;/code&gt; of &lt;code&gt;.card&lt;/code&gt;s, and a couple of list styles. Every page reuses the same few classes, so a new page is mostly copy and paste.&lt;/p&gt;

&lt;h3&gt;
  
  
  Trade-off: the font request
&lt;/h3&gt;

&lt;p&gt;Google Fonts is the one third-party request on the page. Self-hosting the two fonts would remove it. For a six-page hub we decided &lt;code&gt;display=swap&lt;/code&gt; was good enough, but it's the first thing we'd change if we chased a perfect score.&lt;/p&gt;

&lt;h2&gt;
  
  
  An animated favicon with no JavaScript
&lt;/h2&gt;

&lt;p&gt;The logo is an SVG: an orange "R" inside a radar scope. The sweep rotates with a SMIL &lt;code&gt;&amp;lt;animateTransform&amp;gt;&lt;/code&gt;, and a contact "blip" fades in when the sweep passes it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;animateTransform&lt;/span&gt; &lt;span class="na"&gt;attributeName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"transform"&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"rotate"&lt;/span&gt;
  &lt;span class="na"&gt;from&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"0 256 256"&lt;/span&gt; &lt;span class="na"&gt;to&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"360 256 256"&lt;/span&gt; &lt;span class="na"&gt;dur&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"4.2s"&lt;/span&gt; &lt;span class="na"&gt;repeatCount&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"indefinite"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Browsers that support SVG favicons get the animation inside the page header for free. No script, no GIF.&lt;/p&gt;

&lt;h2&gt;
  
  
  Content structure that helps people and crawlers
&lt;/h2&gt;

&lt;p&gt;Each feature page follows the same pattern:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A hero with one H1 and a one-line description&lt;/li&gt;
&lt;li&gt;A grid of cards, each linking to the matching deep page on the main app&lt;/li&gt;
&lt;li&gt;A short list of when you'd use it&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The &lt;a href="https://rustlite-hub.pages.dev/tools" rel="noopener noreferrer"&gt;calculators and tools page&lt;/a&gt; is a good example. It explains the six most used tools in a sentence each, then links straight to them. The &lt;a href="https://rustlite-hub.pages.dev/wiki" rel="noopener noreferrer"&gt;Rust wiki overview&lt;/a&gt; does the same for ten wiki sections.&lt;/p&gt;

&lt;p&gt;Because the pages are plain HTML, the content that matters is in the first response. Nothing waits on hydration.&lt;/p&gt;

&lt;h2&gt;
  
  
  SEO plumbing
&lt;/h2&gt;

&lt;p&gt;A static site still needs the boring parts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;robots.txt&lt;/code&gt;&lt;/strong&gt; allows everything and points at the sitemap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;sitemap.xml&lt;/code&gt;&lt;/strong&gt; lists the six pages with &lt;code&gt;lastmod&lt;/code&gt; dates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;404.html&lt;/code&gt;&lt;/strong&gt; is picked up automatically by Pages and links back home.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;_redirects&lt;/code&gt;&lt;/strong&gt; holds a single rewrite for a search-console verification file, served with a &lt;code&gt;200&lt;/code&gt; so the URL stays put.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IndexNow key file&lt;/strong&gt; at the root, so we can ping participating search engines when a page changes instead of waiting for a crawl.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Deploying
&lt;/h3&gt;

&lt;p&gt;Deploys go through Wrangler:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx wrangler pages deploy site --project-name rustlite-hub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pages uploads only changed files, so a one-line copy edit ships in seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we'd do differently
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Self-host fonts.&lt;/strong&gt; Removes the only third-party request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add Open Graph tags and an image&lt;/strong&gt; to every page. Shares currently fall back to the title and description.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generate the cards from data.&lt;/strong&gt; The listings page already comes from a JSON file. The feature pages are hand-written, which is fine at six pages and annoying at twenty.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Do you need a framework for a small product site?
&lt;/h3&gt;

&lt;p&gt;No. For a few pages that change rarely, hand-written HTML and one stylesheet are faster to load and easier to maintain.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Cloudflare Pages support clean URLs for .html files?
&lt;/h3&gt;

&lt;p&gt;Yes. &lt;code&gt;about.html&lt;/code&gt; is served at &lt;code&gt;/about&lt;/code&gt; by default, with no redirect rules needed.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the hub actually for?
&lt;/h3&gt;

&lt;p&gt;It's a short, fast overview of RustLite's features, like &lt;a href="https://rustlite-hub.pages.dev/rust-plus" rel="noopener noreferrer"&gt;the Rust+ live map and raid alerts&lt;/a&gt;, that links to the full app at &lt;a href="https://rustlite.com/" rel="noopener noreferrer"&gt;rustlite.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Questions about the setup? &lt;a href="mailto:admin@rustlite.com"&gt;admin@rustlite.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>cloudflare</category>
      <category>html</category>
      <category>gamedev</category>
    </item>
  </channel>
</rss>
