Skip to content

Lenses

A lens is a saved way of reading a world: which elements, how far from a starting set, how much of each. It is a Construct with supertype Lens, defined by the lens profile. A lens only narrows: it reads inside what the reader may already see, never more.

A world

its elements, and the links between them

A lens

what to read of the world

  • where it starts
  • how far it reaches
  • which element types it keeps
  • how much of each

Read for whoever holds it: each reader sees only what they may.

A picture

a graph, a map, a list or a walk

An address

says where a thing is. It can also name a lens and the moment to read it at, so a link opens a reading.

https://www.onlyworlds.com/w/<world id>/<type>/<id>@<step>?lens=<id>
The world holds the elements; a lens chooses which of them to read, for whoever holds it; a picture draws that reading; an address says where it all is, and can carry the lens in a link.
  • The anchors are the lens’s own links (its characters, locations, institutions and the rest), and nothing else. A lens that links other lenses through constructs is an umbrella of them; titles names the Titles it is the default for.
  • The recipe sits in one extension field, x_lens: depth (0 the anchors only, 1 also what links to or from them, the default), types, a window back from the reading’s date (window, or from and to), undated, changed_within (days back from the reading’s own clock, read on each element’s clock, the newest readable of its updated_at, server_updated_at and local_updated_at (a folder’s two stamps): what a hop reaches that changed longer ago is cut as stale; never an anchor, and never an element with no readable clock), show (full, the body as served; or a short row, name with the id, type and name, and supertype and subtype where the element holds them, or first_line, which adds the description’s first line that holds something: its lines split at every line break, the first with something left after trimming spaces, carried as written with its own spaces; a description with no such line adds nothing), budget (1 to 1000, default 50), mail and notes (a sentence per anchor). A value outside the profile’s table makes the lens unreadable, the key named.
  • A template is a lens with subtype Template and no anchors: it reads nothing until it is copied into a world and pointed at that world’s things.
  • Reading one: visibility comes first (a hidden or proposed element is not there to hop through, and a hidden element a guest only knows of is not in its view at all), a hop reaches both ways, a Relation is crossed as an edge, a hop never crosses into or out of the world’s chat room (room elements), and a date compares at the precision it states. What the budget or a rule leaves out is counted by reason, never dropped silently.
  • Reading aids: a world’s Charter, Guide and Domains are the pages a tool shows a newcomer first, each marked with x_charter_of. A lens keeps them only when types names their pair (law/charter, construct/guide, construct/domain), and a hop goes no further through one that is not; an anchor that is a reading aid is kept and followed like any anchor.

The TypeScript and Python SDKs read a lens over a world snapshot (resolveLens, resolve_lens).

On onlyworlds.com, a world’s Lenses page (/account/worlds/<world id>/lenses, in the world’s menu) lists its lenses, changes one and shows its reading; the owner can read it as another reader. Its Start from finds elements by a word, the most linked first (by the graph’s degree, for the reader the page reads as), and offers a world’s Domains as packages of starting points, or a few proposed ones in a world with no Domain; nothing is stored until you save the lens. Beside Start from, a box takes a sentence in plain words, such as everything one step from a character, every character, or the events from year 230 to the present, and fills the lens’s settings with a proposal you can change, read and save; one line under the box says what your words chose, and when nothing in the world is called what you typed, it says so and names the next step (a name from the world, or an element type). The words are matched to the world’s names and the element types, with no AI model. Since 2026-11-10 “everything” on its own reads as every element, and “everything about” a name as one step out from the element that best matches it; a plural finds its name (the moppets finds Moppet); “all” with a name proposes a step out from the elements it matches (up to six, or as many as you count); and asking for every one of something the world does not hold proposes nothing. Its Library holds the public templates and the world’s own, each copied in with its settings and no starting points; a lens can be copied to another of your worlds, or published as a template without its starting points or their notes. On your own lens the page reads it a second time in the browser with the SDK’s resolveLens and says whether the two readings agree. A lens needs a name before it saves, and one you keep can be deleted from its own page: the page asks first, says whether the lens is a template, how many seats chose it and whether you start with it, and the lens leaves every seat’s chosen list.

The routes that serve lenses are on Lenses on the API.

AI agents: start from llms.txt, this site's index, which links the whole documentation as plain text.