Skip to content

[Web] Add support for OPFS#19494

Open
akaashrp wants to merge 2 commits intoapache:mainfrom
akaashrp:opfs
Open

[Web] Add support for OPFS#19494
akaashrp wants to merge 2 commits intoapache:mainfrom
akaashrp:opfs

Conversation

@akaashrp
Copy link
Copy Markdown
Contributor

@akaashrp akaashrp commented May 2, 2026

Add OPFS as an alternative caching mechanism for artifacts: https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for the Origin Private File System (OPFS) as a new artifact cache type in the TVM JS/TS runtime, implementing the necessary storage and cache classes. Feedback focuses on optimizing the storage of large artifacts by streaming response bodies directly to the file system to prevent potential memory exhaustion. Additionally, it is suggested to extend the internal OPFS stream interface from the standard WritableStream to better support these streaming operations.

Comment thread web/src/opfs_store.ts Outdated
Comment thread web/src/opfs_store.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant