releasing a pear, readme iterate, howtos

This commit is contained in:
dmc
2024-01-25 14:36:02 +01:00
parent 8f13e8c7c1
commit 87198720b2
16 changed files with 888 additions and 85 deletions

View File

@@ -1,5 +1,6 @@
### Hyperbee: Sharing Append-Only Databases
### How to share Append-Only Databases with Hyperbee
Get setup by creating a project folder and installing dependencies:
```bash
@@ -85,7 +86,7 @@ async function loadDictionary() {
```
`bee-reader.js` creates a Corestore instance and replicates it using the Hyperswarm instance to the same topic as the above file. On every word entered in the command line, it will download the respective data to the local Hyperbee instance.
`bee-reader.js` creates a Corestore instance and replicates it using the Hyperswarm instance to the same topic as `writer.js`. On every word entered in the command line, it will download the respective data to the local Hyperbee instance.
Try looking at disk space the `reader-storage` directory is using after each query. notice that it's significantly smaller than `writer-storage`! This is because Hyperbee only downloads the Hypercore blocks it needs to satisfy each query, a feature we call **sparse downloading.**