functionland / fula-archived

Client-server stack for Web3! Turn your Raspberry Pi to a BAS server in minutes and enjoy the freedom of decentralized Web with a superior user experience!
https://fx.land
MIT License
4 stars 0 forks source link

Refactor base API #95

Open gitaaron opened 2 years ago

gitaaron commented 2 years ago

Sidebar in docs are inconsistent. We should do something similar in File and Data as Client

Options -

import {Fula, createClient} from '@functionland/fula-storage’;

or

await fulaClient.file.send(selectedFile);
farhoud commented 2 years ago

Need to rename Connect. The naming should change after adding cluster it does not do what is say. We can change it to, AddBox, AddServer

farhoud commented 2 years ago

@gitaaron How about make RFC around it?

farhoud commented 2 years ago

Sidebar in docs are inconsistent. We should do something similar in File and Data as Client

Options -

import {Fula, createClient} from '@functionland/fula-storage’;

or

await fulaClient.file.send(selectedFile);

I like first option better, this way we can have something like instead of connect:

fula.client.addBox('[peerIds]')