Obsidian plugin
The OnlyWorlds Builder is an Obsidian community plugin. Each element is a plain markdown note in your vault, with clickable links between elements.
| URL | github.com/OnlyWorlds/obsidian-plugin |
| Type | Obsidian community plugin |
| Platforms | Obsidian on desktop and mobile |
Features
Section titled “Features”- Vault Integration. Create and edit elements as Obsidian notes.
- Local-only worlds. Build a world entirely in your vault, no account needed.
- Optional sync. Connect a world to onlyworlds.com, or take a local-only world online later.
- Your account. Sign in once, and Download world lists your onlyworlds.com worlds. Join a world with a link, or create one on your account (see Your OnlyWorlds account).
- World units.
World.mdholds the world’s length, mass and distance units, free text such ascmorleagues. The nine numbers that use them show the unit beside the value, as in182 cm; nothing converts. Download, upload, copy and folder export carry them. Change them inWorld.mdand Upload world sends them; only the world’s owner can change them. - A Bases file per world. Download world, Join a world with a link and Create world write
<World name>.basebesideWorld.md: an all-elements table, and a table and a card view for each element type, in Obsidian’s core Bases plugin (Obsidian 1.9 or later). On by default, in the settings. Once you change it, the plugin leaves it alone; Write Bases file rebuilds it and keeps yours as<World name> (your copy).base. With Obsidian Sync or another sync tool, let an edited base reach every device before you download on another. - Relationships on a canvas. Draw relationships on a canvas draws the active element, what it links to and what links to it as an Obsidian canvas beside its note, each arrow labelled with its field. The notes that link to it go down the left side in order of their path, the same in every vault (since 3.19.0; a redraw of an older canvas can move them). A canvas you changed is saved as
(your copy)before a redraw. - World folder import and export. Read and write OnlyWorlds world folders, which open directly in Atlas. A save never undoes another writer’s change: the plugin remembers which version of each element a note was last downloaded or saved at (
.ow-seq.jsonbesideWorld.md, never in a note or an export) and sends it asIf-Match, so a note pulled before someone else’s change is refused with one notice and the edit stays in the note (Download brings the current copy); a note with no recorded version saves once without the check and says so; a downloaded world’s export carriesexported_asfrom the key’s own/me. An import keeps a folder’srecords/byte for byte in the world’s ownrecords/, and the export writes it back. Records a producer marked private stay out unless you turn on Include private records (shown only when the world holds a private producer);RECORDS.jsontravels unchanged either way. WhenRECORDS.jsoncannot be read, the export asks with Include every record, off by default, and sends no producer’s records until you turn it on. The export claims folder format 0.3.16. A downloaded world’s export keeps the server’s world id, every world setting and thesourceandproducerlines, so Atlas opens it as the same world; a nameless element’s note is named by its type and the last eight characters of its id, so none is lost to a name shared with another. - Plain type folders. A note lives at
Elements/<Type>/<Name>.md, such asElements/Location/Vallaki.md, with no count in the folder name, so creating, pasting or deleting a note renames no folder and Sync, git and links hold still. The first Download world after updating renames each old<Type> (N)folder once, through Obsidian, and names the folders it renamed. Links by note name keep working; links written with a folder path follow Obsidian’s setting for updating links. When a note’s name is already taken in the plain folder, nothing in that folder moves and the notice names the note. Update every device that shares a vault: a device still on 3.8.1 counts the folders again and undoes the rename for the others. - Notes anywhere, and your own properties (since 3.20.0). A note is an element when it has an
idthat is a UUID and a type, wherever it sits in the world’s folder. The folder decides the type: the first folder on its path named for one of the 22 types (Location,Character, …). A note outside every type folder is read by itstypeproperty (type: location), and atypeinside a type folder is a property of your own. You can move an element’s note to any folder in the world’s folder: the next Download world updates it where it is. Every other note is yours: it never syncs and never stops an upload. A note in a dot-folder or in the world’srecords/folder is never read, and two notes holding one id are both refused and named. A property the type does not have (status,mood) stays in your note under its own name and is sent inside one key,x_properties; Download world writes each one back as a property of that name, except an entry namedtypethat repeats the note’s own type, or a field the server refuses for that type, which stays insidex_properties. Delete one from your note, the last one included, and the next Save element or Upload world removes it from onlyworlds.com too, once the note has been downloaded or saved with its properties (since 3.21.4). A key that starts withx_is sent as it is, and Obsidian’s owntagsandaliasesare not sent. A new note is still written atElements/<Type>/<Name>.md. Copy world, Import folder and Update world format read element notes wherever they sit too (since 3.21.0), and Migrate converts an old-layout note in its type folder underElements/; Manage fields, the relationship graph and the link picker still read only the type folders underElements/. - The server’s Properties. Every note downloaded from onlyworlds.com carries seven Properties the server keeps, after its own fields:
created_at,updated_at,change_seq(the element’s change number),created_by,changed_by,changed_viaandchanged_client(the door and the tool of the last change; see Reads). They are read-only: a save never sends them, editing one changes nothing on onlyworlds.com, and after each save the plugin rewrites them from the server’s answer, so the note and the folder export show the server’s values. One the server leaves empty, such aschanged_byafter the owner’s own edit, is left out. - Dependencies in the graph. A world whose elements carry a dependency list (
x_spine_depends_on, the spine profile) downloads with a Depends on section at the end of each note that has one: a link per dependency, in the list’s order, and(not in this vault: <id>)for one with no note. A dependency whose name a file name cannot hold (@onlyworlds/sdk, whose note is@onlyworlds-sdk) shows its real name through an alias. The section is the plugin’s: each download writes it again from the world’s list, it is never sent to onlyworlds.com (the list travels in the note’s properties), and a line you write under it is kept in the note, put back after the links, and named when you save. A note from an earlier version whose Depends on section was a text field keeps that text under the heading at the first download; delete it when you no longer want the stale copy. Worlds without a dependency list download exactly as before. - Links in custom properties. A property of your own or another tool’s (
x_,atlas_,shadow_) whose whole value is an element’s id, or a list of them, downloads as links ([[Vallaki]], or the real name through an alias where the note’s name differs), so the graph view draws the edge, and a save sends the ids back, a list as a list. An id the vault does not know stays the bare id; a value with anything else in it is untouched. A property whose links name only ordinary notes saves as text, as before. When a resolved link sits beside one that resolves to nothing, or a name matches notes of two types, the save leaves that property out and says so, and onlyworlds.com keeps its value. - One settings place. The default world, the default type for a new element and the switch for the individual Create new
commands live in Obsidian’s own settings pane (Settings, Community plugins, OnlyWorlds Builder) and take effect at once; the commands appear and go as you flip the switch, with no reload. Before, the plugin acted on a note, OnlyWorlds/Settings.md. The first start after updating carries that note’s values into the pane once and adds a line to the note saying where they went, keeping your text beneath it; a note you made your own is left as it is. - An element’s address. On an element note, Open this note on onlyworlds.com opens the element’s page on the site in your browser; it reads the world’s id once with the world’s key, and a world that lives only in your vault has no page, so the plugin says so instead. Open a note from an address takes an address pasted in, in the site’s spelling or the
ow://spelling, and opens the note in your vault that holds that element, found by its id; an address that is not for one element, or one your vault has no note for, gets a short message saying which. A paste that beginswww.onlyworlds.com/w/works withouthttps://, and a paste that is not an address says what one looks like and where to copy one: on the element’s page, the mark beside its name (Open with), then Copy link, or the page’s Copy address button. The address in the browser’s bar on your account pages is not one. - Commands. World operations are available in the Obsidian command palette.
- Install Obsidian (desktop or mobile).
- Enable community plugins in Obsidian settings.
- Search for “OnlyWorlds Builder” in the plugin browser, or open the plugin’s listing.
- Install the OnlyWorlds Builder plugin.
- Create or import worlds with the OnlyWorlds commands.
- Send edits to onlyworlds.com with Save element (the active note) or Upload world (the whole world), or write the world as a folder with Export as OnlyWorlds folder.
A world on onlyworlds.com keeps its API key in its World.md, in plain text: the plugin reads it there to sync that world. A vault that is itself shared or synced somewhere public carries the key with it; use a read key (ow_r_) for such a vault, or keep the vault private.
Save element sends the active note’s changed fields. Auto-sync (off by default) does the same a few seconds after you stop typing, but only for edits typed in Obsidian, so run Upload world after another tool such as Atlas writes your notes. Upload world creates and updates, never deletes. Download world fetches what changed and rewrites each changed note from the server’s copy. Since 3.22.0 it first copies a note it cannot show is unchanged since the plugin last wrote or saved it into a Kept edits folder in the world’s folder, named for the note and the minute, and says which notes it copied, so text you typed and had not saved is kept. The first Download after updating copies every changed note, typed in or not, since the plugin has no record yet of what they held; delete the copies whenever you like. Since 3.22.1 an Upload world keeps the record of a note you have not typed in since it was last written or saved, so the next Download copies only the notes you typed in; since 3.24.4 it keeps the marks for a note’s own properties where it keeps the note’s, which an upload had cleared, so a Download copied more notes than it needed to. Since 3.23.0 Download first saves a note that is open in an editor, so text typed in the last seconds before Obsidian saves it is in the copy too, and Paste world copies a note it replaces into Kept edits as well. Paste world does not save an open editor first, so text typed in the last seconds under a note it replaces is in no copy; an editor open in two panes, a hover preview or a Canvas card is not saved first by either. Since 3.23.1 a Save counts as the world’s copy only where the world’s answer, written the way a Download writes it, is the note: a note holding text the world did not take (a text property edited beside its ### section, a decimal in a whole-number field, a second link in a field that holds one, a link to a note not in the world) is copied at the next Download instead of written over. Since 3.23.2 a Save that waits (for your PIN, say) while a Download rewrites the note is refused as out of date and sends nothing, so the older text never goes over the downloaded one, and a note renamed while auto-sync waits or a Save runs is saved once. A note Download cannot write is named and left as it was, and the others still land. Without signing in, Download world takes a world’s API key and your PIN; a read key (ow_r_) needs no PIN.
Your own text fields are written once (since 3.24.0). A field you added yourself with Add custom field is written as its ### section only. Before, it also sat as a property at the top, which was never read, so an edit there alone was lost. The next Download that rewrites such a note removes that property, so an Obsidian Bases or Dataview query on it stops matching; the text stays in the section. A few keys stay a property, such as one with a capital letter. An older note may still hold both copies. Once they differ, auto-sync leaves it unsent and says so; Upload world, Copy world and the folder export skip it and name it. Save element shows both texts and you pick one, after the whole note is copied to Kept edits. Tried on Windows; not on iOS, Android, macOS or Linux.
An export stays in its folder (since 3.24.1; please update). Export as OnlyWorlds folder names each element’s file from its id. Before, a note whose id had been edited to hold path characters could, on an export to a folder you picked (Choose a folder), write a .json file outside that folder, replacing a file of that name; every version since 3.0.0 had it. Ids that come from onlyworlds.com or from importing a folder are not affected. Now a note whose id holds /, \, : or a control character, or is . or .., is left out of the export and named in the report with the reason, and every file an export writes is checked to stay inside the export folder. Since 3.24.3 (please update if you export worlds to a folder) an element whose file name a disk would refuse is left out too and named in the report with its reason: a Windows device name (NUL, CON, COM1 and the like), one of < > : " | ? *, a control character, half of a character, or a name over 255 bytes; before, one such id stopped the export part-way and left a partial folder that blocked the next one. Since 3.24.4 the id is checked as a file name by itself, <id>.json, whatever the element’s name: an element named Bob with the id con was written as bob--con.json, and one whose id held a refused character before its last eight characters was written too; each is now left out and named with its id. Two elements of one type whose file names are one name once case is folded (Ab1 and ab1, é written two ways) are both left out, each reason naming the other id, where a disk that ignores case kept one file and lost the other element. A file name counts the id’s last characters whole, by the folder format’s rule, so ids from onlyworlds.com keep the names they have. A link inside a world’s records/ folder is not followed: a link to a file or folder elsewhere on your disk is left out and named in the export report and the import message, where its bytes were copied in and out again, and a records/RECORDS.json that is itself a link stops the export (the import leaves records/ out) until it is replaced by the file. The link check works on desktop only. Paste world still accepts any id; the export is what refuses one a file cannot be named after. A world with ordinary ids exports exactly as before.
A pasted note waits for one Download (since 3.24.2; please update). Paste world over notes your vault already holds writes the pasted text into them. Before, if the pasted world was older than the one on onlyworlds.com, saving such a note could send the older text over the newer text on the site, with nothing asking first; every version before 3.24.2 had it. Now Save element and auto-sync refuse a note Paste world wrote, with the usual “changed on onlyworlds.com since this note was pulled”, until you run Download world once. That Download brings the site’s copy of each such note back, keeping your pasted text in Kept edits first, and leaves the notes you typed into alone. A pasted note whose text was already what the note held needs no Download, and a paste into a world with no account is not affected. A Save in the few seconds a very large paste is still writing can read the old mark. Tried on Windows, where the refused Save on an account world was read from the code, not walked; not tried on iOS, Android, macOS or Linux.
A save that the web host in front of onlyworlds.com refuses says so in one line (since 3.19.1): that the host refused it before it reached OnlyWorlds, the HTTP status, and for a page titled Blocked the known cause and what to write in its place. The note stays unsaved and nothing reaches the server. Since 3.19.2 making an account world that the host refuses says what happened too, where it read “OnlyWorlds API error 403”. What the host refuses is on the errors page.
Only a note with an id and a type is an element, wherever it sits in the world’s folder, and a note that is not one sends nothing. A link to a [[Name]] that matches no note in the vault is not sent, so the server keeps its copy of that field.
When Save element changes an element’s name, its note is renamed to match, and links to it update as Obsidian’s Files and links setting says. Auto-sync never renames: the note keeps its old file name and says so, and the next Save element renames it, also after a restart. Turn renaming off with the Rename note when the element’s name changes setting (on by default).
A Zone’s shape (polygon or line) is a ### Shape section like every text field, sent when the note has it. Text fields round-trip byte for byte. In a note, a line that starts with ### starts a new field, so a value’s own ### line, or a code fence line such as ~~~, gains one backslash in the note (\###, \~~~) and loses it again on the way back to onlyworlds.com. Write \### yourself for a line that should read ###. Inside a closed code block nothing changes. A save is refused when a code fence left open would swallow the next heading, or when a note holds the same heading twice; the notice names the field and the heading. Since 3.21.1 Upload world, Copy world and Export as OnlyWorlds folder refuse a note with a heading twice as well, and send or copy nothing from it, and Manage fields and Update world to latest format leave such a note as it is.
Hidden and known-of elements
Section titled “Hidden and known-of elements”An element the world’s owner hides from you, or one that leaves your view, keeps its note, but its fields are emptied from it. Anything outside them (text above the first field, sections that are not fields) stays, under the line “Hidden by the world’s owner.”, and Save element and Upload world leave the note out. If the owner shows it to you again, the next Download writes the fields back and keeps what you wrote above them. To keep your own notes through a hide, write them above the first field: text under a field’s heading is part of that field.
A player or guest may know of an element without seeing all of it: your Character’s sheet names it, and nothing else of yours reaches it (Known of). Download writes its note with known_of: true in its Properties, only the fields you know, and the line “Known of: you know of this element, not all of it. A field not shown here is unknown, not empty.” Such a note is never sent: Save element and auto-sync say so, Upload world counts it apart, Delete element moves the note to the trash without deleting anything on onlyworlds.com, and Manage fields leaves it as it is.
What you write above its first field, or under a ### heading of your own, stays through later downloads, and so do Properties of your own. Its fields follow the server, and a field the server no longer shows you leaves the note. When you come to see the whole element, the next Download writes it in full and the mark goes; from then on what you added is part of its note, and Save element sends it.
Saving linked notes
Section titled “Saving linked notes”Save element on a note that links to notes not yet on onlyworlds.com lists them and asks first, then creates them together with the note. It creates at most 50 this way; past that it creates and saves nothing and points you to Upload world. Auto-sync never creates them.
New elements are sent create-only (since 3.19.3), by Save element’s batch and by Upload world: if onlyworlds.com already holds one of those ids (the element was made meanwhile on another device, or the world folder was copied), that item is refused and named, and nothing there is replaced. The refusal says why: made meanwhile, held as another type, held in another world (a copied folder needs a fresh id on the note), or in use. Save element refuses the batch and names the item; Upload world counts it as failed and goes on with the rest.
An element deleted on onlyworlds.com is never brought back without your word, even though Download keeps its note. Save element asks “create it again?”, auto-sync refuses, and Upload world asks once for all of them. A link to a deleted element is left out of what is sent and named, and the note keeps it. An element onlyworlds.com answers as deleted is known as deleted at once, without reading the change feed.
Your OnlyWorlds account
Section titled “Your OnlyWorlds account”The plugin can sign in to onlyworlds.com, so you do not need to copy a key per world.
With your browser (on desktop, a phone or a tablet): run the Sign in command and choose Sign in with your browser. onlyworlds.com opens in your browser, asks once whether OnlyWorlds Builder may sign in as you, and on Continue the plugin is signed in, with no token to copy. On a phone the browser hands you back to Obsidian by a link, which also finishes the sign-in if Obsidian was closed meanwhile. Closing the dialog, Cancel, or five minutes without an answer ends the sign-in and keeps nothing, and a return link that doesn’t carry the sign-in’s own mark is ignored. Walked on Windows and on Android; iOS, macOS and Linux are not yet walked.
With a token:
- On onlyworlds.com, make an account token: Account settings, under Account tokens. It starts with
ow_a_. No account yet: the Create account command opens the sign-up page. - Run the Sign in command and paste the token, or paste it in the plugin’s settings under OnlyWorlds account and choose Sign in. The dialog also opens from Download world (Sign in to pick from your worlds) and from Create world (Create with account signs you in first, then the dialog comes back with your world’s name kept). To use another account, sign out in the settings first.
Signed in, you can:
- Download world from a list of your worlds. The plugin makes the world its own key, named
obsidian: <your vault's name>, so your account’s keys page shows which vault holds which key. - Join a world with a link. A person invite needs an account. A player link needs none, and its world is read-only in the vault.
- Create world directly on your account. Creating a world on onlyworlds.com needs you signed in; signed out, the dialog says so, or offers a local-only world.
The token is stored in the vault’s plugin data (data.json), which Obsidian Sync and git carry with the vault: sign out before you share a vault. Signing out revokes the token on onlyworlds.com (when it cannot, it says to revoke it there by hand) and keeps your worlds and their keys in the vault.
Your PIN is asked once per plugin session, unless you saved it in the settings. Reloading the plugin or Obsidian asks again. Closing the PIN prompt with Escape, or by clicking outside it, cancels the save with “Save cancelled: PIN not provided.”
A PIN onlyworlds.com refuses is forgotten, not sent again (since 3.19.3): the next save asks you once, with one prompt however many saves are waiting, and Cancel ends that round. A PIN refused in the settings is skipped until you change it there. onlyworlds.com refuses each wrong PIN on its own and locks a key or account for up to fifteen minutes only after ten different wrong PINs (Keys and PINs). Auto-sync saves three notes at a time.
Read-only worlds
Section titled “Read-only worlds”A world whose key can only read (a read key ow_r_, a player link, or a guest invite) is read-only in the vault. Your edits stay in your notes, and nothing is sent to onlyworlds.com. Save, Delete, Upload and Rename say so before any dialog, with no PIN prompt. Upload’s and Rename’s pickers list only the worlds the vault can write to, and say when they left one out. Before you join through a guest invite, its preview says the key will be a read key.
AI agents: start from llms.txt, this site's index, which links the whole documentation as plain text.