Skip to main content
Bludia is a plain JSON REST API, so any framework or language can use it. No SDK is required.

Pick an architecture

Browser or mobile → Bludia

The app calls Bludia directly with an end_users key and the user’s Bearer token. Permissions and row policies protect the data.Best for SPAs (React, Vue, Svelte) and mobile apps.

Your server → Bludia

Your server (Next.js, Express, Laravel, Django…) calls Bludia, often with a platform key, and renders or proxies data to the browser.Best for SSR, admin tools, and logic you keep on your own server.

Checklist for a browser app

1

Create an end_users key

Add your origins, for example http://localhost:5173 and https://app.example.com. See CORS.
2

Set up a guard and roles

So users can sign up and have permissions. See Authentication.
3

Store config in env vars

.env
4

Add a small client

Handles headers, token refresh, and errors. See JavaScript client.
5

Build screens

Login, sign-up, lists, and forms. See React.
Only end_users keys belong in browser or mobile code. A platform key bypasses all permissions.

Guides

JavaScript client

A drop-in fetch wrapper with auto refresh.

React

Auth context, protected routes, data hooks.

Server-side

Next.js route handlers, Node, Python.

Other platforms

Mobile apps don’t send an Origin header, so allowed origins don’t apply to them.