Comments (7)
@james-pre Hey! I'm sorry to ask you again, to where I can find a new repo for the remote backend (dropbox)? I want to implement google drive backend as I really need it. If there is anything I can do for you please let me know. thx
also waiting for npm packages to be published!
from browserfs.
I made the decision not to include any backends for 3rd party services since it was already a huge amount of work splitting up the codebase, rewriting the internal API to use promises, and writing the compatibility for fs promises. Once BFS is up to Node 20 compatibility, I would work on other backends.
If you want, I would love a PR for the Dropbox backend that brings it up to the current BFS internal API.
Thanks.
from browserfs.
I made the decision not to include any backends for 3rd party
I think it would be enough to just include some generic blackened that would be easy to extend so you can just fill the required implementation for operations like reading directories and files. Though I believe these 3rd party backends might be quite popular I think it would be better to have official support for them.
Once BFS is up to Node 20 compatibility, I would work on other backends.
Have any roadmap or timetable? I'm looking forward to this happening!
If you want, I would love a PR for the Dropbox backend that brings it up to the current BFS internal API.
Sorry I don't need Dropbox backend, but here I implemented a Google Drive backend: https://github.com/zardoy/browserfs/blob/google-drive/src/backends/GoogleDrive.ts (and already tested a bit)
also btw I wanted to support old Node.js API so I added back callback-style support in API
EDIT: sorry for the delay, didn't have much time to finish the Google Drive backend, now I need to cleanup all that somehow :)
from browserfs.
I agree with you, I just haven't implemented the 3rd party backends.
As for your callback based backend, the backends must implement the internal BFS API (using promises). The compatibility/emulation part of the code then adds the full Node callback API, among other things.
I don't have any exact times for when I want to get things done, since I work on BFS in my free time (which can vary widely).
Thank you for all the interest!
from browserfs.
I think BFS/core has gotten to a really good point for me to look into implementing the 3rd party backends. First, I want to overhaul the other packages (DOM, Fetch, Worker, Zip, Iso, etc.).
Maybe I can look into implementing them in the next month or so?
from browserfs.
IMO it would be much better to support all core features first. For example I'm still eagerly waiting for latest Node.js to be supported (for some things I personally do workarounds like https://github.com/zardoy/prismarine-web-client/blob/f16dbdd61f5b524c892d3da9bfa78f5b18ed13d8/src/browserfs.ts#L33)
On the other hand I'm really interested in zipfs as this the the backend I use most.
from browserfs.
Maybe I can look into implementing them in the next month or so?
Anyway
It would so cool! Looking forward to it!
from browserfs.
Related Issues (20)
- BFS is failing to build for various reasons HOT 12
- Update build system and dependencies HOT 1
- AsyncMirror Filesystem doesn't set 'root' HOT 10
- EACCESS when using BrowserFS.Configure
- Support symlinks on all core backends
- Support for createSyncAccessHandle in FileSystemAccess.ts HOT 3
- Build issues creating the dist HOT 10
- Create a new release HOT 5
- Cannot create browserfs.js via npm install - no way to create distribution HOT 3
- Remove Appveyor CI HOT 1
- promise-based init HOT 1
- BrowserFS not working with webpack HOT 49
- Change the core to be mountable by default without a FS HOT 1
- Update backend creation, remove monkey patching. HOT 1
- Support latest Node FS API HOT 1
- Add metadata to `FileSystem` HOT 1
- Use `Uint8Array` instead of `Buffer`
- Link to new repositories? HOT 3
- Can BrowserFS be used to interact with OPFS HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browserfs.