JavaScript implementation of the IPFS Mutable File System. The code published to npm that gets loaded on requires is an ES5 transpiled version with the right shims added. This means that you can require it and use with your favorite bundler without having to adjust the asset management process. The mfs works by storing a reference to the root node's CID in LevelDB. LevelDB does not support concurrent access so there are read/write locks around bits of the code that modify the the root node's CID. A lock is kept on the main thread and any requests to read/write from workers or the main thread itself are queued pending release of the lock by the existing holder. Reads are executed together, writes are executed sequentially, and prevent any reads from starting. If you are using IPFS in a single process or with the node cluster module this should be completely transparent. If you are using Web Workers there is no way to globally listen to messages sent between workers and the main thread.

Features

  • Use in a browser with browserify, webpack or any other bundler
  • Use in a browser using a script tag
  • Use in Node.js
  • Reads are executed together, writes are executed sequentially and prevent any reads from starting
  • If you are using IPFS in a single process or with the node cluster module this should be completely transparent
  • Ensure the right message transports are set up to allow requesting/releasing the locks

Project Samples

Project Activity

See All Activity >

Categories

File Sharing

License

MIT License

Follow MFS JavaScript Implementation

MFS JavaScript Implementation Web Site

Other Useful Business Software
Your top-rated shield against malware and online scams | Avast Free Antivirus Icon
Your top-rated shield against malware and online scams | Avast Free Antivirus

Browse and email in peace, supported by clever AI

Our antivirus software scans for security and performance issues and helps you to fix them instantly. It also protects you in real time by analyzing unknown files before they reach your desktop PC or laptop — all for free.
Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of MFS JavaScript Implementation!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

JavaScript

Related Categories

JavaScript File Sharing Software

Registered

2023-07-18