NextJS → Flask, minus the weight

Fewer files. Fewer dependencies. Fewer tokens every time an AI reads your code.

Exhibit A: a “normal” NextJS app

Live scan of dogwalker-next (snapshot) (0.1s)

Source code

2,924 lines

53 files · 87.5 KB

LLM tokens to read it

~22,397

every time an AI works on this code

Dependencies

470 packages

from package-lock.json

node_modules

421.0 MB

on disk, for a dog-walking CRM

TypeFilesLines
.tsx271,730
.ts181,039
.json262
.md342
.css126
.mjs225

Convert it to Flask

Upload a zip of a NextJS app (without node_modules / .next — they’d be skipped anyway). The open-source gpt-oss-120b model via Groq rewrites it as a lean Flask app.

Max upload: 3 MB.

Tip: cd your-next-app && zip -r app.zip . -x "node_modules/*" ".next/*" ".git/*" "data/*"

…or pull one straight from GitHub

Search public NextJS repos and convert one without downloading anything — we fetch the source, strip the junk, and feed it to the same pipeline.

Ideal candidates:

Loading popular NextJS repos…