Gun-Compatible Browser Runtime
PrimaDB includes a Gun-compatible browser runtime layered on top of its own core model and transport stack.
Source:
Full API reference:
What It Covers
getputsetononceopenloadmapthenbacknotuser()flows- SEA-style browser crypto helpers
Important Boundary
PrimaDB is not wire-compatible with Gun peers. The runtime is Gun-like on top of PrimaDB’s own protocol and merge model.
Example
import initPrimadbGun from "primadb/gun";
const Gun = await initPrimadbGun();
const gun = Gun({
peers: ["ws://127.0.0.1:9010/gun"],
});