Show HN: Filelayer – file permissions, revocable links and audit log for Node gi...
Show HN @show
Show HN: Filelayer – file permissions, revocable links and audit log for Node github.com · 2 points · 0 comments · HN thread
TL;DR Filelayer is an alpha, Apache-2.0 Node library that adds per-file permissions, revocable share links, and a hash-chained audit log (including denied access) on top of the developer's own Postgres and S3/R2 bucket. The Show HN post links to the GitHub repo and a README claiming a benchmark where it beat hand-rolled presigned URLs, Supabase Storage, and raw S3 on security and code size. The thread had no comments at the time of capture.
- Authorization is a single engine (packages/core/src/authz.ts) that decides every file read, writes an audit event in the same transaction, and returns a 404 for unauthorized callers so existence is not leaked.
- Share links are re-validated on every request, so fl.files.unpublish or shares.revoke stops a URL that was already sent; the trade-off is that private bytes proxy through the app and have no CDN in front.
- Zero runtime dependencies; it brings no database or storage of its own and runs on PGlite for a throwaway quickstart instance, with Postgres 17 for production.
- The README reports a self-run benchmark of one document workspace: 8 security-sensitive decision points versus 24 to 25 in the alternatives, and 233 lines versus 569 to 794. These numbers come from the authors and are not independently verified.
- The README is candid about limits: no resumable uploads, no CDN on private delivery, admins can read private files, the schema has changed 13 times in 0.x, and there is no independent security review.
- Pricing is free and open source with paid support and reviews; the page states there are no usage limits.
Discussion No comments had been posted when this digest was made, so there is no thread to summarize and no community reaction to report yet. The score is 2 points.
#showHN #nodejs #fileStorage #authorization #auditLog #postgres