EN
Start a project
Back to Projects
abc.kiapmd.dev/
ABC Company: a Demo Business Site with an Editor (SvelteKit)

ABC Company: a Demo Business Site with an Editor (SvelteKit)

November 2026

SvelteSvelteKitTailwind CSSSveltia CMSDockerGitHub Actions

Overview

ABC Company is a website for a consulting firm that does not exist. It is a portfolio demo: the company, the case studies and the client logos are made up, and the footer says so.

What it shows is real: a business site the owner can run without a developer. Every text, picture, case study and team member is edited in a simple online editor at /admin. A change goes live a few minutes after pressing Save.

A case study page

The owner’s side

The editor is Sveltia CMS, a free, open-source editor that saves straight into the site’s files on GitHub. There is no database and no monthly CMS fee. Each save becomes a commit, so every change has a history and can be undone.

The owner signs in with GitHub. The login runs through a GitHub App that is installed on this one repository only, with one permission (change the site’s files), so an editor’s login can never reach anything else.

The editor's sign-in page at /admin

The contact form

The contact form

Messages arrive as plain-text email through Brevo. Anyone on the internet can send to a form, so this one is built to be hard to abuse:

  • Every field is checked for length and shape, and the email is plain text, so nothing a visitor types can turn into a link or code inside it
  • A hidden field catches spam bots
  • Each visitor can send 5 messages an hour, and the whole site 20 a day; that count survives a restart
  • It only ever writes to one fixed inbox, so it cannot be used to spam others

Tech Stack

  • SvelteKit 3 and Svelte 5, with every page built ahead of time
  • Tailwind CSS 4, pictures in WebP, sized for the screen
  • Sveltia CMS: content lives in JSON files in the repository, with typed checks
  • Brevo for the contact form’s email
  • Docker behind Caddy (the web server that handles HTTPS) on my own server, shipped by GitHub Actions

The rebuild

The first version (2025) ran on Vercel, kept its stories in Sanity and sent mail through SendGrid. It worked, but it was slow on phones, its packages had known security problems, and the contact form trusted what visitors sent. I rebuilt it with Claude Code (an AI coding assistant): I set the plan and checked every change.

Before and after, as the site itself shows them

Before and after, measured with Lighthouse (Google’s page checker) on the phone setting:

  • Speed score: 72 → 97
  • Main content visible: 14.8 s → 2.3 s
  • Home page download: 3.2 MB → 0.44 MB
  • Accessibility / SEO: 94 / 82 → 100 / 100
  • Known security problems in the packages: 6 → 0

On computers every page scores 100 in all four Lighthouse categories.

  • On my own server. The site runs in a small, locked-down Docker box with hard limits on memory and CPU, so if it ever broke, my other sites would keep running. A push to GitHub tests the code, builds the box, tries it, and only then delivers it. If a new version does not answer its health check, the server puts the previous one back by itself.
  • Tested like an attacker. Forms posted from other sites, huge messages, fake login links and attempts to read secret files are all refused.

Outcome

  • A business site the owner can edit alone, with no database and no CMS bill
  • A contact form that delivers real mail and is hard to misuse
  • Fast on slow phones: 97 on mobile, 100 on desktop
  • Honest content: a clearly fictional company, with a demo note on every page