Dat Nexus API
An API for reading and writing-to profile archives in the Dat Nexus App. A "Profile Site" is a dat-site which
- represents a user (identity),
- broadcasts information (media feed), and
- and follows other profiles (social relationships).
Nexus Profile Sites are used to identify users and create social feeds.
var NexusAPI = // create a db instancevar db = await NexusAPIvar db = await NexusAPI // mainUserArchive is a DatArchive instance // profile data// = await db // => {name:, bio:, avatar:}await db // management// = await db // close db instance, optionally delete its data await db // add archive to the dbawait db // add archives to the dbawait db // remove archive from the dbdb // list archives in the dbawait db // remove archives from the db that arent followed by mainUserArchive // social relationships// = await db