DOCUMENTATION

A starter you can
understand first.

Nexa gives you a polished AI product experience without hiding the important boundaries. Run it, read it, replace only what your product needs.

Production integrations only

OpenAI, Supabase, Stripe, and Resend are wired behind server boundaries. Protected features stay unavailable until their required environment variables are configured.

01

Quick start

Install dependencies and start the local development server:

terminal
npm install
npm run dev

Open http://localhost:3000. Public marketing pages load immediately; authentication and product routes require the included production environment variables.

02

Project structure

Files are grouped by product responsibility, not by arbitrary implementation detail.

terminal
app/
  api/generate/route.ts
  api/stripe/*
  dashboard/actions.ts
  admin/actions.ts
components/
  landing/
  studio/
  ui/
lib/
  data/
  supabase/
supabase/migrations/
  • Marketing sections are independently editable.
  • Studio interactions stay behind client boundaries.
  • Shared product copy and plans live in one typed data module.
03

Connect your AI provider

The browser calls /api/generate, which validates input, checks authentication and plan limits, calls the OpenAI Responses API, and persists usage. The API key never reaches the client.

terminal
OPENAI_API_KEY=sk-...
OPENAI_MODEL=gpt-5.6

# Restart after changing environment variables
npm run dev
04

Make the design yours

The design system is intentionally compact. Edit the variables at the top of app/globals.css to change the entire product.

terminal
:root {
  --ink: #111126;
  --violet: #6c5ce7;
  --coral: #ff7657;
  --mint: #41c7a5;
  --paper: #f7f5ff;
}
05

Production checklist

  • Run the included Supabase migration

  • Add production environment keys in Vercel

  • Set Supabase callback URLs

  • Create Stripe recurring Prices and webhook

  • Verify a Resend sending domain

  • Configure monitoring and rate limiting at the edge

  • Replace sample names, metrics, and testimonials

  • Review privacy, terms, and commercial license

License

Add the commercial license that matches your distribution model. If you sell this kit, clearly distinguish using the code in customer projects from redistributing the starter itself.

Changelog

v1.0.0
Initial premium release

Marketing site, authenticated AI Studio, pricing, docs, and complete responsive design system.