ZenFS vs streamich's libraries (e.g. memfs) #109
Replies: 0 comments 3 replies
-
Briefly looking through some of the memfs code, it looks like there are many parallels. I find it interesting that the way both handle Stats with bigints is similar and yet developed independently. As for the Git demos, ZenFS and BrowserFS are fully compatible with isomorphic-git (see isomorphic-git#1910) A nice bonus is that every ZenFS backend supports synchronous operations. Here are the major differences as far as I know:
API integrations:
1Create, Read, Update, Delete Please correct me if I make a mistake with memfs on the tables. In my opinion:
I hope I've been of some help, feel free to ask more questions and I will do my best to answer them. |
Beta Was this translation helpful? Give feedback.
-
Thanks for that extensive reply! I myself have developed my own file system abstraction layer, one that by design does not emulate the Node From your table ZenFS seems clearly better, but it is created by the ZenFS author, so can be biased, or unaware of memFS advantages. I'm hoping that @streamich sees this and replies as well. Maybe over time other users who have experience with both will weigh in. At the moment, this discussion is the only thing across all of GitHub that mentions both "streamich" and "ZenFS". I would much rather use ZenFS or memFS or some other existing, well-maintained project than continue to develop my own. I will likely have more questions as I do this evaluation. Again, thank you! |
Beta Was this translation helpful? Give feedback.
-
Handling all of the different function signatures in the emulation is a pain, though everything else I find to be enjoyable to work with.
I agree, and I would prefer if you choose ZenFS =). In all seriousness, I tried to be as unbiased as possible, though I did include some opinions at the end.
ZenFS is relatively new, only being 2 months old, so I'm not surprised. I hope that it can become popular though, especially considering that the |
Beta Was this translation helpful? Give feedback.
-
I've been researching libraries that provide a unified file system API (not necessarily Node
fs
compatible) that works across a variety of backends, e.g. local file system, browser-based file systems, remote file systems, etc.The one with the most usage that supports the Node
fs
API seems to be the set of libs by @streamich.I haven't had time to really explore it, or ZenFS or its predecessor BrowserFS, but I figure the author of ZenFS some of its existing users might have some insight.
At the very least, if I were writing ZenFS I'd want to know about @streamich's libraries and what they do well. I've tagged streamich as they may want to comment as well.
Beta Was this translation helpful? Give feedback.
All reactions