Skip to content

Build the whole thing.

The full-stack TypeScript starter that connects your interface, API, sign-in, and database. Start with a working application. Make it your own.

Run in your terminal
npm create lighthouse@latest

Keep the complete stack, or skip auth and the database during setup.

Node.js 22.12+ npm Docker for local PostgreSQL

A beacon for your whole applicationA lighthouse connects the included application layers: Interface, Typed API, Identity, Data./api/projectsPOST

01The part your users see.

Server-rendered pages. Accessible components. Your design.

One project.
Every connection.

Give your project a name. Follow it from your interface to the database and back. Every layer has a job. Now you can see it.

INTERACTIVE EXAMPLELocal preview · no account needed
YOUR STARTING POINT

Give your project a name. We’ll follow the connections.

An explanation of the real application pattern. No session is created and nothing is stored.

01 / INPUTExplore

Start with an idea.

A project starts in your interface. Give it a name, then follow the request through the application.

project-manager.tsxcreate.mutateAsync({ name });

Select a step or run the walkthrough to follow your project.

Want to try real sign-in and storage?Open the working app

One stack.
All connected.

Each tool has a clear job. The connections are already made, and the source is yours to understand, adapt, and build on.

Change one side. Know what follows.

Elysia handles your API. Eden carries its types into your interface, so TypeScript shows you what needs attention when a request changes.

Explore Eden
One type connects the browser and serverThe request's name field connects to the same field in the server schema. Select a field below to follow its connection.BROWSERSERVERrequest{namedescription}schemanamestringdescriptiontypes agree
Illustrative preview · follow a field

Project name shares its type from the browser request to the server schema.

A front door that already works.

Email/password accounts and database sessions are ready. Owner-scoped services keep each person’s projects their own.

Explore Better Auth
An example workspace waits behind authenticationAn illustrated identity card connects to a protected workspace. The controls run a local simulation and never create an account or session.WorkspaceYour projectsOrbitYouSigned outsession preview
Illustrative preview · local simulation

Preview a sign-in to unlock the example workspace. No account is required.

Good data starts at the boundary.

One schema gives your forms useful feedback and your server a clear boundary. Try an empty name, then make it valid.

Explore Zod
One shared schema checks the project nameThe project name flows from input through a shared validation rule to output. The schema trims a string and requires 1–80 characters. Use the form below to validate an empty name, then a name of your own.Project name schemaz.string().trim()Required · 1–80 charactersInput""Outputwaiting
Illustrative preview · actual project schema

Try an empty name, then your own. Validation runs in your browser.

Save it. Come back to it.

Typed queries and PostgreSQL turn a form submission into a record you can return to. SQL migrations keep changes reviewable.

Explore Drizzle
A new project is ready to enter an example databaseA project record travels from an insert card to an illustrated database table. Saving this example changes only the illustration.projectsidname01Website02PrototypeINSERT PROJECT{ name: "Orbit" }
Illustrative preview · no database writes

Add Orbit to the illustrated table. This example stays in your browser.

Keep every view in step.

Your first view is server-rendered. TanStack Query then handles browser reads, loading states, and mutation reconciliation.

Explore TanStack Query
One illustrated cache keeps two views in stepThe cache, dashboard, and sidebar all show Orbit. Updating the example changes the same illustrated project in every view, without fetching or caching real server data.Cache["projects"]OrbitDashboardOrbitSidebarOrbit
Illustrative preview · one update, every view

Orbit is shared across the illustrated cache, dashboard, and sidebar.

Make it look like you.

Accessible primitives. Shared design tokens. Component source you own. Shape the interface around what you are building.

Explore shadcn/ui
Components arranged with comfortable spacingA component workbench pairs a rail of design tokens with an example project card. The spacing controls change the gaps and height of the illustrated card.Tokenscolorradiusspace: 24Your next idea.Make it a project.Project nameCreate projectyours.
Illustrative preview · choose the spacing

Comfortable spacing gives each component more room. The components are yours to adapt.

Write the request.
Let your editor help.

Pass an object. Get a typed response. Eden connects your browser calls to the API you wrote in Elysia, with autocomplete for endpoints and inputs. Start with one request, then follow the working feature.

Explore working examples

Keep local interactions in React and sessions in Better Auth. Zustand is optional for shared client-only state and is not installed by default.

See the data and state guide
// src/features/projects/api.ts (request excerpt)
// input is an ordinary object, such as:
// { name: "My next idea" }
const result = await api.api.projects.post(input, {
  headers: { "x-lighthouse-user-id": userId },
});

if (result.error) {
  throw apiError(result.status, result.error.value);
}

// result.data contains the parsed response.
// The complete helper also checks its shape.

Eden sends your object and reads the response. The extra api represents the /api URL prefix. The user header detects account changes; the server session decides ownership.

Validated inputTyped response

One app.
Room to grow.

Next.js handles pages and navigation. Elysia handles your API. Focused feature services connect them to the same business logic and database.

Explore the architecture
Your code to change
src/
app/Pages & navigation
components/Your interface
features/Schemas & services
server/API, sessions & database
lib/Shared clients & utilities

Start with clarity.

A working foundation should leave you with fewer questions.

Read the getting-started guide
What do I need to get started?

Node.js 22.12 or newer. Run the create command and answer the setup questions. Open Docker Desktop if you include local PostgreSQL; Lighthouse then starts the database and applies its migrations for you.

Can I leave out auth or the database?

Yes. Answer n to either question and set up your own integration later. Next.js, TypeScript, Tailwind, Elysia + Eden, TanStack Query, and Zod stay included. Every app opens with the Lighthouse welcome, a working example, and next steps.

Is this a platform I need to keep paying for?

Lighthouse creates an independent Node.js application with source you own. You choose your hosting and any database or auth services, whose charges depend on your setup.

Can I use my own PostgreSQL database?

Yes. Create with -- --skip-db, configure your database URL privately, and apply the committed migrations. The guide walks through the alternative setup.

What should I build first?

Start with the working example in your Lighthouse welcome: private Projects when you include auth, or a typed API example when you skip it. Follow its schema, service, API, and interface to add your first feature. The generated guide shows you where each piece belongs.

The foundations are ready.
Your idea is next.

Build good things, serve people well, and let your light shine!

Run in your terminal
npm create lighthouse@latest
Make something of your own