DEV Community

ER Carltz
ER Carltz

Posted on

How We Shipped a 15-Route Interactive Web App in Pure HTML, CSS & Vanilla JS (Zero Frameworks, Zero Build Step)

This is Part 7 of the zero-dependency engineering series behind SOL-2027 (Part 1: Kodak 1928 Algorithm · Part 2: 13 New Moons Ephemeris · Part 3: 1080×1920 Canvas 2D Story Cards · Part 4: 300 DPI Print Pipeline · Part 5: Kodak 40-Line Vanilla JS · Part 6: 35-Line RFC 5545 .ics Generator).

Single-page applications are great until you need 15 search-intent landing pages and multilingual entry points (/, /de, /es, Kodak 1928, 13 New Moons, ADHD Planner, GoodNotes, Homeschool, Cycle Syncing, Holiday Deals) to rank cleanly, preview richly on social feeds, and load instantly on throttled mobile connections.

Instead of pulling in Next.js, Vite, Tailwind, or a markdown compiler, we built SOL-2027 as raw static HTML, one shared CSS file, and zero-dependency vanilla JavaScript deployed straight to Vercel. There is no package.json, no bundler, and no build step — edit a file, push, deploy in seconds.

Here is how we scaled it to 15 routes, added single-core internationalization (en, de, es), collapsed mobile header chrome from ~480px to a single 56px bar, and shipped a personalized 33-event RFC 5545 .ics export with zero client-side bloat.


1. Real Measured Byte Budgets (Zero Bundler Required)

Every asset was measured directly on disk (wc -c and gzip -9) in /home/velez/project-sol-2027/web-app/:

File Role Raw Bytes Gzipped Bytes
index.html Flagship English converter, 13×28 matrix & story-card UI 41,873 B 10,188 B
de.html German DACH DIN A4 converter & localized matrix (/de) 39,925 B 9,727 B
es.html Spanish A4+Carta converter & localized matrix (/es) 40,156 B 9,757 B
styles.css Full Swiss design system, 56px header & responsive layout 61,209 B 10,301 B
app.js Isomorphic calendar math, lunar ephemeris & 33-event ICS 107,894 B 28,011 B
config.js Centralized storefront checkout URLs & modal fallback catalog 4,876 B 2,106 B
vercel.json Clean routing (cleanUrls: true) & immutable cache headers 608 B 274 B
sitemap.xml Canonical route index covering all 15 static URLs 3,706 B 415 B
robots.txt Crawler directives + sitemap pointer 73 B 89 B

The entire flagship interactive experience (/) ships in 215,852 B raw (50,606 B / ~49.4 KiB gzipped) across HTML, CSS, and JS combined (210,976 B raw / 48,500 B gz excluding config.js).

Even better, each dedicated SEO hub skips app.js entirely (107,894 B saved on first visit!). Measured across the 12 specialized topic hubs (2027.html 20,554 B / 5,281 B gz, adhd.html 20,400 B / 5,466 B gz, moons.html 20,562 B / 5,316 B gz, year-day.html 21,035 B / 5,628 B gz, kodak.html 22,182 B / 5,732 B gz, goodnotes.html 22,984 B / 5,919 B gz, cycle-syncing.html 23,240 B / 6,086 B gz, gifts.html 23,503 B / 6,030 B gz, holiday-deals.html 23,544 B / 6,121 B gz, homeschool.html 23,578 B / 6,167 B gz, printable.html 24,595 B / 6,061 B gz, wall-calendar.html 24,614 B / 6,135 B gz), a search visitor landing on /kodak downloads just 18,139 B (~17.7 KiB) gzipped of HTML + CSS + JS (kodak.html + styles.css + config.js).


2. De-Densifying Mobile Chrome: From ~480px to a Single 56px Bar

In early iterations, stacking announcement bars, multi-tier navigation pills, and store CTAs created an unbearable ~480px mobile header that pushed the core interactive H1 and converter below the fold.

