Giter Club home page Giter Club logo

Comments (7)

zardoy avatar zardoy commented on August 15, 2024

@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.

james-pre avatar james-pre commented on August 15, 2024

@zardoy,

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.

zardoy avatar zardoy commented on August 15, 2024

@james-pre

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.

james-pre avatar james-pre commented on August 15, 2024

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.

james-pre avatar james-pre commented on August 15, 2024

@zardoy,

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.

zardoy avatar zardoy commented on August 15, 2024

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.

zardoy avatar zardoy commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.