# Addresses

Every tool names an element by one triple: the world's id, the type word and the element's id. The [address profile](https://github.com/OnlyWorlds/schema-dist/blob/main/profiles/address.md) writes its three spellings once, so a link copied in one tool opens in another:

| Spelling | Form | Use |
|---|---|---|
| The human address | `https://www.onlyworlds.com/w/<world id>/<type>/<id>` | a link to give a person |
| Inside a world | `ow://<type>/<id>` | an element named in a text field of the same world |
| Across worlds | `ow://<world id>/<type>/<id>` | an element of another world, named in a text field |

A world by itself is `https://www.onlyworlds.com/w/<world id>` or `ow://<world id>`. An address may end in a moment, `@<step>` on its last path segment, and a lens, `?lens=<id>`. Addresses are written in lowercase and never percent-decoded; a reader refuses what the profile refuses, by the profile's own reason (`uppercase`, `segments`, `unknown_type`, `bad_id` and the rest). A writer given an empty string for the world, the type, the id or the lens refuses by that part's own reason (`bad_world`, `unknown_type`, `bad_id`, `bad_lens`): an empty string is never absent, only a missing key or `null` is. The TypeScript and Python SDKs carry the reader and the writer (`parseOwLink`, `elementAddress`, and their snake-case twins).

The lens key is `lens` exactly. `LENS` or `Lens` is refused as `bad_lens`, and a key with a space in it is another key, ignored like any other. The id the key holds is read in either case, as every id in an address is.

## An address in prose

A reader that finds an address inside other text reads it from its prefix. An address begins there only when the text starts there, or when the character before the prefix is neither a letter of any script, a combining mark nor an underscore: `elbow://…` and `_ow://…` hold no address, while `x-ow://…`, `3ow://…`, `(ow://…` and `"ow://…` do. The character before is one code point, read whole, never one UTF-16 unit or one UTF-8 byte. Addresses found in a text do not overlap: read left to right, the first start that holds an address takes its whole run, and a prefix inside that run is no start, so in `…/w/abc3ow://object/<id>` the site address wins and the inner `ow://` is prose. The address continues only with `@` and a moment, then `?lens=` and a lens. Any other query key or a fragment is not part of it, and what follows is prose, a full stop included: in `See ow://object/<id>.` the full stop is the sentence's.

After `/w/` the run is read whole: it is the world's id only when it is exactly an id's form (36 characters, hex in either case, four hyphens), otherwise a legal slug, otherwise no address. It is never cut back to an id or a shorter slug, so 32 hex digits without hyphens are a slug. A run followed by a letter, a combining mark or an underscore is cut inside a word and is no address. After the world, `/<type>/<id>` continues it only when the type word is one of the 22 in lowercase: `…/w/hyperion/Event/<id>` and a misspelt type word are the world's own address, and so is `ow://<world id>/Character/<id>`. An id found in a text a profile searches for ids, as a Charter's is, is still its 36 characters whatever follows them.

The TypeScript SDK finds an address with `readOwLinkAt(text, index)`, the Python package with `read_ow_link_at(text, index)`: each reads the address that starts at `index` and answers the reading and the index just past it, counted as the language counts a string. To find every address in a text, in order, the TypeScript SDK has `findOwLinks(text)` (since 4.165.0) and the Python package `find_ow_links(text)` (since 0.125.0).

onlyworlds.com draws one this way since 2026-11-24. An `ow://` address in an element's text is a plain link on the element's page: the owner's page, the page a member sees and the world's public page. The label is the address exactly as written and the link is its human address. Nothing is looked up, so the link goes where the address says, whoever may read the element. A site address in a text stays plain text.

A plain name in a text is not an address, and this profile says nothing about it. Finding the names of a world's elements in prose is a rule of the two packages: [`nameFinder`](/docs/development/typescript-readers#names-in-prose) in the TypeScript SDK and `name_finder` in the Python package.

## The same id

Inside a world an id is written one way, lowercase in the form above: an element's own `id`, a link, an id in an `x_` value or as the key of an object. There, two ids are the same id when they are written the same, and an order by id is an order of the ids as written. A reader reads an id in either case, and takes it in lowercase, in two places only: an address, and a text that a profile says is searched for ids, as the [charter profile](/docs/schema/profiles#charter) searches a Charter's. What an id read there is matched against is read as written, so an element whose own `id` is not lowercase is not the element a lowercase id names. Any other spelling (upper case inside a world, no hyphens, braces, `urn:uuid:` before it, a space left on it) is another value. A writer writes lowercase, as onlyworlds.com serves every id and every link.