Barq Docs
Barq is a local-first object database. It stores data on the device first, then can sync that data through a Barq sync server.
This site covers the core database, the JavaScript SDK, the React Native helpers, the C++ SDK, the sync server, examples, and the read-only MCP docs interface.
Where to Start
Section titled “Where to Start”- New to Barq: read What is Barq?.
- Building with JavaScript: read First JS app.
- Building with C++: read First Native app.
- Running sync: read Run the sync server.
- Connecting MCP clients: read MCP docs server.
Main Parts
Section titled “Main Parts”| Part | What it does |
|---|---|
| Barq Core | Storage engine, object store, query system, sync client, and sync server base. |
| Barq JS | JavaScript and React Native database SDK. |
| Barq React | React and React Native hooks and providers. |
| Barq Native | C++ SDK on top of Barq Core. |
| Barq Sync Server | Server process for JWT-based sync, tenants, and flexible sync rules. |
| Docs MCP | Read-only HTTP MCP server for docs search. |