I like the unix filesystem API a lot but it could be better:
watch / unwatch should be as easy to use as read()
it should be possible to atomically write data at multiple paths
clients should be able to resolve arbitrary symlinks
directories are great but there should also be an index or list type collection
these should be pageable in either direction and cheaply reorderable
these should provide a mechanism for determining total item count without loading all data
How
The concept and library itself aims to be abstract, but each storage engine requires a concrete driver implementation. Currently there is a driver available for Cloud Firestore (Note that to work properly, the Firestore implementation relies on two Cloud Functions). It should be possible to implement additional drivers even over simple key/value stores like lmdb or leveldb for example, although these would be considerably more complex (no built in transactions, events, security, etc).
Examples
Setup:
var Hyperbase = require('hyperbase')var HyperbaseStorageFirestore = require('hyperbase/storage/firestore')// var firebase = <get firebase handle somehow>var db = new Hyperbase({ storage: new HyperbaseStorageFirestore(firebase.firestore)})