memfs is a JavaScript/TypeScript library that implements in-memory versions of the Node.js fs module API and the browser File System Access API. It provides adapters to convert between the Node fs API and the browser File System API, and includes utilities like printing directory trees, creating directory snapshots, and demos such as in-browser Git using an in-memory file system. This is particularly useful for testing, mocking filesystem operations, or using a file system layer inside browser environments where no native file system exists. The library is licensed under Apache-2.0 and has ~2k stars, indicating a reasonable user base.

Features

  • Full in-memory implementation of Node.js fs API usable in browser or Node
  • Adapter to convert Node fs operations to browser File System Access API and vice versa
  • Utilities like directory snapshot, tree printing and demo applications (e.g., Git in browser)
  • Works in browser environments where native filesystem doesn’t exist
  • TypeScript support and browser+Node compatibility
  • Apache-2.0 license for open use in projects

Project Samples

Project Activity

See All Activity >

Categories

System

License

Apache License V2.0

Follow memfs

memfs Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of memfs!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript System Software

Registered

2025-11-24