Folder for hypercore storage or a function that returns a RandomAccessStorage instance
File path to a locally stored Styled Map Package (SMP).
Folder for sqlite Dbs. Folder must exist. Use ':memory:' to store everything in-memory
URL for an online-hosted StyleJSON asset.
File path to a locally stored Styled Map Package (SMP)
Fastify server instance
path for drizzle migrations folder for project database
16-bytes of random data that uniquely identify the device, used to derive a 32-byte master key, which is used to derive all the keypairs used for Mapeo
Add a project to this device. After adding a project the client should
await project.$waitForInitialSync()
to ensure that the device has
downloaded their proof of project membership and the project config.
Optional
opts: { Set opts.waitForSync = false to not wait for sync during addProject()
Optional
waitSet whether this device is an archive device. Archive devices will download all media during sync, where-as non-archive devices will not download media original variants, and only download preview and thumbnail variants.
Close all servers and stop multicast advertising and browsing. Will wait for open sockets to close unless opts.force=true in which case open sockets are force-closed after opts.timeout milliseconds
Optional
opts: { Force-close open sockets after timeout milliseconds
Optional timeout when calling stop() with force=true
path for drizzle migrations folder for client database