Filelayer

Should you depend on this?

Here are the numbers to answer that in two minutes, including the ones that are zero.

Filelayer is a file layer for SaaS applications: files with owners, orgs and roles, share links that expire and can be revoked, lifecycle, and an audit trail that records denials.

What is tested is the authorization engine, and it is tested hard. One function answers every access question. 861 tests across 170 suites, every commit. Most run on PGlite (PostgreSQL 17 compiled to WebAssembly); the concurrency, audit retention and MCP server suites run against a real PostgreSQL 17. 26 adversarial attacks score zero breaches, and the same suite scores three against filelayer-prerebuild, the example application as it was before its delivery and authorization were rebuilt, so the suite is calibrated rather than merely passing. The storage adapter runs against live Cloudflare R2 and live AWS S3 on every commit. There are no runtime dependencies. From npm install of the published package to a stored byte: no account, no credential, no dashboard, four lines.

What is not tested is us in production. That is the table below, and it is the honest trade: a design that has been attacked on purpose and has not met real traffic.


The state of it, in numbers

Version0.37.1 — alpha
Known production deployments0
Maintainers with commit rights1
Independent security reviewnone
Load measuredFirst run 4 October 2026, benchmark/load/RESULTS.md. One machine, no network, no object store, seconds per cell
Time to first stored fileMeasured 25 November 2026 against 0.37.0, benchmark/RESULTS.md: 5.2 s, the median of 5 cold runs on the machine named there, about half of it npm install, which depends on the network. From npm install of the published package to a stored byte, with a cold npm cache: 0 accounts, 0 credentials, 0 dashboards, 4 lines. The program is asserted to appear verbatim in the quickstart that shipped in the tarball
Tests861 across 170 suites, every commit. Most run on PGlite (PostgreSQL 17 compiled to WebAssembly); the concurrency, audit retention and MCP server suites run against a real PostgreSQL 17. The suite also runs on Node 22, 24 and 26, where the suites needing credentials or two connections skip themselves
Concurrency, against a real PostgreSQL with two backends8 tests, every commit
Adversarial suite26 attacks, 0 breaches
Runtime dependencies0
LicenceApache-2.0
Storage adapter against live Cloudflare R212 tests every commit, 13 nightly
Storage adapter against live AWS S312 tests every commit, 13 nightly, eu-north-1 only

If any row in that table is disqualifying for you, it should be, and you can stop reading. We would rather you decline today for accurate reasons than adopt on a misunderstanding and discover the gap during an incident.


What is actually tested

The authorization engine is the part we stand behind. There is one function that answers every access question, and a property suite that covers cross-tenant isolation, revocation that beats a live URL, delegation attenuation, download caps under concurrency, audit tamper-evidence (within the limit named below), and the full role matrix.

Two of those tests are worth naming because they are the ones that catch the mistakes people actually make:

What runs against a real object store, and what still does not

Since 30 September 2026 the storage adapter runs against live Cloudflare R2 on every commit. Twelve tests per commit and a thirteenth nightly, in CI, against a real bucket: put/get/head/ delete, ranged reads, prefix listing, keys containing characters that break naive URL construction, a presigned GET the store actually honours, a presigned URL expiring for real, a tampered one refused, and — on the nightly run and on manual dispatch — an 11 MB multipart upload reassembled byte-exactly. Plus the whole Filelayer lifecycle end to end on top of it.

Before that it had never run against anything but a local harness, and this page said so for three weeks.

Since 3 October 2026 the same tests also run against AWS S3 itself, on every commit, against a bucket in eu-north-1 reached through a least-privilege IAM user. R2 is S3-compatible, not S3, which is the whole reason for running both: AWS has its own checksum requirements, real IAM evaluation, virtual-hosted addressing and its own error codes. Until that day those were exercised only against the local harness that recomputes every SigV4 signature — a harness that found nine real bugs, including one where a key containing # silently collided with a different object and returned the wrong file's bytes, but which is not the counterparty.

What that still does not say: one region, one bucket configuration, and no traffic. The tests write a handful of objects and an 11 MB multipart upload on the nightly run. Nobody has put load on this on either provider.

The job fails, rather than passing quietly, if the credentials are present and the suite skips itself — the one failure mode that looks exactly like success. That check had itself never executed until the day the credentials arrived, and it was broken: it read the runner's tally in a format the runner had stopped emitting. Fixed the same day, and it now reads either format and also fails on a non-zero failure count, which the first version did not.

What is known broken or unfinished

Kept current, and complete, in LIMITATIONS.md — nineteen entries, which ship in the npm tarball. The ones most likely to matter:


What would make this trustworthy

Not a roadmap of features. These are the specific things that would let a sceptical engineer say yes, in the order they matter:

  1. Production deployments that are not ours. One, then three, then ten. This is the only item on the list we cannot manufacture, and it is the one that matters most. Everything else is work; this is evidence.
  2. The storage adapter under real load, and in more than one region and bucket configuration. It runs against live R2 and live AWS S3 on every commit; what no test here has produced is traffic.
  3. An independent security review of schema.sql and authz.ts, published in full including whatever it finds. The property suite is self-asserted, and cross-tenant isolation is exactly the claim that needs an adversary who is not the author.
  4. 1.0, with a frozen schema and a written compatibility promise.
  5. A second maintainer, and a demonstrated response time on a real report.

We will report against this list publicly, including when a number stays at zero.


Who maintains this

Jorge Urios, in Madrid, who builds and runs software products, is the one maintainer with commit rights: github.com/jorgeurios.

Releases are published from CI, never from a laptop. The publish workflow uses npm trusted publishing, and every version on npm carries provenance that ties it to the commit and the workflow run that built it.

If he disappears, nothing you run stops. The core library is and will remain Apache-2.0. It runs in your process, on your Postgres and your bucket, with no service of ours to depend on, so your files and your data stay where they are and you can fork the code. A second maintainer is item 5 on the list above.


How this is built

Filelayer is built with the assistance of AI agents. All externally published claims, product documentation and technical specifications are subject to defined validation gates and tests, and routine changes are verified by those gates. A human remains accountable for public-facing information: material public claims, product documentation, technical specifications and every release are reviewed and approved by a human before they are published.


Using it anyway

If you want to try it, the honest framing is: a design that has been attacked on purpose and has not met production. Reasonable ways to engage, roughly in order of exposure:

If you do try it, open an issue about anything that confused you. Confusion is a defect here; the whole claim is that this removes decisions you would otherwise get wrong quietly, and a confusing API does the opposite.

Security reports: see SECURITY.md.