Open History to see the last commit
1# PowerSync
2
3This project includes the PowerSync Web SDK and React hooks.
4
5## Environment
6
7Set these variables in `.env.local`:
8
9- `VITE_POWERSYNC_URL`
10- `VITE_POWERSYNC_TOKEN` for local development only
11
12## What The Add-on Includes
13
14- `src/lib/powersync/AppSchema.ts`
15- `src/lib/powersync/BackendConnector.ts`
16- `src/integrations/powersync/provider.tsx`
17- `src/routes/demo/powersync.tsx`
18
19## Next Steps
20
211. Replace the development token flow in `src/lib/powersync/BackendConnector.ts` with your real auth flow.
222. Update the sample schema in `src/lib/powersync/AppSchema.ts` to match your synced tables.
233. Implement the upload logic in `uploadData()` so local mutations are written back to your backend.
24
25PowerSync setup guidance:
26https://docs.powersync.com/client-sdk-references/js-web