06 · Project

Code Prototypist

A code editor that lives in a browser tab. No download, just a bookmark.

Try it in your browser →

I kept seeing prototyping code editors, but they always required some kind of software to download. I wanted something that runs in the browser, is easy to bookmark, and works from anywhere with no dedicated software. That became Code Prototypist.

It is a proof of concept, mostly for show and tell. You can try it yourself with the button above.

What it does

  • Pick a language: Python, JavaScript, C-family (one mode for C, C++, C#, and Java), HTML, or CSS.
  • A code box with line numbers and a pale-yellow highlight on the current line.
  • Brackets, braces, parentheses, and quotes close themselves. HTML tags get their closing tag, except void tags like br.
  • In languages that use them, Enter adds a semicolon where one is needed. A faint amber ; and a dot in the gutter mark lines that are still missing one, and the tab icon turns yellow with a red dot while any line is missing a semicolon.
  • Keyword highlighting for each language.
  • A side panel with basic analysis, including undeclared variables. For HTML it also checks tag nesting and duplicate ids, and for CSS it checks that every var(--name) has a definition.
  • Auto-indent, Tab and Shift+Tab (also on several lines at once), and a sample program for each language.

How I built it

I started with a basic HTML page and wrote down the features I wanted as I thought of them, then let the AI tool do its thing. The code was written by Claude (Sonnet 5.5) at my direction. Once I was pleased with the results, I read through the code myself to make sure it wasn’t full of AI slop before adding it to the site.

It is a single HTML file with no frameworks, no dependencies, no build step, and no network requests. Everything runs in your browser.

Limits

This is a proof of concept, so it has rough edges:

  • The undeclared-name check is a heuristic with a flat scope. It doesn’t try to recognize obscure libraries, so in C-family code their names can be flagged. It also skips names used only inside JavaScript template strings or Python f-strings.
  • There is no auto-indent for the body of a braceless if (x).
  • It has no automated tests.
  • It remembers only the language you picked. Your code isn’t saved, so copy it out before you close the tab.

Next: Contact →