Skip to content
dream-path
guide

Documentation

How dream-path normalizes virtual resource paths, how to use the result as a key, and its complete Rust and Luau API.

dream-path does one thing: it gives every virtual resource path one spelling, so the components that store and look up resources agree on keys. The API is small; the rules are the part that matters, because every crate that uses it depends on them being exactly the same everywhere.

Learn it#

  • Start here: normalize a path, keep it as a key, look it up.
  • Normalization: the four rules, what they leave alone, and the literal results that follow.

Use it#

Look it up#

  • Rust API: the normalizing functions, the inspection functions and NormalizedPath.
  • Luau API: the @dream/path module and the extension a host composes.