Skip to content

ZenFS

The Node.js filesystem API, anywhere. Browsers included.
import { fs } from '@zenfs/core';
fs.writeFileSync('/test.txt', 'You can do this anywhere, including browsers!');
const contents = fs.readFileSync('/test.txt', 'utf-8');

Complete

ZenFS emulates the full surface of the latest Node.js fs API, including full type compatibility. Plus support for permissions.

Modular

A module backend system is used. You can mount a zip file, IndexedDB, S3, and memory side by side in one filesystem tree.

Performant

ZenFS runs just as fast as Node.js and is designed with a focus on performance. Every backend supports synchronous operations.

Extensible

Eaily add your own custom backends with minmal effort.