Daxbot / entangld

Synchronized key-value stores with RPCs and pub/sub events.
https://www.npmjs.com/package/entangld
MIT License
0 stars 1 forks source link

Expose meta-data in the datastore #22

Open jonathanvanschenck opened 2 years ago

jonathanvanschenck commented 2 years ago

It would be really awesome if datastores exposed meta-data about themselves in some standardized way in the datastore itself. This way, you don't need a reference to the datastore object to interrogate its properties; so that remote datastores can ask metadata questions. Possible use-cases:

My proposal is to have endpoints change from being simple objects to instances of a new EntangldNode, which has standard metadata associated with it, then we either include a new operation like .interrogate or .query which can query that metadata on a node.