A reduction cache of the pubic tree for better links

One aesthetic problem that arises from the multi-segment approach of the public section is that paths become cluttered with extraneous detail. Ideally we’d like to ignore the header section when giving relative paths to a file in web contexts. We achieve this by maintaining a reduction off the FS root.


This reduction only selects for userland paths, discarding headers, metadata, and so on. It encodes directly as protocol nodes to be legible to as many system as possible without needing to understand the FLOOFS schemata or application.

The leaves of the pretty section MUST match the leaves of the public section at the protocol layer. This is to say, we count the raw data index of a file, or the userland segment of the DAG as a leaf, but never a header segment or

Being a reduction, this index cache can always be dropped and rebuilt deterministically.


Bcause the root of the file system can be selected as an absolute reference (by CID), FLOOFS still maintains versioning by adding one system-controlled directory at the top of the DAG. Paths loose the ability to seek by file version, and rather page back one full generation at a time. To draw an analogy from git, this is like asking for HEAD^.


A pun in the layout of the pretty section is to view the prefix “pretty” as a function modifier on the enclosed path (i.e. /public/...)

+—— pretty
+—— meta
| |
| +—— prev
+—— public


Relative / Mutable

As an example, a photo could be referenced at something like:
# Or as an absolute/immutable reference

This would be a reduction of the public path:

As you can see, the pretty path is much more amenable to human memory and legibility, and just... looks less strange in an email. Browsers are also able to infer the MIME type based on the file extension in the pretty path.

History can be explored from this version backwards with more function-like modifiers. For instance, here are the 3 latest versions of the beach photo example above:

# Most recent
# Previous
# Two previous