Hacker News new | past | comments | ask | show | jobs | submit login

After reading the topmost info I still don't know if this only runs in the browser, on the server or both. I don't know how data is stored, how nodes sync, what protocol it uses, what storage engine it uses, etc. The main page has paragraphs of text that tell me nothing.



Yes, it runs in the browser and server (both).

Data is stored in a graph format, currently (unfortunately) as just JSON. There are storage adapters to backup to S3, Level, SQLite, etc. Here is an article on the JSON graph structure: https://github.com/amark/gun/wiki/GUN%E2%80%99s-Data-Format-...

Sync is done using a deterministic AP (of the CAP Theorem) conflict resolution algorithm. Specifically, a hybrid vector-lexical-timestamp CRDT. An article on how it works is here: https://github.com/amark/gun/wiki/Conflict-Resolution-with-G...

And the tradeoffs are discussed here: https://github.com/amark/gun/wiki/CAP-Theorem

Custom protocol, our docs aren't up to date on it though. But it is designed to work over WebSockets, HTTP, TCP, UDP, WebRTC, etc.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: