Draft
Conversation
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Member
|
@copilot would it be possible to implement this without the added dependency on zenfs? |
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Co-authored-by: Hexagon <419737+Hexagon@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Evaluate implementation feasibility for issue 3
Add browser support via ZenFS
Nov 23, 2025
Author
It's technically possible but would require significant custom implementation. Here are the options: Without ZenFS, we'd need to:
Why ZenFS was chosen:
Alternative approach:
Would you prefer a minimal implementation without dependencies (limited features) or keep ZenFS for full functionality? I can implement either approach based on your preference. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements browser runtime support using ZenFS as suggested in issue #3. Enables filesystem operations in browsers with configurable storage backends (in-memory default, IndexedDB for persistence).
Changes
Infrastructure
@zenfs/coredependency for browser filesystem abstractionsrc/utils/browser-fs.tswith initialization and configuration APIRuntime-aware operations
stat,lstat,accessto use ZenFS in browsersreadFile,writeFilewith runtime detectionmkdir,rmdir,rm,unlink,readdir,rename,cpBrowser limitations
Operations not supported:
chmod,chown,link,open,readlink,realpath,truncate,which,FsWatcherUsage
All existing Node.js/Deno/Bun functionality preserved. Operations automatically adapt to runtime environment.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dl.deno.land/usr/bin/curl curl -s REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.