CarpoSDK docs

Carpo SDK documentation

Build with Carpo Auth, Database, Functions, Realtime, and Storage.

The Carpo SDK connects your application to project services through focused TypeScript clients. Use the React integration for browser sessions and cached data, or the server SDK for request scoped access and trusted backend work.

Choose a client

ClientUse it forCredentials
React clientBrowser sessions, policy checked Database and Storage requests, and React Query hooksProject Auth session or user token
Server request clientServer work that must act as the incoming userForwarded session cookie, bearer token, API key, and origin
Trusted server clientDirect libSQL access and privileged Storage operationsDatabase access token and project Storage API key

Each client talks to the Carpo API for Auth, Functions, Database Data API, Realtime, and Storage. The trusted Database client is the exception: it connects to the managed database through the official libSQL driver.

Services in the SDK

Start here

  1. Install the SDK and the peer packages used by your app.
  2. Configure your project in Carpo for the environment you will call.
  3. Follow the React setup or server setup for the execution surface that fits your code.

The SDK uses production by default. Set environment: 'development' when you want requests scoped to the Development Project Auth and data configuration.

On this page