Replaced Next.js with a custom AI-coded framework, JS size down 99%
maxleiter · x · 2026-09-01
Max Leiter replaced Next.js on his personal site with a bespoke framework architected by Claude's Fable and implemented by Opus subagents.
Workflow:
- Prompted Claude to scope a custom, on-demand framework faster than Next.js for static sites with MDX, deployable to Vercel.
- Coordinated Opus subagents for implementation.
Results:
- JS Bundle: Reduced from 208 KB to 2.3 KB (-99%).
- Performance: Mobile Lighthouse score improved to 100; LCP improved by 46%; total weight reduced by 93%.
- Features: Retained MDX support and static HTML compilation.
More from coding & agent
- Dev feedback: decoupling rex sessions from native windows is harder to adapt to than expected — alexisgallagher · 2026-12-05
- Salesforce research: buyer agents concede too easily, images boost persuasion ~17% — msrivastav13 · 2026-12-05
- Grok Build launches agent-driven post-quantum cryptography migration after NSA advisory, with $1,000 credits — ns123abc · 2026-12-05
- Seroter's reading list: post-quantum prep, agent harnesses, and life after 99% AI code — rseroter · 2026-12-05
- WSDM Cup 2027 Offers $10k to Build Autonomous Community Notes Agents — sanmikoyejo · 2026-12-05
- Trying Copilot Studio MCP for agent cloning and Power Automate sync: janky but workable — koltregaskes · 2026-12-05