Skip to content

Install

Install the core package:

Terminal window
bun add @barq/barq

For React or React Native hooks:

Terminal window
bun add @barq/react

Build Barq Native with CMake:

Terminal window
cd native
cmake -S . -B build -DBARQ_NATIVE_NO_TESTS=ON
cmake --build build --target barq_native

To point Native at a local Barq Core checkout:

Terminal window
cmake -S . -B build -DBARQ_CORE_SOURCE_DIR=/path/to/barq/core

Build the server from the core repo:

Terminal window
cmake -S core -B core/cmake-build-debug -DBARQ_BUILD_SERVER=ON
cmake --build core/cmake-build-debug --target BarqSyncServer