@the_library/db
v0.23.0
Published
Published under Creative Common
Readme
D-Code Licence
Published under Creative Common
- Attribution
- No Modification
- Non Commercial
DEv Preview
D-Licenced - DB
This Library purpose is to
- Provide a latency FREE in memory data store to be used in javascript environment
- Integrate with D-factory solidity smart contracts published here: https://github.com/data-pond/d-solidity
- Provide a unified solidity/typescript 3 Way binding ORM with codegen support ( deep integration with
v-model, removing the need to implementsaveand@change) - Ships with
Worker:- Arweave data storage support - which handles downloading and caching of Arweave data files into indexDB
- MuPDF wasm - which transform on the fly images from downloaded PDF files from Arweave
Flow
Under the Hood, the inMemory DB <--> IndexedDB <--> Solidity is simple:
Terms:
- DS: Download and Store into indexeDB
- IM: If member of a crypto club, and the wallet is connected
Data Flow:
- First Load: DS the initial State from a fat JSON files
- Replay all local appendOnly modification
- IM: Download and replay all remote modification
- Store All state modification into an AppendOnly log into IndexedDB
- IM: pack unsaved logs, binary encode them and store them the user's connected chain.
This library is currently tightly coupled with some of vue3 reactivity primitives, such as ref, reactive and computed
Documentation
definitions
A collection of JSON models for use for codegen
generated
Typescript code generated
generator
The code gen (WIP)
versions
Typescrip code generated
