Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

supabase-architecture-variants

Skill by jeremylongshore

Supabase Architecture Variants is a Claude Code skill for choosing and setting up Supabase in Next.js, SPA, React Native, Edge Functions and multi-tenant apps. It explains when to use the anon key and when to use the service_role key. It is for developers wiring Supabase into a specific stack.

  • Score 77
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install supabase-architecture-variants

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/supabase-architecture-variants ~/.claude/skills/supabase-architecture-variants

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install supabase-architecture-variants in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Supabase Architecture Variants is a Claude Code skill that helps developers choose and wire up Supabase for a specific stack. It focuses on two questions: where the Supabase client runs (browser or server) and which key it uses. The anon key respects row level security, while the service_role key bypasses it. The skill covers five architectures: Next.js SSR, SPA, mobile with React Native, serverless Edge Functions, and multi-tenant isolation.

Each architecture has a decision matrix row, a short client setup example, and a link to a fuller walkthrough in the reference files. Next.js uses separate server, browser and admin clients with cookie-based sessions. SPA and mobile apps use a single anon client. The skill also lists common errors and fixes, such as a service_role key ending up in a client bundle. It is aimed at developers building Supabase apps with these stacks.

Written from the project's SKILL.md and checked against it.

What it can do

  • Next.js SSR setupServer, browser and admin clients with cookie-based auth and middleware.
  • SPA patternSingleton client with an auth state listener and React Query integration.
  • React Native setupAsyncStorage client with deep link OAuth and an in-app browser.
  • Edge Function patternsPer-request clients built from the forwarded JWT, with admin escalation for privileged work.
  • Multi-tenant RLS isolationRow level security gated by a tenant_members lookup, or schema-per-tenant isolation.
  • Architecture decision matrixHelps pick the client setup and key for each target stack.
  • Error handling tableLists common issues such as missing cookies or leaked service_role keys, with fixes.

What you need

  • Supabase project with URL, anon key and service_role key
  • @supabase/supabase-js v2 or later
  • @supabase/ssr v0.5 or later for Next.js SSR
  • TypeScript project with generated database types
  • React Native with Expo or bare workflow for mobile

Try asking

  • Set up Supabase auth with Next.js App Router and SSR cookies.
  • Wire a React Native Expo app to Supabase with deep link OAuth.
  • Design row level security for multi-tenant data in Supabase.

Good to know

  • Full walkthroughs are in linked reference files, not in the main skill text.
  • Mobile guidance assumes React Native with Expo or the bare workflow.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/supabase-architecture-variants/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditBash(supabase:*)Bash(npx:*)Grep

Alternatives to supabase-architecture-variants

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

supabase-architecture-variants: common questions

Which Supabase key is safe to use in the browser?

The source says the anon key is for browser and client code because it respects RLS. The service_role key bypasses RLS and must stay in server code only.

Does this skill cover mobile apps?

Yes. It covers React Native setup with AsyncStorage, deep link OAuth and an in-app browser, using Expo or the bare workflow.

Which packages does the Next.js setup need?

The source lists @supabase/supabase-js v2 or later and @supabase/ssr v0.5 or later for Next.js SSR.

How do I install supabase-architecture-variants?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is supabase-architecture-variants free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is supabase-architecture-variants safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to supabase-architecture-variants?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

supabase-architecture-variants Install

Add to stack

Loading.