Skip to content

wrannaman/tryaskit.com-free-supabase-starter-kit

Repository files navigation

🚀 supabase-starter-kit

The fastest way to ship your next dev tool. A production-ready Next.js template with Supabase auth, team management, and dashboard. Deploy in 5 minutes, start building in 10.

Deploy with Vercel Star on GitHub

🎁 FREE GIVEAWAY - This entire codebase is free. Deploy, customize, and ship your dev tool. Get started →

🏗️ Architecture

The Hierarchy (Like a Family Tree! 👨‍👩‍👧‍👦)

🏢 Organization (org)
├── 👤 Users (auth.users) 
│   └── 🔗 Memberships (org_members)
│       ├── 👑 Owner (can do everything)
│       ├── ⚡ Admin (can manage team)
│       └── 👥 Member (basic access)
└── 📧 Invites (org_invites)
    ├── 📨 Pending (waiting for response)
    ├── ✅ Accepted (becomes member)
    └── ❌ Expired/Cancelled

How It Works

  1. 👤 Users - Authenticated via Supabase Auth (Google OAuth, magic links, etc.)
  2. 🏢 Organizations - Multi-tenant workspaces (each user gets a "Personal" org by default)
  3. 🔗 Memberships - Users belong to organizations with specific roles
  4. 📧 Invites - Team members can invite others via email

Database Tables

Table Purpose Key Fields
org Organizations/workspaces id, name, settings
org_members User-org relationships user_id, organization_id, role
org_invites Pending team invitations email, token, status, expires_at

⚡ Deploy in 60 Seconds

Deploy with Vercel

  1. Click Deploy → Fork this repo
  2. Setup Supabase → Run the SQL from sql/001-initial.sql
  3. Add env vars → Copy from env.example
  4. Ship ityarn dev and start building

That's it. Your app is live. No more auth headaches, no more boilerplate. Just build.

🔥 Pro Tip: While you're building, validate your idea by talking to real developers. Try Ask It →

🛠️ What You Get

Everything you need to ship fast:

  • 🔐 Auth Done Right - Google OAuth, magic links, RLS policies
  • 👥 Team Management - Invite members, role-based access
  • 🎨 Beautiful UI - Tailwind + shadcn/ui components
  • 🏢 Multi-tenant - Organizations with proper isolation
  • Modern Stack - Next.js 15, TypeScript, Vercel-ready

Plus the secret sauce:

  • 📊 Production-ready - Error handling, loading states, responsive
  • 🔒 Security-first - Row-level security, proper auth flows
  • 🚀 Deploy-ready - One-click Vercel deployment

🛠️ Key Functions

ensure_current_user_org(name?)

Automatically creates a "Personal" organization for new users. Called during auth callback.

my_organizations()

Returns all organizations the current user belongs to with their role.

create_organization_with_owner(name, owner_id)

Creates a new organization and makes the specified user the owner.

🔒 Security

  • Row Level Security (RLS) enabled on all tables
  • Role-based access (owner > admin > member)
  • Secure invites with expiring tokens
  • Multi-tenant isolation - users only see their orgs

🚀 Built for Dev Tool Builders

This template is for you if you're:

  • 🏗️ Building a dev tool and need auth + team management
  • Indie hacking and want to ship fast without boilerplate
  • 🎯 Validating an idea and need to talk to real developers
  • 🚀 Scaling a startup and need production-ready foundations

🎁 Free Codebase

This entire template is free:

Stop building boilerplate. Start shipping. This production-ready codebase is yours to customize and deploy. No strings attached.

Perfect for indie hackers, dev tool builders, and anyone who wants to ship fast.

📚 Resources


Ready to ship? Deploy now →

Need validation? Talk to real developers →

Built by developers, for developers. Ship fast. Validate faster.

About

The fastest way to ship your next dev tool. Production-ready Next.js template with Supabase auth, team management, and dashboard. Deploy in 5 minutes, start building in 10.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors