local-lite 0.2.1 โ†’ 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -363,6 +363,62 @@ class LocalFirstClient {
363
363
  getPrimaryKey() {
364
364
  return this.primaryKey;
365
365
  }
366
+ /**
367
+ * Invokes a remote function, action, or RPC through the configured remote backend adapter.
368
+ * Works seamlessly across Convex actions/mutations, Supabase Edge Functions/RPC, etc.
369
+ */
370
+ async call(functionName, args = {}) {
371
+ if (!this.remote || typeof this.remote.call !== 'function') {
372
+ throw new Error(`The current remote adapter does not support remote function calls (call).`);
373
+ }
374
+ return this.remote.call(functionName, args);
375
+ }
376
+ /**
377
+ * Executes a remote query through the configured remote backend adapter.
378
+ */
379
+ async queryRemote(queryName, args = {}) {
380
+ if (!this.remote || typeof this.remote.queryRemote !== 'function') {
381
+ throw new Error(`The current remote adapter does not support remote queries (queryRemote).`);
382
+ }
383
+ return this.remote.queryRemote(queryName, args);
384
+ }
385
+ /**
386
+ * Cloud automation / scheduled cron job controls.
387
+ */
388
+ get automations() {
389
+ return {
390
+ list: async () => {
391
+ if (this.remote && typeof this.remote.listAutomations === 'function') {
392
+ return this.remote.listAutomations();
393
+ }
394
+ return [];
395
+ },
396
+ setEnabled: async (jobId, enabled) => {
397
+ if (this.remote && typeof this.remote.setAutomationEnabled === 'function') {
398
+ return this.remote.setAutomationEnabled(jobId, enabled);
399
+ }
400
+ throw new Error('Remote adapter does not support remote automations.');
401
+ },
402
+ };
403
+ }
404
+ /**
405
+ * Lists remote database backup archives from cloud storage.
406
+ */
407
+ async listBackups() {
408
+ if (this.remote && typeof this.remote.listBackups === 'function') {
409
+ return this.remote.listBackups();
410
+ }
411
+ return [];
412
+ }
413
+ /**
414
+ * Retrieves a download URL for a file stored in the remote backend.
415
+ */
416
+ async getDownloadUrl(fileIdOrKey) {
417
+ if (this.remote && typeof this.remote.getDownloadUrl === 'function') {
418
+ return this.remote.getDownloadUrl(fileIdOrKey);
419
+ }
420
+ return null;
421
+ }
366
422
  /**
367
423
  * Options for TableManager.applyMutation on locally-originated writes.
368
424
  * The touch value uses the mutation timestamp so it matches what remote
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "local-lite",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Never let a lost connection break a promise. Local-first sync that faithfully keeps data safe until you're back online.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -11,7 +11,6 @@
11
11
  "files": [
12
12
  "bin",
13
13
  "dist",
14
- "docs",
15
14
  "skills",
16
15
  "README.md",
17
16
  "LICENSE"
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: local-lite-auth
3
- description: Implement authentication and session management in local-lite. Use when setting up zero-backend local SQLite authentication (LocalAuthEngine, useLocalAuth), configuring PBKDF2 crypto, brute-force lockout, single-use reset tokens, or integrating OAuth providers (Google, Microsoft, GitHub, Apple) and offline sessions.
3
+ description: Implement authentication and session management in local-lite. Use when setting up zero-backend local SQLite authentication (LocalAuthEngine, useLocalAuth), configuring PBKDF2 crypto, brute-force lockout, single-use reset tokens, remoteAuthHandler JWT exchange, UnifiedAuthManager multi-provider linking, or integrating OAuth providers (Google, Microsoft, GitHub, Apple) and offline sessions.
4
4
  ---
5
5
 
6
6
  # local-lite Authentication
7
7
 
8
- Comprehensive guide for implementing zero-backend local SQLite authentication and OAuth integrations in `local-lite`.
8
+ Comprehensive guide for implementing zero-backend local SQLite authentication, multi-provider identity unification, and OAuth integrations in `local-lite`.
9
9
 
10
10
  ---
11
11
 
@@ -14,11 +14,13 @@ Comprehensive guide for implementing zero-backend local SQLite authentication an
14
14
  `LocalAuthEngine` provides fully local, client-side authentication stored directly in private SQLite tables (`_local_users` and `_local_user_tokens`). It requires no remote servers or cloud accounts.
15
15
 
16
16
  ### Features
17
- * **PBKDF2-SHA256 Cryptography**: Fast, unboxed 32-bit integer arithmetic optimized for mobile (Hermes) and hardware-accelerated WebCrypto on Web.
17
+ * **PBKDF2-SHA256 Cryptography**: Fast, unboxed 32-bit integer arithmetic optimized for mobile (Hermes) and hardware-accelerated WebCrypto on Web. Seamless auto-migration of legacy `PBKDF2-SHA512` hashes upon successful sign-in.
18
18
  * **Cryptographic Salting**: 16-byte (128-bit) secure random salt per user to prevent rainbow table attacks.
19
19
  * **Timing-Attack Protection**: Constant-time byte comparisons (`timingSafeEqual`) and dummy verification for non-existent accounts.
20
20
  * **Brute-Force Lockout**: Automatically locks accounts after consecutive failed attempts for a configurable duration.
21
21
  * **Single-Use Reset Tokens**: 32-byte high-entropy tokens with SHA-256 storage and automated expiration.
22
+ * **Pluggable Remote Auth Exchange**: `remoteAuthHandler` automatically exchanges local credentials with your backend to retrieve and cache remote JWTs.
23
+ * **User Status Lifecycle**: Active, locked, or suspended accounts (`status: 'active' | 'locked' | 'suspended'`). Suspended accounts are immediately rejected on sign-in.
22
24
  * **Offline Sessions**: Integrated with `SessionManager` for persistent multi-device or single-device offline session lifecycles.
23
25
 
24
26
  ---
@@ -38,10 +40,11 @@ export const syncConfig = defineSyncConfig({
38
40
  usersTable: '_local_users',
39
41
  tokensTable: '_local_user_tokens',
40
42
 
41
- // Password requirements & validation
43
+ // Password requirements & custom validation (returns boolean or custom error string)
42
44
  minPasswordLength: 8,
43
45
  validatePassword: (password: string) => {
44
46
  if (!/[0-9]/.test(password)) return 'Password must include at least one number.';
47
+ if (!/[A-Z]/.test(password)) return 'Password must include at least one uppercase letter.';
45
48
  return true;
46
49
  },
47
50
 
@@ -55,6 +58,17 @@ export const syncConfig = defineSyncConfig({
55
58
  // Tuning (defaults: 'PBKDF2-SHA256' with 1,000 rounds)
56
59
  algorithm: 'PBKDF2-SHA256',
57
60
  iterations: 1_000,
61
+
62
+ // Optional remote auth token exchange (e.g. swap local login for backend JWT)
63
+ remoteAuthHandler: async ({ user, session }) => {
64
+ const res = await fetch('https://api.example.com/auth/sync-token', {
65
+ method: 'POST',
66
+ headers: { 'Content-Type': 'application/json' },
67
+ body: JSON.stringify({ userId: user.id, email: user.email }),
68
+ });
69
+ const data = await res.json();
70
+ return { token: data.token };
71
+ },
58
72
  },
59
73
  });
60
74
  ```
@@ -130,7 +144,7 @@ export function AuthScreen() {
130
144
 
131
145
  ---
132
146
 
133
- ## 4. Password Management & Cryptographic Resets
147
+ ## 4. Password Management & Administrative Controls
134
148
 
135
149
  ### Changing Passwords (User Authenticated)
136
150
  ```typescript
@@ -153,37 +167,63 @@ await client.auth.resetPasswordWithToken(token, 'NewStrongPassword789!');
153
167
  // The token is permanently invalidated in SQLite and the account is unlocked.
154
168
  ```
155
169
 
170
+ ### Administrative User Controls
171
+ ```typescript
172
+ // Suspend an abusive or compromised account
173
+ await client.auth.updateUser(userId, { status: 'suspended' });
174
+
175
+ // Manually unlock an account
176
+ await client.auth.unlockAccount(userId);
177
+
178
+ // Delete user and cascade clear tokens
179
+ await client.auth.deleteUser(userId);
180
+ ```
181
+
156
182
  ---
157
183
 
158
- ## 5. OAuth Providers & Cloud Auth
184
+ ## 5. Multi-Provider Identity Unification (`UnifiedAuthManager`)
159
185
 
160
- `local-lite/auth` also includes standalone OAuth clients and hooks for external identity providers:
186
+ When supporting both local authentication and third-party OAuth providers, `UnifiedAuthManager` generates a canonical, deterministic `userId` linking accounts by verified email:
161
187
 
162
- ### Google OAuth
163
188
  ```typescript
164
- import { GoogleAuthClient } from 'local-lite/auth';
165
- import { useGoogleAuth } from 'local-lite/react';
166
-
167
- const googleClient = new GoogleAuthClient({
168
- clientId: 'YOUR_GOOGLE_CLIENT_ID',
169
- redirectUri: 'YOUR_REDIRECT_URI',
170
- scopes: ['openid', 'profile', 'email'],
171
- authorize: async (req) => { /* invoke browser or WebBrowser.openAuthSessionAsync */ },
189
+ import {
190
+ UnifiedAuthManager,
191
+ GoogleAuthClient,
192
+ GitHubAuthClient,
193
+ SessionManager,
194
+ } from 'local-lite/auth';
195
+
196
+ const sessionManager = new SessionManager(client.getAdapter());
197
+ await sessionManager.initialize();
198
+
199
+ export const unifiedAuth = new UnifiedAuthManager({
200
+ google: googleClient,
201
+ github: githubClient,
202
+ local: client.auth,
203
+ sessionManager,
204
+ unifyByEmail: true, // Derives canonical UUIDv5 by normalized verified email
172
205
  });
