We will first integrate with IPFS and provide simple ways for creators to periodically backup all messages.
To archive messages, the creator should upload all messages to IPFS as a directory using the following format, where each
*.datafile contain a buffer of the hex-encoded message:
│ ├── 42740f20aed483b69701a55ab295a2ed.data
│ └── 38650f20aed483b69701a55ab291b7f4.data
After the directory is uploaded, the creator should get back an IPFS hash, of which they should add it to their GUN as below:
const user = Gun.user();
Supporting other file protocol
We plan to integrate with other file protocols for archives based on user demand. As long as the file protocol support directory uploads in the archive formats described above, it should be fairly trivial to integrate with such protocol.