> For the complete documentation index, see [llms.txt](https://docs.baas.sh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.baas.sh/baas-sdk/integrations.md).

# Integration guides

The SDK is framework-agnostic. Pick the framework guide below, or check the compatibility list before integrating.

## Framework guides

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Use with React</strong></td><td>A provider, a hook, and a sign-in component to bring everything together.</td><td><a href="/pages/wXwYiBEdDCPV78FWkq9R">/pages/wXwYiBEdDCPV78FWkq9R</a></td></tr></tbody></table>

## Supported bundlers and frameworks

| Environment                                                 | Status                                         |
| ----------------------------------------------------------- | ---------------------------------------------- |
| Vite, Next.js (app & pages router), Remix, SvelteKit, Astro | ✅                                              |
| Webpack 5, esbuild, Rollup                                  | ✅                                              |
| React Native                                                | ❌ Uses browser APIs (`localStorage`, WebAuthn) |

{% hint style="warning" %}
**Server-side rendering.** The SDK reads `localStorage` (and uses WebAuthn) in the browser, so instantiating it during a server render throws. Guard with `typeof window !== 'undefined'`, or keep it client-side only. In Next.js, `'use client'` is **not** enough, because Client Components are still pre-rendered on the server. Load it with `next/dynamic` and `{ ssr: false }`, or create it in a `useEffect`. See [Use with React](/baas-sdk/integrations/react.md).
{% endhint %}

## TypeScript setup

The SDK is written in TypeScript and ships with full type definitions, so no extra `@types` package is needed. See [Exported types](/baas-sdk/resources/exported-types.md) for what you can import.

If your editor flags module resolution issues, set `moduleResolution` to `"bundler"` (or `"node16"` / `"nodenext"`) in your `tsconfig.json`. This is the same setting Vite, Next.js, and most modern toolchains already use.

```jsonc
{
  "compilerOptions": {
    "moduleResolution": "bundler"
  }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.baas.sh/baas-sdk/integrations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
