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.
npm create lighthouse@latestKeep the complete stack, or skip auth and the database during setup.
Node.js 22.12+ npm Docker for local PostgreSQL
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.
An explanation of the real application pattern. No session is created and nothing is stored.
Start with an idea.
A project starts in your interface. Give it a name, then follow the request through the application.
create.mutateAsync({ name });Select a step or run the walkthrough to follow your project.
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 EdenProject 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 AuthPreview 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 ZodTry 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 DrizzleAdd 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 QueryOrbit 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/uiComfortable 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 examplesKeep 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.
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 architectureapp/Pages & navigationcomponents/Your interfacefeatures/Schemas & servicesserver/API, sessions & databaselib/Shared clients & utilitiesStart with clarity.
A working foundation should leave you with fewer questions.
Read the getting-started guideWhat 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!
npm create lighthouse@latest