activefs
v0.1.1
Published
A programmable filesystem CLI for live application data, tools, and agents.
Maintainers
Readme
activefs
The activefs package installs the CLI for a programmable filesystem over live
application data. Use it to browse, search, and read a configured source as a
file tree.
Requires Node.js 22 or newer.
Install
npm install -g activefs
activefs --helpTry the demo
Start the explicit read-only demo:
$ activefs remote add repo --demo --port 3999
Configured remote repo /repo -> http://127.0.0.1:3999/_activefs/
$ activefs list /repo
directory /repo/bin
directory /repo/notes
file /repo/README.txt
$ activefs read /repo/README.txt
Hello from the ActiveFS demo Source API.
$ activefs grep Source /repo
# activefs grep: scan
/repo/notes/source-api.txt:1:1:Source API exposes a generic HTTP tree service.
/repo/README.txt:1:30:Hello from the ActiveFS demo Source API.Clean up when you finish:
activefs remote remove repoActiveFS stores project-local configuration and runtime state under
.activefs/. Add that directory to .gitignore.
Create a file tree from your own data
The demo uses fixed content, but a source can compute file bytes from current application state on every read:
path + current source state -> computed bytesFollow Build a source server to expose your own data. When a Source API service already exists, connect its exact discovery URL:
activefs remote add docs https://YOUR_HOST/YOUR_DISCOVERY_ROUTE
activefs list /docsThe source still controls which data and paths exist, who may access them, how fresh the results are, and whether a write succeeds.