173
- ```
174
206
 
175
- ### Microsoft OAuth & OneDrive
176
- ```typescript
177
- import { MicrosoftAuthClient } from 'local-lite/auth';
207
+ // Sign in with any provider - user sessions and local tables link seamlessly
208
+ const user = await unifiedAuth.signIn('google');
209
+ console.log('Unified Canonical User ID:', user.userId);
178
210
 
179
- const msClient = new MicrosoftAuthClient({
180
- clientId: 'YOUR_MS_CLIENT_ID',
181
- redirectUri: 'YOUR_REDIRECT_URI',
182
- scopes: ['openid', 'profile', 'User.Read', 'Files.ReadWrite.AppFolder'],
183
- authorize: async (req) => { /* invoke browser */ },
211
+ // Listen to unified state changes
212
+ const unsubscribe = unifiedAuth.onAuthStateChange((user) => {
213
+ console.log('Active User:', user?.email);
184
214
  });
215
+
216
+ // Cleanup when unmounting
217
+ unifiedAuth.destroy();
185
218
  ```
186
219
 
187
- ### Apple & GitHub OAuth
188
- Clients are available via `AppleAuthClient` and `GitHubAuthClient` with matching React hooks (`useAppleAuth`, `useGitHubAuth`).
220
+ ---
221
+
222
+ ## 6. Standalone OAuth Providers
223
+
224
+ `local-lite/auth` includes standalone PKCE OAuth clients with matching React hooks:
189
225
 
226
+ * **Google**: `GoogleAuthClient` / `useGoogleAuth`
227
+ * **Microsoft & OneDrive**: `MicrosoftAuthClient` / `OneDriveAuthClient` / `useMicrosoftAuth`
228
+ * **GitHub**: `GitHubAuthClient` / `useGitHubAuth`
229
+ * **Apple**: `AppleAuthClient` / `useAppleAuth`
@@ -0,0 +1,127 @@
1
+ ---
2
+ name: local-lite-server
3
+ description: Configure and implement framework-neutral REST API routing and dispatching with local-lite/server. Use when setting up server endpoints (defineServerConfig, createServer), declaring route parameters, implementing middleware pipelines, managing HTTP methods (GET, POST, PUT, DELETE, OPTIONS), 405 Method Not Allowed handling, or dispatching single fetch() requests in Edge, Node, Next.js, or Expo Router API routes.
4
+ ---
5
+
6
+ # local-lite Server API Routing
7
+
8
+ Guide for building framework-neutral REST API handlers, route parameters, middleware pipelines, and request dispatchers using `local-lite/server`.
9
+
10
+ ---
11
+
12
+ ## 1. Overview
13
+
14
+ `local-lite/server` provides a lightweight, framework-agnostic HTTP routing layer using standard Web `Request` and `Response` objects. It is designed for:
15
+ * **Expo Router API Routes** (`app/api/...index+api.ts`)
16
+ * **Next.js App Router Route Handlers** (`app/api/.../route.ts`)
17
+ * **Cloudflare Workers / Edge / Node.js** standalone HTTP servers
18
+ * **Integration Tests** using single-call `server.fetch(request)` dispatchers
19
+
20
+ ---
21
+
22
+ ## 2. Defining Server Configuration (`defineServerConfig`)
23
+
24
+ ```typescript
25
+ // src/server/api.ts
26
+ import { defineServerConfig, createServer } from 'local-lite/server';
27
+
28
+ interface AppServerServices {
29
+ apiKey: string;
30
+ db: any;
31
+ }
32
+
33
+ const config = defineServerConfig<AppServerServices>({
34
+ config: {
35
+ apiKey: process.env.API_SECRET_KEY!,
36
+ db: myBackendDbClient,
37
+ },
38
+ // Middleware executes sequentially in declaration order
39
+ middleware: [
40
+ async (ctx, next) => {
41
+ const authHeader = ctx.request.headers.get('Authorization');
42
+ if (!authHeader) {
43
+ return Response.json({ error: 'Unauthorized' }, { status: 401 });
44
+ }
45
+ return await next();
46
+ },
47
+ ],
48
+ endpoints: {
49
+ '/api/tasks': {
50
+ GET: async (ctx) => {
51
+ const tasks = await ctx.config.db.query('SELECT * FROM tasks');
52
+ return Response.json({ tasks });
53
+ },
54
+ POST: async (ctx) => {
55
+ const body = await ctx.request.json();
56
+ const created = await ctx.config.db.insert('tasks', body);
57
+ return Response.json(created, { status: 201 });
58
+ },
59
+ },
60
+ '/api/tasks/:taskId': {
61
+ GET: async (ctx) => {
62
+ const task = await ctx.config.db.getById('tasks', ctx.params.taskId);
63
+ if (!task) {
64
+ return Response.json({ error: 'Task not found' }, { status: 404 });
65
+ }
66
+ return Response.json(task);
67
+ },
68
+ DELETE: async (ctx) => {
69
+ await ctx.config.db.delete('tasks', ctx.params.taskId);
70
+ return Response.json({ success: true });
71
+ },
72
+ },
73
+ },
74
+ onError(error, context) {
75
+ // Report internal server errors safely to telemetry without leaking stack trace to clients
76
+ console.error(`[Server Error] ${context.path}:`, error);
77
+ },
78
+ });
79
+
80
+ export const apiServer = createServer(config);
81
+ ```
82
+
83
+ ---
84
+
85
+ ## 3. Mounting in Framework Route Handlers
86
+
87
+ ### In Expo Router (`app/api/tasks+api.ts`):
88
+ ```typescript
89
+ import { apiServer } from '@/server/api';
90
+
91
+ export const GET = apiServer.handler('/api/tasks', 'GET');
92
+ export const POST = apiServer.handler('/api/tasks', 'POST');
93
+ ```
94
+
95
+ ### In Dynamic Expo Router Routes (`app/api/tasks/[taskId]+api.ts`):
96
+ ```typescript
97
+ import { apiServer } from '@/server/api';
98
+
99
+ export const GET = apiServer.handler('/api/tasks/:taskId', 'GET');
100
+ export const DELETE = apiServer.handler('/api/tasks/:taskId', 'DELETE');
101
+ ```
102
+
103
+ ---
104
+
105
+ ## 4. Single `fetch()` Dispatcher
106
+
107
+ For platforms mounting a single catch-all handler (Cloudflare Workers, Hono, Node.js HTTP server):
108
+
109
+ ```typescript
110
+ import { apiServer } from './api';
111
+
112
+ export default {
113
+ async fetch(request: Request): Promise<Response> {
114
+ return await apiServer.fetch(request);
115
+ },
116
+ };
117
+ ```
118
+
119
+ ---
120
+
121
+ ## 5. Built-in Behaviors
122
+
123
+ * **Path Matching & Parameters**: Segments prefixed with `:` (e.g. `:taskId`) are automatically extracted and URL-decoded into `ctx.params`.
124
+ * **Method Not Allowed (405)**: If a route exists for `GET` but receives a `DELETE`, it automatically returns status `405` with an RFC-compliant `Allow: GET` header.
125
+ * **Not Found (404)**: Unmatched paths return a standardized `{ error: 'Not Found' }` with status `404`.
126
+ * **Safe Error Handling (500)**: Unhandled errors in middleware or endpoints trigger `onError` server-side and return `{ error: 'Internal Server Error' }` without exposing internal implementation details.
127
+
package/docs/.nojekyll DELETED
@@ -1 +0,0 @@
1
- # Disable Jekyll processing on GitHub Pages
package/docs/README.md DELETED
@@ -1,108 +0,0 @@
1
- # โšก local-lite Documentation
2
-
3
- Welcome to the official documentation for **`local-lite`**, a lightweight, vendor-agnostic **local-first synchronization engine** for React Native, Expo, Web, and Node.js applications.
4
-
5
- ---
6
-
7
- ## ๐Ÿ“š Documentation Index
8
-
9
- 1. **[Getting Started](./getting-started.md)**
10
- - Installation & peer dependencies
11
- - 5-minute Quickstart with SQLite & Cloud
12
- 2. **[Architecture & Concepts](./architecture.md)**
13
- - The Transactional Outbox Pattern
14
- - 0ms local reads & writes
15
- - SyncWorker pipeline & infinite loop safety
16
- 3. **[Configuration Reference](./configuration.md)**
17
- - `defineSyncConfig()` and `LocalLiteConfig` options
18
- - User data isolation (`syncScope`), outbox coalescing, JSON auto-hydration, and advanced retry policies
19
- 4. **[Client API & Query Builder](./client-api.md)**
20
- - Atomic dual-write CRUD (`insert`, `update`, `delete`, `mutate`, `trackMutation`)
21
- - Batches (`batch`) and custom transactions (`transaction`)
22
- - Fluent `QueryBuilder` (`from`, `select`, `join`, `where`, `groupBy`, `orderBy`)
23
- - Native SQL aggregations (`count`, `sum`, `avg`, `aggregate`)
24
- - Telemetry & outbox management (`getMetrics`, `retryFailedMutations`, `clearFailedMutations`)
25
- 5. **[Fast Key-Value & Encrypted Preferences](./kv.md)**
26
- - Typed storage for strings, numbers, booleans, and JSON objects (`client.kv`)
27
- - TTL expiration with lazy cleanup and batch pruning
28
- - Zero-Knowledge client-side encrypted secrets (AES-256-GCM + PBKDF2)
29
- - Reactive `useKV()` React hook
30
- 6. **[Instant Full-Text Search](./search.md)**
31
- - Native SQLite FTS5 engine integration (`client.search`)
32
- - Prefix matching, BM25 ranking, and highlighted `<mark>` snippets
33
- - Reactive `useSearch()` React hook with automatic debouncing
34
- 7. **[Offline Media & Blob Storage](./storage.md)**
35
- - Decoupled binary storage from SQLite table queries (`client.storage`)
36
- - Local filesystem and in-memory file drivers with SHA-256 integrity verification
37
- - Background cloud sync queue for S3, Supabase, Cloudinary, and Firebase Storage
38
- 8. **[Offline Job Scheduler & Background Cron](./scheduler.md)**
39
- - Persistent offline job scheduling surviving app restarts (`client.scheduler`)
40
- - Human expressions (`'daily'`, `'hourly'`, `'every 15 minutes'`) and 5-part cron
41
- - Run history tracking, duration telemetry, and automatic error logging
42
- 9. **[Local SQLite Adapters](./adapters-local.md)**
43
- - Expo SQLite (`expo-sqlite`)
44
- - Bare React Native (`@op-engineering/op-sqlite`)
45
- - Node.js / Electron (`better-sqlite3`)
46
- - Built-in Node 22+ (`node:sqlite`)
47
- - Edge / Turso (`@libsql/client`)
48
- - Web / Browser (`sql.js`)
49
- 10. **[Remote Backend Adapters](./adapters-remote.md)**
50
- - Supabase (Postgres + Realtime)
51
- - Convex (Reactive documents + RPCs)
52
- - Firebase / Firestore
53
- - Memory Demo (Mock testing without cloud)
54
- - Building custom backend adapters
55
- 11. **[React & Expo Hooks](./react-hooks.md)**
56
- - `useLiveQuery()`: Zero-SQL single table reactive query
57
- - `useLiveQueries()`: Parallel multi-table queries with single atomic commit
58
- - `useLiveRow()`: Targeted single-record live query with row-level invalidation
59
- - `useLiveInfiniteQuery()`: Paginated infinite scrolling live query
60
- - `useKV()`: Reactive state binding for key-value preferences
61
- - `useSearch()`: Debounced instant full-text search hook
62
- - `useMutations()`: Null-safe memoized mutation helper methods
63
- - `useSyncStatus()`: Real-time sync engine & outbox queue inspector
64
- - `useDatabaseMaintenance()`: Reactive storage stats, outbox pruning, VACUUM, and WAL checkpoints
65
- - `<SyncInspector />` and `<BenchmarkModal />` (from `local-lite/devtools`): Developer UI debugging tools
66
- 12. **[Authentication (Google, Microsoft, GitHub, Apple)](./auth.md)**
67
- - Zero-backend OAuth 2.0 PKCE authentication
68
- - Automatic token refreshing & user profile fetching
69
- - Microsoft Graph & OneDrive integration
70
- - GitHub OAuth with verified email resolution
71
- - Sign in with Apple (Native iOS & OAuth)
72
- - Pluggable storage adapters (AsyncStorage, SecureStore, MMKV)
73
- 13. **[Google Sign-In & Drive Guide](./google-auth.md)**
74
- - Dedicated guide for zero-backend Google authentication
75
- - Unified Google Drive cloud backup synergy
76
- 14. **[Conflict Resolution & Field Merge](./conflict-resolution.md)**
77
- - Smart 3-Way field-level merge (`createFieldMergeResolver`)
78
- - Last-Write-Wins (LWW)
79
- - Client-Wins & Server-Wins
80
- - Custom conflict resolvers
81
- 15. **[Database Backups & Zero-Knowledge Encryption](./backups.md)**
82
- - Google Drive and Microsoft OneDrive sandboxed backups
83
- - Zero-Knowledge client-side encryption (AES-256-GCM + PBKDF2)
84
- - React backup hooks (`useGoogleDriveBackup`, `useOneDriveBackup`)
85
- - Universal binary database snapshots (`exportDatabase`, `importDatabase`)
86
- 16. **[Maintenance & Data Portability](./maintenance-portability.md)**
87
- - Storage breakdown, outbox pruning, VACUUM, and WAL checkpoints
88
- - PRAGMA analyze and structural integrity checks
89
- - Universal JSON & RFC-4180 CSV export and import
90
- 17. **[Action Outbox & Email Queue](./actions-email.md)**
91
- - 0ms offline transactional email enqueuing
92
- - Generic action dispatchers (push notifications, webhooks, analytics)
93
- - Idempotency deduplication, TTL expiration, and crash recovery
94
- 18. **[API Keys & Signed Tokens](./api-keys.md)**
95
- - Checksummed API key generation & verification (Stripe/GitHub pattern)
96
- - HMAC-SHA256 signed tokens with expiration and renewal
97
- - Local SQLite API key manager (`client.keys`)
98
-
99
- ---
100
-
101
- ## ๐Ÿ’ก Core Philosophy
102
-
103
- * **Local-First By Default:** The app writes to and reads from local SQLite first. Operations never stall on slow cell connections or outages.
104
- * **Guaranteed Durability:** Every mutate operation executes in an atomic transaction that updates the user table and inserts a mutation into `sync_outbox` simultaneously. If the device restarts or loses power, pending changes are never lost.
105
- * **Zero Lock-In:** Switch seamlessly between Supabase, Convex, Firestore, or your own REST/GraphQL server without rewriting your UI layer.
106
- 5. **[Server API Routing](./server.md)**
107
- - Create server route handlers from one typed config
108
- - Add middleware and use provider-specific server services
package/docs/_sidebar.md DELETED
@@ -1,22 +0,0 @@
1
- * [๐Ÿ  Home](README.md)
2
- * [๐Ÿš€ Getting Started](getting-started.md)
3
- * [๐Ÿ›๏ธ Architecture & Concepts](architecture.md)
4
- * [โš™๏ธ Configuration](configuration.md)
5
- * [โš ๏ธ Breaking Changes](breaking-changes.md)
6
- * [๐Ÿ’ป Client API & Query Builder](client-api.md)
7
- * [โšก Fast Key-Value & Preferences](kv.md)
8
- * [๐Ÿ” Full-Text Search (FTS5)](search.md)
9
- * [๐Ÿ“ Offline Media & Blob Storage](storage.md)
10
- * [โฐ Offline Job Scheduler & Cron](scheduler.md)
11
- * [๐Ÿ“จ Action Outbox & Email Queue](actions-email.md)
12
- * [๐Ÿ’พ Local SQLite Adapters](adapters-local.md)
13
- * [โ˜๏ธ Remote Cloud Adapters](adapters-remote.md)
14
- * [โš›๏ธ React & Expo Hooks](react-hooks.md)
15
- * [๐Ÿ”‘ Authentication (Google, Microsoft, GitHub, Apple)](auth.md)
16
- * [๐Ÿ›ก๏ธ Offline Session Management](session.md)
17
- * [๐Ÿ” API Keys & Signed Tokens](api-keys.md)
18
- * [๐ŸŒ Google Sign-In & Drive Guide](google-auth.md)
19
- * [๐Ÿ”€ Conflict Resolution & Field Merge](conflict-resolution.md)
20
- * [๐Ÿ“ฆ Cloud Backups & Zero-Knowledge Encryption](backups.md)
21
- * [๐Ÿงน Maintenance & Universal Data Portability](maintenance-portability.md)
22
- * [Server API Routing](server.md)