Emre Kurt — A full-stack developer in Antalya, building fast and accessible web products.

Building ekurtOS

My old site was a perfectly normal portfolio: a header, a list of posts, a list of projects. It did its job, and nobody remembered it.

So I rebuilt it as a small operating system. On a computer you get a desktop with a menu bar, a dock and windows you can drag around. On a tablet you get a home screen and Split View. On a phone you get widgets, a dock and apps that grow out of their icons. Same content everywhere — only the "shell" around it changes.

This post is about the decisions behind it, and the handful of problems that took far longer than they should have.

One site, three shells

The first rule was that apps don't know where they live. The Blog app only renders posts; whether it sits in a draggable window, fills a phone screen or shares a tablet with another app is the shell's business. That kept every app small and let me build the desktop first and the phone and tablet later without touching the apps again.

The device is chosen by viewport and input, not by user agent: width plus the pointer and hover media queries. Resize the window and the site switches from desktop to tablet to phone live. A phone turned sideways stays a phone — it just rearranges its widgets.

Every window has a URL

An OS that forgets where you were on refresh isn't much fun to share. Every app and document has a real address — /blog/<post>, /projects/ninefold, /arcade/bugsweeper — and opening a window updates the address bar with history.pushState. Back and forward work, links are shareable, and the old URLs from my previous site still resolve to the same content.

Moving between apps is deliberately not a router navigation. The OS is one long-lived client component; swapping pages would throw its state away. Every known URL is still prerendered on the server, so a visitor landing on a deep link gets the right app open from the start.

Crawlers get a plain website

A desktop made of JavaScript is invisible to search engines and useless without JS. So each URL is first rendered as plain, semantic HTML — headings, articles, lists of links — and only once the client knows the device does the OS boot on top of it. Search engines, link previews and screen readers before hydration all see a normal page. Metadata, a sitemap, structured data and an RSS feed are generated from the same content files.

To make the first paint fast, the post and project lists are inlined into the page as JSON. Apps read that seed as an already-resolved promise, so the first window opens without a loading spinner.

Making windows feel like windows

The window manager is a small Zustand store: open windows, their order, which one has focus. The details are where it gets interesting:

  • A click on a maximized window's title bar shouldn't restore it — only a real drag should. A 4px threshold fixed that.
  • Dragging a window to the left or right edge tiles it to half the screen; dragging it to the menu bar maximizes it. Pull it away and it returns to its old size.
  • The dock grows its icons on hover, but the bar itself keeps a fixed height, so nothing jumps.

None of this is visible in a screenshot. All of it is visible in the first ten seconds of using it.

The iPhone bug that ate a day

Installed to the home screen, the phone shell left a black strip at the bottom of the screen. The viewport height on my iPhone 13 kept flipping between 844 and 797 pixels — with or without the status bar — and anything sized to it ended up short.

I tried 100dvh, then position: fixed; inset: 0, then measuring the gap in JavaScript and stretching the shell. Each fix broke something else. The real fix was already in one of my other projects, where I had hit the same bug months earlier:

@media (display-mode: standalone) {
  html, body { height: 100lvh; }
}

The shells then size themselves to 100% of that instead of being fixed to the viewport. One more trap: the rule has to come after the base html, body { height: 100% }, or it silently loses. Lesson learned: check your own notes before you start guessing.

Small things

  • The wallpaper is code. A generative canvas drawn at low resolution and scaled up; it pauses when the tab is hidden and stands still for anyone who prefers reduced motion.
  • Share images are generated for every page. Getting the text right took stripping kerning from the font, because the image renderer measured words without kerning but drew them with it — leaving odd gaps between words.
  • It works offline. A service worker keeps the shell and content; when a new version ships, a small "Update available" notice offers a restart instead of swapping code under your feet.
  • Interface sounds are synthesised with the Web Audio API — no audio files — and off by default.

An arcade, because every OS needs games

The newest app is the Arcade. Two mini games are made for ekurtOS — Bugsweeper, where you hunt bugs hidden in a grid, and Memory, matching the system's own app icons — and two of my own games run inside it from their live sites. Everything works with a mouse, a keyboard or a thumb: long-press to flag a cell, and the boards scale to fit any screen.

What's next

Mobile performance is the next thing on my list: the shells are rendered on the client, which costs time on slower phones. After that, more of my own projects will find their way into the Projects folder.

If you're reading this on a computer, try dragging this window to the edge of the screen. And if you'd like to say hi, Mail is in the dock — I read everything.