StoicBuilder

HandbookII the ForumFrameworks

IIthe Forum, The shape of an app

Frameworks

1 min readUpdated 28 November

In plain words

A framework, such as Next.js, is a ready-made structure that decides where pages, server code and settings go, so every project built on it looks familiar.

Where you see it

Lovable and Bolt usually start you on React with Vite, which builds browser-only apps; v0 starts you on Next.js, which has a server built in. The scripts in package.json tell you which one you have.

package.jsonconfig
"scripts": { "dev": "next dev", "build": "next build", "start": "next start"}
next in the scripts means Next.js. In a Lovable app you'd see vite instead.

What goes wrong

  1. Advice for the wrong framework

    Tips written for the older Next.js Pages Router, or for plain React, often don't fit an App Router project. Mix them and you get getServerSideProps in a folder where Next.js rejects it.

  2. Asking a browser-only app for server features

    A Vite app has no server of its own. A secret API call there needs a Supabase Edge Function or another backend, and your agent should say so instead of hiding the key in the browser.

  3. Switching frameworks halfway

    "Move this to Next.js" rewrites routing, data loading and deploy settings at once. Treat it as a separate project with its own plan.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Tell me which framework and version this project uses and which conventions it follows, such as the App Router. Only use patterns and docs for that exact setup, and warn me when a feature I ask for needs a server this setup doesn't have.

Quick check

Sign in to earn +10 XP for it

Your Lovable app is React with Vite. You ask for a page that calls OpenAI with your secret key. What should the agent do?

Got a prompt that touches frameworks?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.