Get a production-ready template for Next.js with Supabase SSR auth and AI capabilities, ideal for startup founders, with 395 GitHub stars
395 stars57 forksTypeScriptQuality 8/10Updated 7/21/2026100% free ยท open source
What it does
This tool provides a production-ready template for Next.js with Supabase SSR authentication and AI capabilities, allowing startup founders to quickly build and deploy secure and scalable applications with document chat, web search, and multiple LLM support.
โขWhen building a Next.js application that requires secure authentication and authorization
โขWhen needing to integrate AI capabilities such as document chat, web search, and LLM support into a Next.js application
โขWhen looking for a pre-configured template with secure file storage, vector search, and persistent chat history
Quick start
1Run `npm install` to install dependencies
2Create a new Supabase project and update the `_supabaseUrl` and `supabaseKey` variables in the `lib/supabaseClient.js` file
3 Configure the AI capabilities by modifying the `lib/aiConfig.js` file to include your LLM and web search settings
4Start the development server with `npm run dev` and access the application at `http://localhost:3000`
5Test the authentication and AI capabilities by creating a new user account and interacting with the document chat and web search features
Ready-to-paste prompt
To test the document chat AI capability, navigate to `http://localhost:3000/chat` and enter a prompt such as 'What is the meaning of life?' to see the AI response
Heads up: Make sure to replace the `SUPABASE_URL` and `SUPABASE_KEY` environment variables in the `lib/supabaseClient.js` file with your actual Supabase project URL and key, as these are required for the authentication and AI capabilities to function correctly
Saves to your device
What's inside โ free to inspect
No purchase needed
Read the entire source before you build โ unlike paid marketplaces that hide it behind a buy button.