talira

The React framework for the web.

open sourceMITself-hostablefree

Next.js is a React framework for building full-stack web applications: you write React components for the UI, and Next.js provides routing, rendering, data fetching, caching and build tooling around them, configuring the bundler and compiler for you. It has two routers: the App Router, which supports React Server Components and newer React features, and the original Pages Router. create-next-app scaffolds a project and the next CLI runs the dev server and builds. It's created and maintained by Vercel, with the React team at Meta and Google's Aurora team as collaborators.

Problems it solves

  • my single-page React app has terrible SEO because the HTML is empty until JavaScript loads
  • render React on the server and only ship JavaScript for the interactive parts
  • I don't want to configure webpack, Babel and a dev server myself for a React project
  • file-based routing for a React app with nested layouts
  • build a marketing site and a logged-in dashboard in the same React codebase
  • add backend API endpoints next to my React pages without running a separate Express server
  • pre-render pages at build time but still refresh them when the content changes
  • fetch data from the database directly in a component without building a REST API first
  • full-stack TypeScript web framework so the front end and back end share types
  • an e-commerce storefront in React that loads fast on mobile

Features

  • App Router with React Server Components
  • Pages Router (original router, still supported)
  • Routing with page, layout and route file conventions
  • Route handlers and middleware
  • Server rendering, data fetching and caching
  • Automatically configured bundler and compiler
  • create-next-app scaffolding and next CLI

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what Next.js does.

  1. Astro The web framework for content-driven websites: server-first, with zero JavaScript by default.
  2. SvelteKit Web development, streamlined
  3. Ruby on Rails Accelerate your agents with convention over configuration.
  4. Laravel The PHP framework for web artisans.
  5. Django The web framework for perfectionists with deadlines.
  6. Phoenix Peace of mind from prototype to production.

Compare Next.js with the top 3