atomic-data-docs
atomic-data-docs copied to clipboard
Prettier path URLs
I'd like to turn these:
https://atomicdata.dev/path?path=https%3A%2F%2Fatomicdata.dev%2F+https%3A%2F%2Fatomicdata.dev%2FfavMovies
https://atomicdata.dev/path?path=https%3A%2F%2Fatomicdata.dev%2Fagents%2F0XzHfi3he5xzUGAEpwg3H5PNlIrpHMrdQRV8oFqU9Fs%3D+name
Into something like these:
https://atomicdata.dev/_https://atomicdata.dev/favMovies
https://atomicdata.dev/agents/0XzHfi3he5xzUGAEpwg3H5PNlIrpHMrdQRV8oFqU9Fs=_name
Separation character
What is the best separation character? Ideally something that rarely occurs in a URL, or else we need to parse escaped URI escaped URLs.
-
(spacebar) is really clean, but will not be recognized by most linters / parsers as a URL, e.g. in a markdown document it would not appear as a clickable link. We could of course accept %20 (the URL encoded spacebar), but that would be hard to read, which defeats the purpose -
_underscore is very human readable, and often means "spacebar". -
+is cool, but is also a base64 char