Memspace users demo

A small Express API whose only storage is memspace-fs, an in-memory filesystem with the Node fs API. Every user you add becomes a file at /users/<id>.json in memory. Nothing touches the disk. Each user expires after an hour (a memspace TTL), storage is capped at 5 MiB, and everything resets when the server restarts.

–users stored
–bytes used of 5 MiB
1 htime-to-live per user

Add a user

Users (GET /users)

  • Loading…

The in-memory filesystem right now (GET /fs)

PathTypeSizeExpires in

Try it with curl

curl -X POST ORIGIN/users -H 'content-type: application/json' \
  -d '{"name":"Ada","email":"ada@example.com"}'
curl ORIGIN/users
curl ORIGIN/fs
curl ORIGIN/stats