localFS 1.1

Easy JavaScript access to local filesystem !



localFS component allows your web application to access (read/write) files in web client local filesystem.

localFS sample screenshot

localFS package includes localFS.js library and sample JavaScript single-page application


No JavaScript can access user files unless user explicitly allows it by sharing an unique secret key with the app.


First, a small localFS system component must be installed on client PC. It provides HTTP access to filesystem for local clients. Then, simply include "localFS.js" JavaScript library in your page, and use localFS metods in your page JavaSript to:

OperationlocalFS method
Enumerate files and folders.dir(path)
Check if file exists.exists(filepath)
Create folder.mkdir(path)
Delete file/folder.delete(filepath)
Read file.get(filepath)
Read textual file.getText(filepath)
Create/save file.save(filepath, content)


<script src="localFS.js"></script>
localFS.dir('/Program Files').then(files => console.log(files));

Console output:
1: {name: "Application Verifier", directory: true, size: 0, date: "2018-05-21T13:28:46"}
2: {name: "Blackmagic Design", directory: true, size: 0, date: "2018-05-30T08:09:15"}
3: {name: "Common Files", directory: true, size: 0, date: "2018-06-23T16:48:15"}
4: {name: "Dependencies", directory: true, size: 0, date: "2018-05-29T09:22:57"}
5: {name: "desktop.ini", directory: false, size: 174, date: "2018-04-11T23:36:38"}


localFS component provides a small settings dialog accessible by clicking on localFS icon in system tray.

localFS settings screenshot

Root folder setting sets top-most path localFS can access in computer filesystem.

Port is TCP/IP port number localFS will use for HTTP communication with JavaScript client.

Secret key is a user key which is used to access filesystem. If web page doesn't know this key, no access is possible.

Any questions? Contact us!