> ## Documentation Index
> Fetch the complete documentation index at: https://docs.powersync.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Choosing Your Setup

> Pick the write path setup that fits your backend: Supabase, your existing API, the reference write implementation, or a write endpoint in your own stack.

Each option below gives you an `uploadData()` function and a write endpoint. They differ in what you already have and what you need to deploy.

| Your setup | Write endpoint | `uploadData()` | Guide |
| - | - | - | - |
| You use Supabase, and related changes don't have to be saved atomically (together or not at all). | None: Supabase's Data API, checked by your RLS policies | Supabase connector | [Supabase: PostgREST Route](https://docs.powersync.com/handling-writes/write-path/supabase-postgrest.md) |
| You use Supabase, and related changes must be saved atomically (together or not at all. | Reference write endpoint, deployed as an Edge Function | Reference connector | [Supabase: Edge Function Route](https://docs.powersync.com/handling-writes/write-path/supabase-edge-function.md) |
| You already have an API that your app uses for writes. | Your existing API | One you write for your API | [Use Your Existing API](https://docs.powersync.com/handling-writes/write-path/existing-api.md) |
| You don't have a write endpoint, and a Node.js backend works for you. | Reference write endpoint (Node.js) | Reference connector | [Reference Write Implementation](https://docs.powersync.com/handling-writes/write-path/reference-write-implementation.md) |
| You don't have a write endpoint, and want it in your own backend stack. | One you build that follows the reference API contract | Reference connector | [Build Your Own Write Endpoint](https://docs.powersync.com/handling-writes/write-path/build-your-own-write-endpoint.md) |

Whichever option you choose, [Write Path Concepts](https://docs.powersync.com/handling-writes/write-path/concepts.md) covers what every write endpoint must do: authenticate writes, apply them before responding, and handle failures without blocking the upload queue.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.