Choosing a framework for your web application
A practical look at the trade-offs behind a technology choice, from the product’s needs to the team that will maintain it.
- Topic
- Engineering
- Published
- Updated
- Reading time
- 5 min read
Choosing the technology for a web project is one of the few decisions that is expensive to undo. Pick something too heavy and a simple site becomes slow and costly to maintain. Pick something too light and you end up rebuilding when the product grows. The right choice comes from what the project needs to do, who will look after it, and where it will run, not from what is popular this year.
Start with what you are building
Most web projects fall into one of three groups, and each points to a different kind of tool.
- Content websites: a business site, a portfolio, a blog. Mostly pages people read, a contact form, maybe an admin to update content.
- Websites with a few interactive parts: a filterable portfolio, a menu with filters, a booking form, a calculator.
- Web applications: dashboards, internal tools, platforms where people sign in, change data and work in the browser for long stretches.
The common mistake is using a tool built for the third group to build the first. A five-page business site doesn't need a single-page application framework, and visitors pay for it in download size and slower interaction.
The questions that decide it
- How much changes after the page loads? If almost nothing does, the browser needs very little JavaScript.
- Does it need to be found in search? Pages that must rank should arrive as complete HTML from the server. See technical SEO foundations for a website launch.
- Who maintains it? A tool your developer or team knows well beats a better tool nobody on the project knows.
- Where will it run, and at what cost? Static files can be hosted almost for free. A server application needs a server, updates, backups and monitoring.
- What data does it handle? Logins, payments and private records bring security work that some tools handle better than others.
Plain HTML, CSS and a little JavaScript
For a content website that changes rarely, this is often the best answer. Pages are fast, hosting is cheap, and nothing needs updating for security every month. Capital Tyres is a five-page static site. Ghermar & Sons is a single focused page with its scroll animations written in plain JavaScript, no framework at all.
The limit is updates. If the owner wants to add projects or articles without a developer, a static site needs a content system added to it, or a different approach.
Server-rendered frameworks
Frameworks such as Django, Flask, Laravel or Ruby on Rails build each page on the server and send complete HTML. They suit sites with an admin area, forms, user accounts or a database, while keeping pages fast and easy to index.
This site is built that way: Flask and server templates, with a small JavaScript bundle for the drawings and interactions. The admin, the contact form and the article pages all run on one small server I control. For a content site with an owner who edits it regularly, this is a dependable, low-cost choice.
React and Next.js
React is a library for building interfaces from components, and Next.js adds routing, server rendering and static generation around it. It has the largest ecosystem and plenty of developers who know it, which matters for hiring and long-term maintenance.
It is a strong fit for rich interfaces and applications. Intent Studio, a retail design studio, is built with React and GSAP because the site depends on large visual layouts and carefully timed motion. The cost is complexity and JavaScript weight, which needs active management to keep pages responsive. I go into that in mastering Interaction to Next Paint.
Vue and Nuxt, Svelte and SvelteKit
Vue, with Nuxt, covers much of the same ground as React and Next.js with a gentler learning curve that many teams like. Svelte, with SvelteKit, compiles components ahead of time and tends to send less JavaScript to the browser. Both are good, mature choices. Which one fits usually comes down to the team: who will work on it next year matters more than small differences in speed.
Astro and other content-first tools
Astro and similar tools send plain HTML by default and add JavaScript only to the parts of a page that need it. For marketing sites and blogs that need one or two interactive pieces, they combine the speed of a static site with the convenience of components.
The backend is a separate decision
The framework in the browser and the system behind it don't have to come from the same family. A few examples from my work:
- ASH Clipping, a campaign platform that tracks social views and creator payouts, uses Python and FastAPI for its data ingestion and API.
- Crypto Trading Analytics, a personal project, pairs a Flask backend with D3.js charts for live and historical data.
- Kamaldeep Enterprise, a fabric wholesaler's catalogue system, uses a GraphQL API so different screens can request exactly the product data they need.
Choose the backend for the data and the workload: how much traffic, how much background processing, which database, which integrations.
A simple way to decide
- Mostly reading, rarely updated: static HTML or a content-first tool like Astro.
- Mostly reading, updated by the owner: a server-rendered framework with an admin, or a static site with a content system.
- Heavy interaction, sign-ins and live data: React, Vue or Svelte with a framework that can render on the server, plus a backend chosen for the data.
- Whatever you choose: a tool someone on the project knows well and can keep up to date.
Your visitors never see the framework. They notice whether the page loads quickly, works on their phone and does what they came for. If you are planning a build, from website brief to launch shows where this decision fits in the process.
Written by Lay Shah, an independent developer building websites and tools for small businesses. Discuss a brief More articles