Getting started

Everything you need to set up a project, from installation to your first deploy.

Installation

Install the package with your package manager of choice. The library ships ES modules and type declarations, so no extra setup is required for TypeScript projects.

Project structure

Pages live in the routes folder, shared components in the components folder, and styles next to the components that use them. Keep each folder small and focused.

Configuration

A single configuration file controls the build output, environment variables, and integrations. Every option has a sensible default, so you can start with an empty file.

Routing

Each file in the routes folder becomes a page. Dynamic segments use square brackets, and nested folders create nested layouts that share their parent's shell.

Data fetching

Load data on the server before the page renders, then stream the rest. Loaders run in parallel and cache their results per request.

Deployment

Build once and deploy anywhere. The output is a static site plus an optional server entry that runs on any platform that supports standard web APIs.