ChatGPT_LunarTides
ChatGPT_LunarTides is a Next.js app for managing tidal diagram objects stored in Supabase using the generalized LunarTidesSim schema and Colours lookup table.
What it includes
- Next.js App Router project ready for GitHub and Vercel deployment
- Supabase-backed CRUD API routes for tidal objects
- SQL migration for the generalized
LunarTidesSimandColourstables - TypeScript schema contracts for the generalized renderer model
- Renderer specification describing anchor resolution, visibility, and primitive generation
- Live tidal diagram preview with Earth, Sun, Moon, bulges, moon phase, and derived axis geometry
- Vitest coverage for API routes and the object dashboard UI
Local setup
-
Install dependencies:
npm install -
Copy the example environment file and add your Supabase values:
cp .env.example .env.local -
Apply the generalized schema migration in your Supabase project SQL editor or with the Supabase CLI:
supabase/migrations/20260411143000_create_lunartidessim_schema.sql
-
Start the development server:
npm run dev -
Open http://localhost:3000.
Environment variables
NEXT_PUBLIC_SUPABASE_URL: your Supabase project URLSUPABASE_SERVICE_ROLE_KEY: service role key used by the server-side CRUD routes
Deployment
Deploy by pushing this repo to GitHub, importing it into Vercel, and adding these environment variables in the Vercel project settings: