Database
A simple end-to-end encrypted database in the browser
This is an experimental feature, have fun, but remember it *could* break
The DappHero database is a super simple, in browser, end-to-end encrypted database that can be access directly from the window object in the browser.
Each database is scoped to the
ProjectId
of your project and can be used as a fast, efficient key:value
store. Users are scoped to DappHero, so a user that signs up at any DappHero site will also be a valid user on your site and vice versa. The Database however is not shared, so the data available to you will be specific to your projectId.
The data in the database is encrypted client side in the browser for each user and is backed up to Amazon AWS in an encrypted format. DappHero can not access this data and can not retrieve user credentials, so if they lose their login- it's gone.
window.dapphero.db.signUp({username: "my name", password: "xxxxx"})
window.dapphero.db.signIn({username, password})
window.dapphero.db.signOut()
window.dapphero.db.openDatabase(callbackToReceiveDatabase)
window.dapphero.db.insertItem(item)
window.dapphero.db.updateItem(item, itemId)
window.dapphero.db.deleteItem(itemId)
Last modified 3yr ago