2026

Home

A typewriter lamp for writing on the web

Lamplight

0 words

I was writing electrical product manuals for my next project when I looked up at the lamp across the room, and wondered how it would feel on my screen. Lamplight is a page you can write on, lit by a small lamp that sits on a typewriter rule and follows your caret.

It's an interaction exploration for anyone who writes best with one light on and the rest of the room dark. It works on this page now, and nothing you type leaves your device.

The lamp is glued to the caret

The lamp doesn't trail behind you. It runs on a stiff spring that covers most of the distance in about 80 ms, so it reaches each new letter almost as you press the key.

A carriage return is different. The lamp sweeps back to the margin a little slower, and the paper feeds up one line.

Lines above the rule fall out of the light. By the fifth line up they're nearly gone, which keeps your eye on the line you're writing.

Every letter gets the same cell

Special Elite looks like a typewriter but isn't monospaced. My first build measured one letter's width, and by the end of a line the lamp sat a few letters past the caret.

Typewriters solve this by giving every letter the same slot, so I did too. Each glyph sits in a cell 0.6 em wide, and now the caret, the lamp and the line wrap agree.

Each letter also gets slightly uneven ink. It comes from a seeded random number, so a letter never changes when the page redraws.

The sound is a real typewriter, trimmed

The keys use two Mixkit typewriter sounds, a soft click and a soft hit, picked at random and played a hair faster or slower each time. Space and backspace are quieter.

Enter plays a carriage return, and a bell rings once as a line nears the margin. The soft hit file holds a second strike, so a script cuts it at the end of the first.

What it can't do

  • It's one page. You can't move the caret back into the middle of a line. That's on purpose.
  • Wide characters (Chinese, Japanese, emoji) get one narrow cell, so they overlap their neighbours.
  • Sound starts with your first keystroke, and the iPhone silent switch mutes it.
  • Your page is kept in this browser, up to 5,000 characters. "save .txt" (or Cmd+S) downloads a copy as plain text, without the typewriter look.

The typewriter also has a page of its own, typewriter online, without the case study around it.

A desk at 1 a.m. only needs one light, and it belongs where your next letter lands.