Razikus/supabase-nextjs-template
Razikus/supabase-nextjs-template has 322 GitHub stars and 179 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-14 10:11 UTC. Last push 2025-12-06.
What you can do
- Email/Password authentication
- Multi-factor authentication (MFA) support
- OAuth/SSO integration ready
- Password reset and email verification
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
A production-ready SaaS template built with Next.js 15, Supabase, and Tailwind CSS. Includes authentication, user management, file storage, task management demos, and secure RLS policies. Now with a complete React Native + Expo mobile app template! Easily customizable with pre-built themes, i18n support (EN/PL/ZH), and legal documents.
웹 및 앱README.md
OriginalSupabase Full-Stack SaaS Template
A production-ready SaaS template built with Next.js 15, Supabase, and Tailwind CSS. This template provides everything you need to quickly launch your SaaS product, including authentication, user management, file storage, and more.
🎉 NEW: Mobile App Now Available! Check out README_MOBILE.md for the complete React Native + Expo mobile app that shares the same Supabase backend! https://youtube.com/shorts/qcASa0Ywsy4?feature=share
🇨🇳 Chinese Documentation Available
This repository includes full documentation in Simplified Chinese:
- README_ZH.md - Complete Chinese translation of the main documentation
- README_MOBILE_ZH.md - Complete Chinese translation of the mobile app documentation
本仓库包含完整的简体中文文档:
- README_ZH.md - 主文档的完整中文翻译
- README_MOBILE_ZH.md - 移动应用文档的完整中文翻译
LIVE DEMO
Demo is here - https://basicsass.razikus.com
Self promo
Hey, don't be a code printer in AI era. Check my book
http://razikus.gumroad.com/l/dirtycode - live now!
https://www.amazon.com/dp/B0FNR716CF - live from 01.09
https://books.apple.com/us/book/dirty-code-but-works/id6751538660 - live from 01.09
https://play.google.com/store/books/details?id=5UWBEQAAQBAJ - live from 01.09
Deployment video
Video is here - https://www.youtube.com/watch?v=kzbXavLndmE
Migration from auth schema
According to this - https://github.com/Razikus/supabase-nextjs-template/issues/4
We are no longer able to modify auth schema. I modified original migrations to rename it to custom schema. If you need to migrate from older version - check supabase/migrations_for_old/20250525183944_auth_removal.sql
🚀 Features
Authentication
- Email/Password authentication
- Multi-factor authentication (MFA) support
- OAuth/SSO integration ready
- Password reset and email verification
User Management
- User profiles and settings
- Secure password management
- Session handling
File Management Demo (2FA ready)
- Secure file upload and storage
- File sharing capabilities
- Drag-and-drop interface
- Progress tracking
Task Management Demo (2FA ready)
- CRUD operations example
- Real-time updates
- Filtering and sorting
- Row-level security
Security
- Row Level Security (RLS) policies
- Secure file storage policies
- Protected API routes
- MFA implementation
UI/UX
- Modern, responsive design
- Dark mode support
- Loading states
- Error handling
- Toast notifications
- Confetti animations
Legal & Compliance
- Privacy Policy template
- Terms of Service template
- Refund Policy template
- GDPR-ready cookie consent
🛠️ Tech Stack
Frontend
- Next.js 15 (App Router)
- React 19
- Tailwind CSS
- shadcn/ui components
- Lucide icons
Backend
- Supabase
- PostgreSQL
- Row Level Security
- Storage Buckets
Authentication
- Supabase Auth
- MFA support
- OAuth providers
📦 Getting Started - local dev
- Fork or clone repository
- Prepare Supabase Project URL (Project URL from
Project Settings->API->Project URL) - Prepare Supabase Anon and Service Key (
Anon Key,Service KeyfromProject Settings->API->anon publicandservice_role) - Prepare Supabase Database Password (You can reset it inside
Project Settings->Database->Database Password) - If you already know your app url -> adjust supabase/config.toml
site_urlandadditional_redirect_urls, you can do it later - Run following commands (inside root of forked / downloaded repository):
# Login to supabase
npx supabase login
# Link project to supabase (require database password) - you will get selector prompt
npx supabase link
# Send config to the server - may require confirmation (y)
npx supabase config push
# Up migrations
npx supabase migrations up --linked
- Go to next/js folder and run
yarn - Copy .env.template to .env.local
- Adjust .env.local
NEXT_PUBLIC_SUPABASE_URL=https://APIURL
NEXT_PUBLIC_SUPABASE_ANON_KEY=ANONKEY
PRIVATE_SUPABASE_SERVICE_KEY=SERVICEROLEKEY
- Run yarn dev
- Go to http://localhost:3000 🎉
🚀 Getting Started - deploy to vercel
- Fork or clone repository
- Create project in Vercel - choose your repo
- Paste content of .env.local into environment variables
- Click deploy
- Adjust in supabase/config.toml site_url and additional_redirect_urls (important in additional_redirect_urls is to have https://YOURURL/** - these 2 **)
- Done!
📄 Legal Documents
The template includes customizable legal documents - these are in markdown, so you can adjust them as you see fit:
- Privacy Policy (
/public/terms/privacy-notice.md) - Terms of Service (
/public/terms/terms-of-service.md) - Refund Policy (
/public/terms/refund-policy.md)
🎨 Theming
The template includes several pre-built themes:
theme-sass(Default)theme-bluetheme-purpletheme-green
Change the theme by updating the NEXT_PUBLIC_THEME environment variable.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Need Multitenancy, Billing (Paddle) and Role Based Access Control?
I have paid template as well available here:
https://sasstemplate.razikus.com
Basically it's the same template but with Paddle + organisations API keys + multiple organisations + Role Based Access Control
For code GITHUB you can get -50% off
https://razikus.gumroad.com/l/supatemplate/GITHUB
📝 License
This project is licensed under the Apache License - see the LICENSE file for details.
💪 Support
If you find this template helpful, please consider giving it a star ⭐️
Or buy me a coffee!
My socials: