Strawberry ports its browser UI from React to Svelte, about 130,000 lines, in two weeks with Cursor agents and a strict Svelte ruleset
Strawberry, an AI web browser, rewrote its whole UI from React to Svelte 5 for performance. Founding engineer Markus Andersson spent a few evenings and a weekend with swarms of coding agents and was 60% through the 130k-line migration before showing the team. He first spent about a day building a master Svelte ruleset (such as 'Avoid $effect'), then ported feature by feature, starting with tabs: read the rules, port, test, repeat. They mainly used Cursor and Cursor Rules, with Claude Code and Codex toward the end. The old React code stayed in a react-src folder as a reference and had to be kept in sync with ongoing feature work, and a few features were silently dropped at launch. The post reports 103K lines added and 124K removed by one engineer.
The numbers (as reported)
| Codebase | 130K LoC frontend |
|---|---|
| Duration | Two weeks |
| Diff | 103K lines added. 124K lines removed. One engineer. |
| Speed | 2x faster in production |
| New tab FCP | 300ms → 124ms |
Facts
- Company / subject
- Strawberry Browser
- Tools
- Cursor, Claude Code, OpenAI Codex
- Codebase
- brownfield
- Work type
- Migration
- Stack
- Svelte 5, React, TypeScript
- Published
- 2026-03-09
- Last checked
- 2026-11-17
What the source claims Practitioner (own blog/paper)
Claimed by the builder, writing about their own work. Not checked independently.
- The browser is 2x faster in production 2x
- New tab page first contentful paint fell from 300ms to 124ms 300ms → 124ms
- Re-renders during LLM token streams fell by 10x 10x
- 56 unused dependencies removed along the way 56
Caveats
Written by Strawberry's CEO about the company's own product, partly as marketing. The post says both that the rewrite took two weeks and that agents got it to 85% completion in two weeks. A few features were silently dropped at launch and later reimplemented, and a custom drag-and-drop library (built by another engineer) was not fully stable at launch. No cost or PR counts.
More stories by tool: Claude CodeOpenAI CodexCursor
Related topics: MigrationsBrownfield codebases