Skip to content

Commit b17b49b

Browse files
authored
docs(repo): change client libraries references to sdk (#1776)
1 parent 4b67d60 commit b17b49b

File tree

18 files changed

+191
-93
lines changed

18 files changed

+191
-93
lines changed

.cursorrules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cursor Rules for Supabase JS Libraries Monorepo
22

3-
You are working in a unified Nx monorepo that consolidates all Supabase JavaScript client libraries. This migration from 6 separate repositories addresses maintenance overhead, dependency duplication, and release coordination challenges.
3+
You are working in a unified Nx monorepo that consolidates all Supabase JavaScript SDKs. This migration from 6 separate repositories addresses maintenance overhead, dependency duplication, and release coordination challenges.
44

55
## Repository Context
66

.github/workflows/docs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,33 +100,33 @@ jobs:
100100
</head>
101101
<body>
102102
<h1>Supabase JavaScript Libraries - API Documentation</h1>
103-
<p>TypeScript/JavaScript API documentation for all Supabase client libraries.</p>
103+
<p>TypeScript/JavaScript API documentation for all Supabase JS SDKs.</p>
104104
105105
<h2>Available Documentation:</h2>
106106
<ul>
107107
<li>
108108
<a href="auth-js/v2/spec.json">@supabase/auth-js</a>
109-
<div class="description">Authentication client library</div>
109+
<div class="description">Authentication SDK</div>
110110
</li>
111111
<li>
112112
<a href="functions-js/v2/spec.json">@supabase/functions-js</a>
113-
<div class="description">Edge Functions client library</div>
113+
<div class="description">Edge Functions SDK</div>
114114
</li>
115115
<li>
116116
<a href="postgrest-js/v2/spec.json">@supabase/postgrest-js</a>
117-
<div class="description">PostgREST database client</div>
117+
<div class="description">PostgREST database SDK</div>
118118
</li>
119119
<li>
120120
<a href="realtime-js/v2/spec.json">@supabase/realtime-js</a>
121-
<div class="description">Realtime subscriptions client</div>
121+
<div class="description">Realtime subscriptions SDK</div>
122122
</li>
123123
<li>
124124
<a href="storage-js/v2/spec.json">@supabase/storage-js</a>
125-
<div class="description">File storage client</div>
125+
<div class="description">File storage SDK</div>
126126
</li>
127127
<li>
128128
<a href="supabase-js/v2/spec.json">@supabase/supabase-js</a>
129-
<div class="description">Main isomorphic client combining all libraries</div>
129+
<div class="description">Main isomorphic SDK combining all SDKs</div>
130130
</li>
131131
</ul>
132132

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Claude AI Instructions for Supabase JS Libraries Monorepo
22

3-
You are assisting with development in a unified Nx monorepo that consolidates all Supabase JavaScript client libraries, built with Nx for optimal developer experience and maintainability. This strategic migration from 6 separate repositories addresses critical maintenance overhead, dependency duplication, and release coordination challenges while maintaining **zero breaking changes** for consumers.
3+
You are assisting with development in a unified Nx monorepo that consolidates all Supabase JavaScript SDKs, built with Nx for optimal developer experience and maintainability. This strategic migration from 6 separate repositories addresses critical maintenance overhead, dependency duplication, and release coordination challenges while maintaining **zero breaking changes** for consumers.
44

55
> **📚 Essential Documentation**: Always refer to these guides for detailed information:
66
>
@@ -777,4 +777,4 @@ _No user-facing changes in this release._
777777
- Unchanged packages show "No user-facing changes"
778778
- Single npm install updates entire SDK suite
779779

780-
Remember: This monorepo optimizes for developer experience and maintenance efficiency while ensuring zero breaking changes for the millions of developers using Supabase client libraries.
780+
Remember: This monorepo optimizes for developer experience and maintenance efficiency while ensuring zero breaking changes for the millions of developers using Supabase SDKs.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing to Supabase JS Libraries
22

3-
Thank you for your interest in contributing to the Supabase JavaScript client libraries! This guide will help you get started with contributing to the Supabase JS monorepo.
3+
Thank you for your interest in contributing to the Supabase JavaScript SDK! This guide will help you get started with contributing to the Supabase JS monorepo.
44

55
> **Repository Structure Changed:** This repository has been restructured as a monorepo. **All libraries, including `supabase-js`, are now under `packages/core/`**. If you previously contributed to `supabase-js`, `auth-js`, `postgrest-js`, `realtime-js`, `storage-js`, or `functions-js`, please read our **[Migration Guide](docs/MIGRATION.md)** to understand:
66
>

README.md

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</picture>
99
</a>
1010

11-
<h1 align="center">Supabase JS Client Libraries</h1>
11+
<h1 align="center">Supabase JS SDK</h1>
1212

1313
<p align="center">
1414
<a href="https://supabase.com/docs/guides/getting-started">Guides</a>
@@ -19,6 +19,9 @@
1919

2020
<div align="center">
2121

22+
[![Build](https://github.com/supabase/supabase-js/workflows/CI/badge.svg)](https://github.com/supabase/supabase-js/actions?query=branch%3Amaster)
23+
[![Package](https://img.shields.io/npm/v/@supabase/supabase-js)](https://www.npmjs.com/package/@supabase/postgrest-js)
24+
[![License: MIT](https://img.shields.io/npm/l/@supabase/supabase-js)](#license)
2225
[![pkg.pr.new](https://pkg.pr.new/badge/supabase/supabase-js)](https://pkg.pr.new/~/supabase/supabase-js)
2326

2427
</div>
@@ -36,16 +39,16 @@
3639
3740
## 📦 Libraries
3841

39-
This monorepo contains the complete suite of Supabase JavaScript client libraries:
42+
This monorepo contains the complete suite of Supabase JavaScript SDK:
4043

4144
| Library | Description |
4245
| ---------------------------------------------------------- | ---------------------------------------- |
43-
| **[@supabase/supabase-js](./packages/core/supabase-js)** | Main isomorphic client for Supabase |
44-
| **[@supabase/auth-js](./packages/core/auth-js)** | Authentication client |
45-
| **[@supabase/postgrest-js](./packages/core/postgrest-js)** | PostgREST client for database operations |
46-
| **[@supabase/realtime-js](./packages/core/realtime-js)** | Real-time subscriptions client |
47-
| **[@supabase/storage-js](./packages/core/storage-js)** | File storage client |
48-
| **[@supabase/functions-js](./packages/core/functions-js)** | Edge Functions client |
46+
| **[@supabase/supabase-js](./packages/core/supabase-js)** | Main isomorphic sdk for Supabase |
47+
| **[@supabase/auth-js](./packages/core/auth-js)** | Authentication sdk |
48+
| **[@supabase/postgrest-js](./packages/core/postgrest-js)** | PostgREST sdk for database operations |
49+
| **[@supabase/realtime-js](./packages/core/realtime-js)** | Real-time subscriptions sdk |
50+
| **[@supabase/storage-js](./packages/core/storage-js)** | File storage sdk |
51+
| **[@supabase/functions-js](./packages/core/functions-js)** | Edge Functions sdk |
4952

5053
> **💡 Note for Package Users:** If you install and use these packages, **nothing has changed**. Continue installing packages normally:
5154
>
@@ -147,12 +150,12 @@ npx nx test <package-name> --coverage
147150

148151
### API Documentation
149152

150-
- **[Auth Client](./packages/core/auth-js/README.md)** - Authentication and user management
151-
- **[Database Client](./packages/core/postgrest-js/README.md)** - Database queries and operations
152-
- **[Realtime Client](./packages/core/realtime-js/README.md)** - Real-time subscriptions
153-
- **[Storage Client](./packages/core/storage-js/README.md)** - File upload and management
154-
- **[Functions Client](./packages/core/functions-js/README.md)** - Edge Functions invocation
155-
- **[Main Client](./packages/core/supabase-js/README.md)** - Combined client library
153+
- **[Auth sdk](./packages/core/auth-js/README.md)** - Authentication and user management
154+
- **[Database sdk](./packages/core/postgrest-js/README.md)** - Database queries and operations
155+
- **[Realtime sdk](./packages/core/realtime-js/README.md)** - Real-time subscriptions
156+
- **[Storage sdk](./packages/core/storage-js/README.md)** - File upload and management
157+
- **[Functions sdk](./packages/core/functions-js/README.md)** - Edge Functions invocation
158+
- **[Main sdk](./packages/core/supabase-js/README.md)** - Combined sdk
156159

157160
### Architecture Documentation
158161

@@ -194,12 +197,12 @@ Because provenance attestations are a new capability, security features may evol
194197
supabase-js/
195198
├── packages/
196199
│ └── core/ # Published libraries
197-
│ ├── auth-js/ # Authentication client
198-
│ ├── functions-js/ # Edge Functions client
199-
│ ├── postgrest-js/ # PostgREST database client
200-
│ ├── realtime-js/ # Real-time subscriptions client
201-
│ ├── storage-js/ # File storage client
202-
│ └── supabase-js/ # Main isomorphic client
200+
│ ├── auth-js/ # Authentication sdk
201+
│ ├── functions-js/ # Edge Functions sdk
202+
│ ├── postgrest-js/ # PostgREST database sdk
203+
│ ├── realtime-js/ # Real-time subscriptions sdk
204+
│ ├── storage-js/ # File storage sdk
205+
│ └── supabase-js/ # Main isomorphic sdk
203206
├── nx.json # npx nx workspace configuration
204207
├── package.json # Root package.json and workspaces setup
205208
└── ...

WARP.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file provides guidance to WARP (warp.dev) when working with code in this re
44

55
## Repository Overview
66

7-
This is a unified Nx monorepo consolidating all Supabase JavaScript client libraries, built with Nx for optimal developer experience and maintainability. This strategic migration from 6 separate repositories addresses critical maintenance overhead, dependency duplication, and release coordination challenges while maintaining **zero breaking changes** for consumers.
7+
This is a unified Nx monorepo consolidating all Supabase JavaScript SDKs, built with Nx for optimal developer experience and maintainability. This strategic migration from 6 separate repositories addresses critical maintenance overhead, dependency duplication, and release coordination challenges while maintaining **zero breaking changes** for consumers.
88

99
> **📚 Key Documentation**: For comprehensive guides, see:
1010
>
@@ -46,12 +46,12 @@ This monorepo replaces the following individual repositories:
4646
```text
4747
supabase-js/
4848
├── packages/core/ # Published libraries
49-
│ ├── supabase-js/ # Main isomorphic client for Supabase (@supabase/supabase-js)
50-
│ ├── auth-js/ # Authentication client (@supabase/auth-js)
51-
│ ├── postgrest-js/ # PostgREST client for database operations (@supabase/postgrest-js)
52-
│ ├── realtime-js/ # Real-time subscriptions client (@supabase/realtime-js)
53-
│ ├── storage-js/ # File storage client (@supabase/storage-js)
54-
│ └── functions-js/ # Edge Functions client (@supabase/functions-js)
49+
│ ├── supabase-js/ # Main isomorphic SDK for Supabase (@supabase/supabase-js)
50+
│ ├── auth-js/ # Authentication SDK (@supabase/auth-js)
51+
│ ├── postgrest-js/ # PostgREST SDK for database operations (@supabase/postgrest-js)
52+
│ ├── realtime-js/ # Real-time subscriptions SDK (@supabase/realtime-js)
53+
│ ├── storage-js/ # File storage SDK (@supabase/storage-js)
54+
│ └── functions-js/ # Edge Functions SDK (@supabase/functions-js)
5555
├── docs/ # Documentation guides
5656
│ ├── CONTRIBUTING.md # Contribution guidelines
5757
│ ├── TESTING.md # Testing guide
@@ -172,15 +172,15 @@ Each library has its own testing infrastructure. See the [TESTING.md](docs/TESTI
172172

173173
### Core Architecture
174174

175-
The main `@supabase/supabase-js` package aggregates all individual client libraries:
175+
The main `@supabase/supabase-js` package aggregates all individual SDKs:
176176

177177
- **auth-js**: Handles authentication and user management
178178
- **postgrest-js**: Provides database query capabilities via PostgREST
179179
- **realtime-js**: Manages real-time subscriptions and channels
180180
- **storage-js**: Handles file uploads and storage operations
181181
- **functions-js**: Invokes Supabase Edge Functions
182182

183-
Each library is designed to work independently but integrates seamlessly when used together through the main client.
183+
Each library is designed to work independently but integrates seamlessly when used together through the main SDK.
184184

185185
### Development Infrastructure
186186

@@ -259,7 +259,7 @@ nx affected --target=test
259259

260260
| Library | Docker Required | Primary Use Case |
261261
| ------------ | --------------- | -------------------------- |
262-
| supabase-js | ❌ No | Main isomorphic client |
262+
| supabase-js | ❌ No | Main isomorphic SDK |
263263
| auth-js | ✅ Yes | Authentication & user mgmt |
264264
| postgrest-js | ✅ Yes | Database queries |
265265
| realtime-js | ❌ No | Real-time subscriptions |

docs/MIGRATION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ This guide is for contributors who need to understand where code moved and how t
9898

9999
## Why We Migrated
100100

101-
We converted the `supabase-js` repository into a monorepo and absorbed the other js client libraries to solve several challenges:
101+
We converted the `supabase-js` repository into a monorepo and absorbed the other js SDKs to solve several challenges:
102102

103103
### Problems with Separate Repos
104104

@@ -134,7 +134,7 @@ github.com/supabase/storage-js
134134
github.com/supabase/functions-js
135135
```
136136

137-
**After:** The Supabase JS monorepo (absorbed all client libraries)
137+
**After:** The Supabase JS monorepo (absorbed all SDKs)
138138

139139
```tree
140140
github.com/supabase/supabase-js
@@ -325,7 +325,7 @@ Use these names with Nx commands:
325325
- `postgrest-js` - PostgREST library
326326
- `realtime-js` - Realtime library
327327
- `storage-js` - Storage library
328-
- `supabase-js` - Main client library
328+
- `supabase-js` - Main SDK
329329

330330
### Useful New Commands
331331

packages/core/auth-js/README.md

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,34 @@
1-
# `auth-js`
2-
3-
An isomorphic JavaScript client library for the [Supabase Auth](https://github.com/supabase/auth) API.
1+
<br />
2+
<p align="center">
3+
<a href="https://supabase.io">
4+
<picture>
5+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/supabase/supabase/master/packages/common/assets/images/supabase-logo-wordmark--dark.svg">
6+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/supabase/supabase/master/packages/common/assets/images/supabase-logo-wordmark--light.svg">
7+
<img alt="Supabase Logo" width="300" src="https://raw.githubusercontent.com/supabase/supabase/master/packages/common/assets/images/logo-preview.jpg">
8+
</picture>
9+
</a>
10+
11+
<h1 align="center">Supabase Auth JS SDK</h1>
12+
13+
<h3 align="center">An isomorphic JavaScript SDK for the <a href="https://github.com/supabase/auth">Supabase Auth</a> API.</h3>
14+
15+
<p align="center">
16+
<a href="https://supabase.com/docs/guides/auth">Guides</a>
17+
·
18+
<a href="https://supabase.com/docs/reference/javascript/auth-signup">Reference Docs</a>
19+
·
20+
<a href="https://supabase.github.io/supabase-js/auth-js/v2/spec.json">TypeDoc</a>
21+
</p>
22+
</p>
423

524
<div align="center">
625

26+
[![Build](https://github.com/supabase/supabase-js/workflows/CI/badge.svg)](https://github.com/supabase/supabase-js/actions?query=branch%3Amaster)
27+
[![Package](https://img.shields.io/npm/v/@supabase/auth-js)](https://www.npmjs.com/package/@supabase/auth-js)
28+
[![License: MIT](https://img.shields.io/npm/l/@supabase/supabase-js)](#license)
729
[![pkg.pr.new](https://pkg.pr.new/badge/supabase/auth-js)](https://pkg.pr.new/~/supabase/auth-js)
8-
930
</div>
1031

11-
## Docs
12-
13-
- Using `auth-js`: https://supabase.com/docs/reference/javascript/auth-signup
14-
- TypeDoc: https://supabase.github.io/supabase-js/auth-js/v2/spec.json
15-
1632
## Quick start
1733

1834
Install
@@ -31,9 +47,9 @@ const GOTRUE_URL = 'http://localhost:9999'
3147
const auth = new AuthClient({ url: GOTRUE_URL })
3248
```
3349

34-
- `signUp()`: https://supabase.io/docs/reference/javascript/auth-signup
35-
- `signIn()`: https://supabase.io/docs/reference/javascript/auth-signin
36-
- `signOut()`: https://supabase.io/docs/reference/javascript/auth-signout
50+
- `signUp()`: https://supabase.com/docs/reference/javascript/auth-signup
51+
- `signIn()`: https://supabase.com/docs/reference/javascript/auth-signin
52+
- `signOut()`: https://supabase.com/docs/reference/javascript/auth-signout
3753

3854
### Custom `fetch` implementation
3955

packages/core/auth-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@supabase/auth-js",
33
"version": "0.0.0",
44
"private": false,
5-
"description": "Official client library for Supabase Auth",
5+
"description": "Official SDK for Supabase Auth",
66
"keywords": [
77
"auth",
88
"supabase",

packages/core/auth-js/src/lib/error-codes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Known error codes. Note that the server may also return other error codes
3-
* not included in this list (if the client library is older than the version
3+
* not included in this list (if the SDK is older than the version
44
* on the server).
55
*/
66
export type ErrorCode =

0 commit comments

Comments
 (0)