Choose the framework around the product.
A visual decision guide to React + Vite, Next.js, Nuxt and Astro: start with what the page has to do, then choose what runs it.

A framework decision becomes easier when you describe the first useful screen. Is it an article someone should be able to read immediately? A workspace that changes with every click? A product page with a small interactive demo? Those are different jobs, even when the finished websites share a visual style.
Start by drawing the boundary between public content, browser interactions and private data. That sketch tells an AI coding agent more than “use the best stack.” It also gives you a concrete way to review the implementation: each part has somewhere it belongs.
Three shapes of frontend work
Choose the shape before the framework
Read and discover
Editorial sites, documentation and public product information.
- Readable content is the central experience.
- Only a few sections need browser state.
- Think about publishing, metadata and page delivery.
Work and interact
Dashboards, editors and application interfaces.
- The screen changes repeatedly during a session.
- Loading, empty and error states deserve a design.
- Authentication and API boundaries need an explicit plan.
Content plus an app
A public product site connected to account-specific experiences.
- Different routes can have different rendering needs.
- Keep public content and private data boundaries visible.
- Choose deployment based on the actual server features used.
Four reasonable starting points
The table below is an editorial starting point, not a performance ranking. All four choices can support more than one kind of site. The useful distinction is how much structure you want the framework to provide and where the application needs to execute.
Match the stack to the work you actually need| Starting point | Useful when | Decide explicitly |
|---|
| React + Vite | You want an interactive frontend with a separately defined API. | Routing, public-page rendering and the backend boundary. |
| Next.js | You want React with a framework that coordinates server and client components. | Which pieces need browser state and which belong on the server. |
| Nuxt | You want a Vue application with universal rendering and route-level rendering options. | Which routes are universal, client-rendered or prerendered. |
| Astro | The site is mostly content with selected interactive components. | Which components need client JavaScript and which pages need a server. |
Vite’s deployment guide describes building a static distribution. That is useful for a frontend bundle; it does not turn a form into an authenticated backend. If your product needs accounts, billing or persistence, specify the service that handles them and how the browser reaches it.
With the Next.js App Router, pages and layouts are Server Components by default. Client Components provide the browser-side interactivity. A practical review question is whether the client boundary is as small as the interaction requires, rather than whether the entire page has been labeled one way.
Nuxt’s rendering guide describes universal rendering as the default, with client-side and hybrid options. For a Vue team, that gives a useful way to choose behavior per route instead of forcing the same delivery model onto every screen.
Astro’s islands architecture keeps the surrounding page as HTML while selected components gain interactivity. A comparison slider, search box or product configurator can be an island; the article around it can remain straightforward content. Server islands and on-demand routes are available when the content also needs server execution.
A convincing demo is only the frontend boundary
Actual Latticeport 1.0.0 preview, captured at 1440 × 1000. This is a fictional product frontend example, not evidence of a running developer-platform backend.Latticeport is useful here because it looks like a software product: navigation, hierarchy and a clear product story. The screenshot is a visual artifact. It does not establish that the fictional product has working infrastructure behind it. Keep that distinction in the implementation brief, especially when an agent can rapidly make a screen look complete.
Give the agent a four-part architecture brief
Name the routes
List the public pages and the authenticated workspace. Mark which page should still communicate its purpose before client JavaScript finishes.
Name the real interactions
Describe one complete action: its input, pending state, success result and failure state. State where the result persists.
Choose the smallest suitable boundary
Pick the frontend framework and explicitly identify any separate API or server route. Keep secrets and privileged operations on the server.
Test the deployed shape
Open a deep link directly, refresh it, inspect its metadata, and complete the interaction against the intended environment. A dev-server screenshot is not this test.
A brief you can actually hand over
Product: a project review workspace
Public: home, product detail, journal
App: sign-in, project list, review screen
Content delivery: public pages need readable initial HTML
Interactive state: selection, filters, comments, pending/error states
Private operations: authenticated API; never browser-held secrets
Deployment: document the static assets and server processes separately
Acceptance: deep-link refresh, keyboard use, mobile layout, real API errors
Choose a stack you can describe this clearly. A familiar framework with an explicit boundary is a more reviewable starting point than an impressive stack list with undefined behavior. Once that decision is written down, design and implementation can move together without repeatedly reopening the architecture.
Back to the LOOKFILE blog