| title | Introduction |
|---|---|
| description | urBackend is a Backend-as-a-Service that gives you instant REST APIs on your own MongoDB database — no server code required. |
urBackend is an open-source Backend-as-a-Service (BaaS) built on the principle of Bring Your Own Database (BYOD). You connect your own MongoDB instance, define your collections, and get a production-ready REST API in seconds — without writing a single line of server code.
Your data stays in your database. urBackend provides the API layer, authentication, file storage, and security on top of it.
No backend boilerplate. Create a collection in the dashboard and your REST endpoint is live immediately. There is no server to provision and no routing to configure.
Dual-key security built in. Every project gets a publishable key (pk_live) for safe use in frontend code and a secret key (sk_live) for server-side operations. The two keys have different trust levels and are enforced at the API layer.
Auth is included. Sign-up, login, JWT issuance, profile management, password reset, email verification, and social login (GitHub and Google) are all available out of the box through the /api/userAuth/* endpoints.
Once you have a project and a collection set up, reading data requires only your publishable key:
const response = await fetch('https://api.ub.bitbros.in/api/data/products', {
headers: {
'x-api-key': 'pk_live_...'
}
});
const { data } = await response.json();
console.log(data);The pk_live key is safe to include in frontend and mobile code — it grants read access only. Write operations require either the sk_live key (server-side) or a user JWT with Row-Level Security enabled on the collection.