Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Origin Private File System support #2442

Open
Tracked by #3803
stormshield-guillaumed opened this issue Jun 9, 2023 · 8 comments
Open
Tracked by #3803

Add Origin Private File System support #2442

stormshield-guillaumed opened this issue Jun 9, 2023 · 8 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@stormshield-guillaumed
Copy link

There is a recent Web API providing access to a file system private to the origin of the page. This could be useful for a cross platform application targeting desktop and WASM, using either the fs backend on desktop or the new backend on WASM.

It is not a small task, but maybe some people could find this interesting.

@Xuanwo
Copy link
Member

Xuanwo commented Jun 9, 2023

Interesting! I plan to make OpenDAL work in wasm first and than add OPFS support.

@Xuanwo
Copy link
Member

Xuanwo commented Dec 22, 2023

We are ready for this now!

@stormshield-guillaumed
Copy link
Author

That's great news ! Unfortunately, AFAIK, there is no high level API for interacting with OPFS in Rust at the moment, but the building blocks are in web-sys. The addition of OPFS was discussed in rustwasm/wasm-bindgen#2868 if anyone is interested.

@Xuanwo
Copy link
Member

Xuanwo commented Dec 27, 2023

We need to wait for rustwasm/wasm-bindgen#3755

@Xuanwo
Copy link
Member

Xuanwo commented Apr 30, 2024

Hello, everyone. This issue has been submitted as this year's OSPP project. I hope we can push this issue forward.

@Xuanwo Xuanwo changed the title New service suggestion : Origin Private File System Add Origin Private File System support Apr 30, 2024
@Xuanwo Xuanwo removed the help wanted Extra attention is needed label Apr 30, 2024
@Xuanwo
Copy link
Member

Xuanwo commented Apr 30, 2024

Apply for this project: https://summer-ospp.ac.cn/org/prodetail/241110348

Goal

Add Origin Private File System (OPFS) support for opendal so that users can use opfs in wasm runtime or browser.

The usage will look like:

let op = Operator::via_map(Scheme::Opfs, map)?;
let bs = op.read("path/to/file").await?;

opfs should only be provided in wasm32 target.

Requirement

  • Know about Origin Private File System
  • Know about how to build/test rust project
  • Better to have some knowledge about WASM

Mentorship

Mentor: @PsiACE
Discussion: mailing list and discord

@LYZJU2019
Copy link

I'm interested!

@Xuanwo
Copy link
Member

Xuanwo commented Sep 9, 2024

cc @PsiACE and @LYZJU2019, any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants