Skip to content

Add a clean self hosting npx/bunx command #8

@Taiiwo

Description

@Taiiwo

Data on the network will not be available if peers aren't configured to share it. For something like a private messaging app, the creator might choose not to have users redistribute encrypted messages on the network to people who can't decrypt them for additional privacy. This creates an issue where messages can only be exchanged when the sender and recipient are online. The solution to this problem, and the persistence and storage of the network in general, is to offer an easy to run node script that connects to the network and persists data to disk. The command could be something like bunx taiinet seed {"type": "tweet", "$sender": ""}. This is the same format of the query used to subscribe to data on the network, and all this command does is simulate a client connection, but the implication is that it should be run on a persistent server. We could even add persistence functionality to add execution to systemd or some other service runner that allows the bunx taiinet command to control which seeds to host at which time, to manage and prune data, or to add file storage caps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions