<?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"><channel><title><![CDATA[Capital Complete Solutions]]></title><description><![CDATA[Capital Complete Solutions]]></description><link>https://capital-complete-solutions.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 01:33:47 GMT</lastBuildDate><atom:link href="https://capital-complete-solutions.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Shipping a Zero-Backend Checklist Tool as a Single HTML File]]></title><description><![CDATA[A 17-item checklist tool shipped as one HTML file: data-driven rendering, guarded localStorage, a dark-mode override that survives a theme toggle, and the…]]></description><link>https://capital-complete-solutions.hashnode.dev/shipping-a-zero-backend-checklist-tool-as-a-single-html-file</link><guid isPermaLink="true">https://capital-complete-solutions.hashnode.dev/shipping-a-zero-backend-checklist-tool-as-a-single-html-file</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[HTML5]]></category><category><![CDATA[GitHub]]></category><dc:creator><![CDATA[Capital Complete Solutions]]></dc:creator><pubDate>Wed, 25 Nov 2026 07:39:35 GMT</pubDate><content:encoded><![CDATA[<p>We needed a small public tool: a checklist a UK landlord can work through before a tenancy deposit goes to adjudication. Seventeen items, four groups, tick them off, copy the result into an email. That is the whole product.</p>
<p>The obvious shape for that in 2026 is a React app on Vercel with auth, a database and an analytics bundle. We built it as one HTML file instead. No build step, no framework, no backend, no cookie banner. It lives at <a href="https://capitalcompletesolutions.github.io/">capitalcompletesolutions.github.io</a> and the source is on <a href="https://github.com/CapitalCompleteSolutions">GitHub</a>.</p>
<p>Here is what that constraint actually bought us, and the three things that bit.</p>
<h2>Data first, markup second</h2>
<p>The seventeen items are not in the HTML. They are one array near the top of the script:</p>
<pre><code>const GROUPS = [
  { title: "Before the tenancy", items: [
    "Signed check-in report exists",
    "Photographs dated and complete",
    ...
  ]},
  ...
];
</code></pre>
<p>Everything else — the sections, the checkboxes, the ids, the progress count, the copy-to-clipboard text — is generated from it. Adding an item is one line. If the list had been hand-written markup, every change would have been seventeen edits in four places and at least one of them would have been missed.</p>
<p>This is the single highest-leverage decision in a small tool. Write the data, render the data.</p>
<h2>localStorage is not a database, and that is fine</h2>
<p>State persistence is four lines:</p>
<pre><code>try {
  localStorage.setItem(KEY, JSON.stringify(state));
} catch (e) {}
</code></pre>
<p>The try/catch is not defensive theatre. <code>localStorage</code> throws in Safari private mode, it throws when the quota is full, and it throws in some embedded webviews. An unguarded <code>setItem</code> takes the whole page down on a user you will never hear from.</p>
<p>Equally, the read path has to treat whatever comes back as hostile. Someone else's extension can write to the same origin, and a version of your own tool from six months ago certainly did:</p>
<pre><code>let saved = {};
try {
  const raw = localStorage.getItem(KEY);
  if (raw) saved = JSON.parse(raw) || {};
} catch (e) { saved = {}; }
</code></pre>
<p>Then validate each key against the current <code>GROUPS</code> rather than trusting the shape. A stale key is ignored; a new item defaults to unchecked. No migration code, no version field.</p>
<h2>Dark mode without a toggle, and the override you will forget</h2>
<p>The cheap version is:</p>
<pre><code>@media (prefers-color-scheme: dark) { :root { --bg: #0b1b35; } }
</code></pre>
<p>The problem appears the moment you add a manual theme switch, or embed the page somewhere that forces light. The media query wins and your override does nothing. The fix is to scope it out:</p>
<pre><code>@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b1b35; }
}
</code></pre>
<p>Same two lines of CSS, one extra selector, and <code>data-theme</code> on the root element now beats the OS. Worth doing on day one — retrofitting it means auditing every custom property you declared twice.</p>
<h2>The deployment gotcha: GitHub Pages renders your README</h2>
<p>We pushed <code>index.html</code> and <code>README.md</code>, enabled Pages, and got the README back as a styled Jekyll page. The <code>index.html</code> was in the repo, served by nothing.</p>
<p>GitHub Pages runs Jekyll by default. Jekyll builds a site from your Markdown and quietly ignores the static file you actually wanted. The fix is one empty file at the repo root:</p>
<pre><code>.nojekyll
</code></pre>
<p>Commit it and Pages serves the directory as-is. There is no setting for this in the UI, which is why it costs everyone the same twenty minutes.</p>
<h2>What the single file does not get you</h2>
<p>Honest accounting. There is no server, so there is no way to know whether anyone finished the checklist. There is no account, so the state does not follow a user from their laptop to their phone. There is no framework, so a second developer picking this up has to read the whole file rather than a component tree.</p>
<p>For seventeen checkboxes those are the right trades. At fifty items with shared state and a team editing it, they stop being right, and the honest move is to rebuild rather than keep bolting on.</p>
<h2>Why we built it at all</h2>
<p>Deposit adjudication in the UK is documentary-only. The adjudicator never visits the property; they read what both sides submitted. Claims fail on what is missing from the file, not on what happened in the flat. A checklist is a genuinely useful artefact in that situation, and it costs nothing to host.</p>
<p>We do the inventory and check-out reports that feed that file — <a href="https://www.capital-cs.com/">Capital Complete Solutions</a>, AIIC-accredited clerks in Birmingham. The tool is free, has no sign-up and collects nothing.</p>
<p>Fork it, strip the content, keep the pattern.</p>
]]></content:encoded></item></channel></rss>