We rebuilt the masthead around two strict rules:

  1. Single 56px Sticky Header (.site-header): Exactly 56px tall across desktop, tablet, and mobile (height: 56px; max-height: 64px; in styles.css). The logo, language switcher (EN · DE · ES), and quick-action links stay on a single horizontal plane.
  2. Prose & UI Word Budget (< 1,000 words): We audited rendered text on the homepage. By replacing repetitive essay walls with an interactive 3-pill receipt strip (Aug 2027: 2 New Moons, Q1 90d vs Q3 92d, Dec 31 = No Weekday), visible UI copy dropped from 2,479 words to under 1,000 words (940 rendered non-matrix words; 760 HTML prose words). The primary converter form sits comfortably at y < 520px on mobile screens.

3. Single-Core Multilingual Architecture (/, /de, /es)

Instead of maintaining three separate JS application runtimes, app.js runs as a single shared core across English, German, and Spanish:

// Illustrative simplified structure (see web-app/app.js for full implementation)
var I18N = {
  en: {
    birthdayPrefix: 'MY 13-MONTH BIRTHDAY: ',
    toastSynced: '33 events synced (incl. your SOL 14 birthday) — opens as a toggleable overlay, never touches your meetings.',
    shareSol: "apparently july 1 isn't even july on the 13-month calendar kodak used for 61 years — it's SOL 14. check if your birthday moved: "
  },
  de: {
    birthdayPrefix: 'MEIN 13-MONATE-GEBURTSTAG: ',
    toastSynced: '33 Termine synchronisiert (inkl. dein SOL 14 Geburtstag) — öffnet als ausblendbarer Kalender, berührt deine Termine nie.',
    shareSol: "am 1. juli ist auf dem 13-monate-kalender von kodak gar nicht juli — sondern SOL 14. schau nach wann dein geburtstag ist: "
  },
  es: {
    birthdayPrefix: 'MI CUMPLEAÑOS DE 13 MESES: ',
    toastSynced: '33 eventos sincronizados (incl. tu cumpleaños SOL 14) — se abre como calendario superpuesto desactivable, nunca toca tus reuniones.',
    shareSol: "resulta que el 1 de julio ni siquiera es julio en el calendario de 13 meses de kodak — es SOL 14. mira tu fecha: "
  }
};
Enter fullscreen mode Exit fullscreen mode

On each page, a lightweight <html lang="de"> or <html lang="es"> attribute informs the client runtime. Bidirectional <link rel="alternate" hreflang="..." /> tags in <head> link all three routes together for search engines:

<link rel="alternate" hreflang="en" href="https://sol-2027.vercel.app/" />
<link rel="alternate" hreflang="de" href="https://sol-2027.vercel.app/de" />
<link rel="alternate" hreflang="es" href="https://sol-2027.vercel.app/es" />
<link rel="alternate" hreflang="x-default" href="https://sol-2027.vercel.app/" />
Enter fullscreen mode Exit fullscreen mode

4. Personalized 33-Event RFC 5545 .ics Export

In Part 6, we proved that an RFC 5545 calendar file can be generated in 35 lines of vanilla JS. In Wave 24, we extended this to generate a personalized 33-event calendar export:

  1. 32 Universal Baseline Events:
    • 13 IFC Month Starts (marking each 28-day cycle boundary in 2027).
    • 13 Astronomical New Moons (exact UTC timestamps).
    • 2 Solstices & 2 Equinoxes.
    • 1 Intercalary Year Day (December 29, 2027).
    • 1 Sol Month 07 Span (June 18 – July 15).
  2. Event #33 (Personal Birthday Milestone):
    • Appended dynamically based on the user's active converter input (UID: my-sol-birthday-2027@sol-2027.vercel.app).
    • If the user entered July 1, Event #33 adds MY 13-MONTH BIRTHDAY: SOL 14 (Jul 1, 2027) with an all-day reminder.
