{"repo":"GreyElaina/barffine","free":true,"listed":false,"github":"https://github.com/GreyElaina/barffine","clone":"git clone https://github.com/GreyElaina/barffine.git","description":"Experimental Rust backend tailored for self-hosted or resource-limited deployments of AFFiNE.","language":"Rust","stars":25,"topics":["affine","knowledge-base","notes","notion","notion-alternative","rust-lang","self-hosted","wiki"],"license":null,"category":"productivity","readme_excerpt":"Barffine Barffine is an AFFiNE compatible backend written in Rust, which provides a REST/GraphQL/Socket.IO/CRDT collaboration interface consistent with the official Node/TS backend with a single binary. It uses only SQLite storage, can be self-hosted in resource-constrained environments, and includes built-in migration, admin creation, document caching, and observability tools. Quick start 1. Install the latest stable Rust toolchain (Edition 2024 is enabled in Cargo.toml ). 2. Copy .env or create a new one based on the snippet below to describe your bind address and public URL. 3. Run the server: The default bind address is 127.0.0.1:8081 and the SQLite file is created at ./data/barffine.db . 4. Bootstrap an admin account so AFFiNE can log in: The command is idempotent; rerunning it rotates the password if the user already exists. 5. Verify the instance with curl http://127.0.0.1:8081/api/health and point your AFFiNE client at the same base URL (REST endpoints only exist under the /api prefix). Docker deployment If you prefer containers over a local Rust toolchain, use the published image at ghcr.io/greyelaina/barffine : 1. Pull the image (update the tag if you need a specific release): 2. Prepare a .env file (see below) and a data directory on the host for the SQLite + doc-data files, then start the container: The example mounts ./data , which now contains both barffine.db and the RocksDB column families under data/doc-kv . Adjust the port mapping when reverse proxies or dif","default_branch":null,"files":null,"tree":[],"storefront":"/r/GreyElaina","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/GreyElaina/barffine/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}