1.0.4 • Published 1 year ago
pearblocks v1.0.4
Pearblocks
This app is a CLI dictionary that works as a serverless application using hyperswarm, corestore, hyperbee, b4a, bare-readline and bare-tty, and where you can look for specific information about a Holepunch's blocks or terminology such as Hyperbee, Hyperswarm, etc
Usage
Start
First of all, to start using this CLI you need to run the following command.
pear dev
After that the CLI will start working and you can execute the following commands
Usage: pearblocks [command] [options]
Commands:
init <key> Starts importing or seeding Pearblocks Dictionary with a specific Hypercore Key
beekey <key> With a Hypercore key you can ask what is your Hyperbee Key
ask <word> <key> Ask about a specific word in the dictionary with a specific Hypercore key
Help
Use pearblocks --help
for more information.
Import dictionary
> pearblock init dict
Your core key is: dict
Importing dictionary...
Dictionary imported!
In the case that with key has already imported the dictionary with that specific Hypercore key then it would output this
> pearblock init dict
Your core key is: dict
Seeding dictionary...
Dictionary seeded!
Request hyperbee key
> pearblock beekey dict
> You can connect start asking now with this Hyperbee key: 786ed2df6946c4fe4d24256d15b9428aef88a5206f2eecfaff4cb72245dc1486
Asking to the dictionary
> pearblock ask hypercore myKey
The pearblock you want to know about is: hypercore
Holepunch's Block hypercore is: Hypercore is a secure, distributed append-only log built for sharing large datasets and streams of real-time data. It comes with a secure transport protocol, making it easy to build fast and scalable peer-to-peer applications.
If there is no response the following output would be received
> pearblock ask hypercore
No dictionary entry for hypercore