---
title: "What Is a Framework?"
description: "A framework is a ready-made structure for building apps so you do not start from scratch. Learn what frameworks are and why nearly every app uses one."
type: "fundamental"
locale: "en"
category: "concepts"
canonical: "https://agenticschool.dev/fundamentals/what-is-a-framework"
dateModified: "2026-06-12"
---

# What Is a Framework?

- Category: concepts
- Updated: 2026-06-12
- Keywords: framework, Next.js, Astro, TanStack, web development
- Canonical URL: https://agenticschool.dev/fundamentals/what-is-a-framework
- Locale: en

> A framework is a ready-made structure for building apps so you do not start from scratch. Learn what frameworks are and why nearly every app uses one.

A framework is a ready-made structure for building apps that handles the common, hard parts for you so you do not start from a blank page every time. Instead of wiring up routing, rendering and project structure by hand, a framework gives you sensible defaults and conventions, and you fill in what makes your app unique. Nearly every modern website is built on one because it turns months of plumbing into something you can stand up in minutes.

## A house with the walls already up

Think of a framework like a house where the foundation, walls and plumbing are already in place. You still design the rooms and decide how to live in it, but you are not pouring concrete. The framework makes the decisions that are the same for almost every app, leaving you free to focus on the parts that are actually yours.

## Frameworks you will hear about

You do not need to master these, just to recognise the names when an agent or tutorial mentions one.

- Next.js: a popular React framework for full web apps.
- Astro: great for fast, content-heavy and marketing sites.
- TanStack Start: a modern React framework, used by this very project.

## Why it matters for building with AI

A framework gives an AI agent a known structure to work inside, with clear conventions for where things go. That makes the agent more reliable, because it is filling in a familiar shape rather than inventing one. Picking a mainstream framework is one of the easiest ways to get better results from agent-built projects.

## Common beginner confusions

It is easy to think you must choose the "best" framework before you can start, and to freeze on that decision. In reality any mainstream framework will carry you a long way, and switching later is rare and rarely fatal, so the cost of picking imperfectly is low. People also blur frameworks with languages: a framework is built on top of a language, so React frameworks like Next.js or TanStack Start are still JavaScript and TypeScript underneath. And a framework is not a no-code tool that builds your app for you; it is a structured starting point you build inside. The leverage comes from pairing a familiar framework with an AI agent, which knows its conventions and fills in the shape far faster than building from scratch.

## FAQ

### What is the difference between a framework and a library?

A library is a tool you call when you need it; a framework is the overall structure that calls your code. Loosely: you use a library, but you build inside a framework.

### Which framework should a beginner pick?

Pick a mainstream one that matches your goal, such as Next.js or TanStack Start for web apps, or Astro for content sites. Whatever your tutorial or agent already uses is a fine default.

### Do I need to learn a framework deeply to build with AI?

Not at first. The agent works within the framework for you. It helps to recognise the names and the basic structure, but you can build real things before you master the details.
