amark/gun ? reverse-engineered prompt
Reverse engineered prompt
I want to build a JavaScript library for creating decentralized, peer-to-peer applications. It should be like an open-source, decentralized alternative to Firebase. The main idea is to let developers build apps where the data syncs in real-time directly between users, without needing a central server.
It needs to be multiplayer by default and work offline-first, so users' data is stored locally and syncs automatically with others when they're back online. Security is a big deal, so it must have strong end-to-end encryption built right in.
The database should be able to store all sorts of data—simple key-value stuff, documents, and even more complex graph data where things are connected. The developer API should be really simple and intuitive, maybe with get() and put() methods to read and write data, and an on() listener for live updates.
Are you gonna build this?
make sure you review the code using coderabbit