Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@functionland/fula
Advanced tools
The Fula library abstracts away the protocols and `libp2p` connection, and exposes APIs similar to MongoDB
for data persistence and S3 for file storage
Use Server with caution and know the risk's because we are at development stage and the identity and encryption is not available, so you become public node that can accessed from anywhere.
Install NPM package
npm install @functionland/fula --save
or using CDN
<script src="https://cdn.jsdelivr.net/npm/@functionland/fula/dist/web/index.js"></script>
Start fula and use file storage of fula-server
import {Fula, createClient} from '@functionland/fula'
// Create a fula client
const fulaClient = await createClient();
// ...
// connect to a fula server by its base58 string PeerId
await fulaClient.connect(serverId)
// send file and get cid
// selectedFile send file use StreamReader interface or AsyncItrable and get cid
// meta {name,type,lastModified,size}
const FileCid = await fulaClient.sendStreamFile(selectedFile,meta);
// recive meta data
const data = await fulaClient.receiveMeta(fileId);
// recive file using cid
const data = await fulaClient.receiveFile(FileCid);
let reader = new FileReader();
reader.readAsDataURL(data);
reader.onloadend = (e) => setContent(reader.result)
For using it With private network:
import {Fula, createClient} from '@functionland/fula'
// key_file is file_input[0] (value of file input)
const privateKey = await key_file.arrayBuffer()
// Create a fula client
const fulaClient = await createClient({},privateKey);
// ...
// connect to a fula server by its base58 string PeerId
await fulaClient.connect(serverId)
// send file and get cid
// selectedFile send file use StreamReader interface or AsyncItrable and get cid
// meta {name,type,lastModified,size}
const FileCid = await fulaClient.sendStreamFile(selectedFile,meta);
// recive meta data
const data = await fulaClient.receiveMeta(fileId);
// recive file using cid
const data = await fulaClient.receiveFile(FileCid);
let reader = new FileReader();
reader.readAsDataURL(data);
reader.onloadend = (e) => setContent(reader.result)
For more examples, please refer to the Examples
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)See LICENSE
for more information.
FAQs
Fula client for building Box Dapp
We found that @functionland/fula demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.