supabase-js

Featured

This skill should be used when user asks to "use supabase-js", "query Supabase database", "supabase auth", "supabase storage", "supabase realtime", "supabase edge functions", or works with the @supabase/supabase-js JavaScript/TypeScript SDK.

API & Backend 1,213 stars 115 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Supabase JavaScript SDK Skill Skill for building applications with the `@supabase/supabase-js` SDK. Covers Auth, Database (PostgREST), Storage, Realtime, and Edge Functions. The SDK docs at https://supabase.com/docs/reference/javascript are the source of truth. The reference files alongside this skill contain source code and READMEs extracted from the monorepo for quick lookup. ## Setup ```bash npm install @supabase/supabase-js ``` ```typescript import { createClient } from '@supabase/supabase-js' const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key') ``` For type-safe queries, generate types from your database schema: ```bash supabase gen types typescript --project-id your-project-id > database.types.ts ``` ```typescript import { createClient } from '@supabase/supabase-js' import type { Database } from './database.types' const supabase = createClient<Database>(SUPABASE_URL, SUPABASE_ANON_KEY) ``` ## Quick Decision Trees ### "I need to query data" ``` Database query? ├─ Select rows → supabase.from('table').select('*') ├─ Filter rows → .select().eq('col', val) / .gt() / .lt() / .in() / .like() ├─ Join tables → .select('*, other_table(*)') or .select('*, other_table!fk(*)') ├─ Insert → supabase.from('table').insert({ col: val }) ├─ Upsert → supabase.from('table').upsert({ id: 1, col: val }) ├─ Update → supabase.from('table').update({ col: val }).eq('id', 1) ├─ Delete → supabase.from('table').delete().eq('id', 1) ├─ Call RPC function → ...

Details

Author
fcakyon
Repository
fcakyon/claude-codex-settings
Created
1 years ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category