// Illustrative simplified structure (see web-app/app.js for full implementation)
function generateICS2027(selectedResult, lang) {
  var dict = I18N[lang] || I18N.en;
  var events = [ /* 32 standard baseline events */ ];

  if (selectedResult && selectedResult.gregorianDate) {
    events.push({
      uid: 'my-sol-birthday-2027@sol-2027.vercel.app',
      start: selectedResult.dtStart,
      summary: dict.birthdayPrefix + selectedResult.ifcFormatted,
      desc: 'Your personalized 13-month calendar birthday milestone (SOL-2027).'
    });
  }

  var lines = [
    'BEGIN:VCALENDAR', 'VERSION:2.0',
    'PRODID:-//SOL-2027//EN', 'CALSCALE:GREGORIAN',
    'X-WR-CALNAME:SOL-2027 (13 Months)'
  ];

  events.forEach(function (e) {
    lines.push('BEGIN:VEVENT');
    lines.push('UID:' + e.uid);
    lines.push('DTSTAMP:20261120T000000Z');
    lines.push('DTSTART;VALUE=DATE:' + e.start);
    lines.push('SUMMARY:' + e.summary);
    lines.push('DESCRIPTION:' + e.desc);
    lines.push('STATUS:CONFIRMED');
    lines.push('END:VEVENT');
  });

  lines.push('END:VCALENDAR');
  var crlf = lines.map(function(l) {
    return (l.match(/.{1,73}/g) || [l]).join('\r\n ');
  }).join('\r\n') + '\r\n';

  return crlf;
}
Enter fullscreen mode Exit fullscreen mode

The resulting file is downloaded client-side via a Blob URL (URL.createObjectURL(new Blob([crlf], { type: 'text/calendar;charset=utf-8' }))). It requires zero backend infrastructure, zero database queries, and zero sign-ups.


5. Decoupled Storefronts & Zero-CLS Media Craft

Across 15 static HTML files, hardcoding Gumroad, Lulu, and Zazzle product URLs in 60+ buttons would make price or SKU updates error-prone. Every CTA button uses a declarative attribute:

<a
  href="https://7622406416853.gumroad.com/l/puqgl"
  target="_blank"
  rel="noopener noreferrer"
  class="btn btn-outline"
  data-config-link="GUMROAD_MASTER_BUNDLE_URL"
>Complete 30+ File Master Bundle ($15)</a>
Enter fullscreen mode Exit fullscreen mode

At page load, sub-hubs execute a 10-line script referencing window.SOL2027_CONFIG (config.js). If any physical SKU is temporarily #checkout-pending during press proofing, wireStorefrontLinks() in app.js intercepts navigation and opens a clean launch preview modal pointing to the $0+ Starter PDF and $15 digital pack instead of hitting a dead link.

Core Web Vitals Safeguards

  • Zero Layout Shift (CLS = 0): Every specimen image includes explicit HTML width="1080" height="1350" (or 4:3 preview) attributes paired with .demo-img-btn { aspect-ratio: 4 / 3; } in CSS.
  • Zero Favicon Request: Inlined SVG data-URI (13 badge) in <head> across all 15 routes.
  • Isomorphic Node.js Verification: app.js exports IFCEngine via if (typeof module !== 'undefined' && module.exports) so our CI tests can verify all 365 calendar days against production code without running a headless browser.

Explore the Live 15-Route Static Architecture

Inspect the live site, test the birthday converter (/?m=7&d=1), or browse the specialized hubs:

At what page count or complexity threshold do you personally give up raw HTML + styles.css and pull in a static site generator like Astro or Eleventy?

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

The byte budget table is the most convincing part of the post. A search visitor landing on /kodak downloading 17.7 KiB gzipped is the whole pitch — they get the answer before a framework runtime would even finish parsing. And skipping app.js entirely on the SEO hubs, saving 107,894 B on first visit, is the detail that shows this is an architecture, not just stubbornness about frameworks.

The 56px header and the word budget are the quieter insight: on a throttled mobile connection, chrome and copy are payload too. Cutting rendered words from 2,479 to 940 while keeping the converter above the fold is a bigger performance win than most bundler optimizations.

On your closing question, my take is that the threshold is not page count, it is edit fan-out. Fifteen files sharing one header is fine while config.js centralizes the storefront URLs; the moment one design change means touching fifteen files by hand, and a copy-paste slip can ship a stale price to one locale, the static site generator pays for itself. The i18n triplication is the multiplier — every new route is really three files. What broke first in practice: keeping the hreflang links and sitemap in sync across all fifteen routes, or an edge case in the 33-event .ics generation?