# UJN: UI Journey Notation > UJN 0.1 draft: a draft text notation for UI journeys, proposed as a standard. A journey is plain > text between @startujn and @endujn: views, actions, handoffs (the user leaves the app and comes > back), data stores, actors, systems, starts, ends and references to other journeys, joined by > arrows with triggers, guards and payloads. A PlantUML module draws it, checks it with warnings, > and writes a model JSON described by a JSON Schema. Created by Chew Min Cheong. Spec revision 23, November 29, 2026. Nothing is public yet: the PlantUML module runs only in the project's local build and in a test build for invited testers (see the setup files under Optional), so most readers cannot run the commands in these files; the feedback channel (GitHub issues) is planned. License to be decided (planned: Apache-2.0 for the spec, schema and examples). How to read these files: - Start with the primer (about 2,400 words). It is a summary; where it and the spec differ, the spec wins. - The spec is the full language, revision 23. It is a draft: names, keys and rules may still change, and its section 23 lists the questions still open. - Write diagrams as the spec's examples do: one statement per line, `keyword handle [ID] { key: value }` for nodes and `from --> to : [Trigger] guard { payload: [a, b] }` for arrows. - Give nodes that other files link to a `unique_id`. Write `unique_id: {{auto}}` and let `-populate_ids` fill it; never invent one, and never link to display ids. - Every docs page has a markdown copy (listed below); load only the part you need. - Links below point to https://ujn.b2bedge.com. Use UJN today: - Works now: Write journeys by hand, or with an assistant you have given the primer.; Read and edit the samples in Try it, drawn as they were when the site was built.; Sketch with the draw.io shape library on the Goodies page: a picture, with no checks and no model. - Not yet: No public build to install: every command in these docs is labeled local build only.; Drawing your own edits in Try it needs the local render server, which is not public.; No public repository and no feedback channel. - Planned: A public build of the PlantUML module.; A Mermaid extension.; GitHub issues for feedback, once the repository is public. ## Docs - [UJN primer](https://ujn.b2bedge.com/primer.md): the language on one page, as a summary: statements, the nine node kinds and their keys, arrows and exit rules, flags, ids, the render block, the model JSON, common warnings and their fixes, two complete examples - [UJN spec, full text](https://ujn.b2bedge.com/llms-full.txt): a short note, the primer, then the complete spec as one markdown file, revision 23 - [The spec, as markdown](https://ujn.b2bedge.com/md/spec.md): the spec alone - [What UJN is](https://ujn.b2bedge.com/md/docs-about.md): the what ujn is page as markdown (web page: docs-about.html) - [How to read a drawing](https://ujn.b2bedge.com/md/docs-read.md): the how to read a drawing page as markdown (web page: docs-read.html) - [Your first journey](https://ujn.b2bedge.com/md/docs-tutorial.md): the your first journey page as markdown (web page: docs-tutorial.html) - [Recipes](https://ujn.b2bedge.com/md/docs-recipes.md): the recipes page as markdown (web page: docs-recipes.html) - [Cheat sheet](https://ujn.b2bedge.com/md/docs-cheatsheet.md): the cheat sheet page as markdown (web page: docs-cheatsheet.html) - [Glossary](https://ujn.b2bedge.com/md/docs-glossary.md): the glossary page as markdown (web page: docs-glossary.html) - [Command line](https://ujn.b2bedge.com/md/docs-cli-v2.md): the command line page as markdown (web page: docs-cli.html) - [Design rationale](https://ujn.b2bedge.com/md/docs-rationale.md): the design rationale page as markdown (web page: docs-rationale.html) - [Warnings reference](https://ujn.b2bedge.com/md/docs-warnings.md): the warnings reference page as markdown (web page: docs-warnings.html) - [Grammar](https://ujn.b2bedge.com/md/docs-grammar.md): the grammar page as markdown (web page: docs-grammar.html) - [Changes](https://ujn.b2bedge.com/md/docs-changes.md): the changes page as markdown (web page: docs-changes.html) ## The spec, section by section - [About this spec](https://ujn.b2bedge.com/md/spec-about-this-spec.md) - [1 At a glance](https://ujn.b2bedge.com/md/spec-1-at-a-glance.md) - [2 File layout](https://ujn.b2bedge.com/md/spec-2-file-layout.md) - [3 The journey line](https://ujn.b2bedge.com/md/spec-3-the-journey-line.md) - [4 The node statement](https://ujn.b2bedge.com/md/spec-4-the-node-statement.md) - [5 Values](https://ujn.b2bedge.com/md/spec-5-values.md) - [6 Display ids: increment](https://ujn.b2bedge.com/md/spec-6-display-ids-increment.md) - [7 Unique ids](https://ujn.b2bedge.com/md/spec-7-unique-ids.md) - [8 Flags](https://ujn.b2bedge.com/md/spec-8-flags.md) - [9 Attributes any node may carry](https://ujn.b2bedge.com/md/spec-9-attributes-any-node-may-carry.md) - [10 Colors](https://ujn.b2bedge.com/md/spec-10-colors.md) - [11 View](https://ujn.b2bedge.com/md/spec-11-view.md) - [12 Actor and System](https://ujn.b2bedge.com/md/spec-12-actor-and-system.md) - [13 Arrows](https://ujn.b2bedge.com/md/spec-13-arrows.md) - [14 Action](https://ujn.b2bedge.com/md/spec-14-action.md) - [15 Handoff](https://ujn.b2bedge.com/md/spec-15-handoff.md) - [16 Data](https://ujn.b2bedge.com/md/spec-16-data.md) - [17 Start and End](https://ujn.b2bedge.com/md/spec-17-start-and-end.md) - [18 Journey reference](https://ujn.b2bedge.com/md/spec-18-journey-reference.md) - [19 The drawing](https://ujn.b2bedge.com/md/spec-19-the-drawing.md) - [20 The model](https://ujn.b2bedge.com/md/spec-20-the-model.md) - [21 Errors and warnings](https://ujn.b2bedge.com/md/spec-21-errors-and-warnings.md) - [22 Grammar summary](https://ujn.b2bedge.com/md/spec-22-grammar-summary.md) - [23 Still open](https://ujn.b2bedge.com/md/spec-23-still-open.md) - [Appendix A. How the drawing is laid out](https://ujn.b2bedge.com/md/spec-appendix-a-how-the-drawing-is-laid-out.md) ## Schema - [Model JSON Schema](https://ujn.b2bedge.com/downloads/ujn-model-v5.schema.json): JSON Schema (draft 2020-12) of the model the module writes with --ujn-model; version 5. Its $id (urn:ujn:model:parts-1-4) and its description are being cleaned up; the language value "ujn-parts-1-4" is as spec section 20.2 defines it - [Model reference](https://ujn.b2bedge.com/docs-model.html): the schema as tables, one per object ## Examples - [Spec example: at a glance](https://ujn.b2bedge.com/downloads/spec-1-at-a-glance.puml): the spec's first example (section 1): ids, colors, flags, a pending unique id. The !include line is a comment here. It draws one warning on purpose: the unique id is still {{auto}} - [Spec example: every kind of arrow](https://ujn.b2bedge.com/downloads/spec-13_11-every-arrow.puml): a sign-in that uses navigation, failure, return, flagged and journey-call arrows (section 13.11) - [Primer example: sign up with an email link](https://ujn.b2bedge.com/downloads/primer-sign-up.puml): a start, a system call and its reply, a message, an email handoff with a failed resume, a future flag, a unique id with trace links - [Primer example: a return approved by an agent](https://ujn.b2bedge.com/downloads/primer-return-an-item.puml): flow down, an actor who starts the journey, a modal, a data store write, an agent inline, a journey reference called with returns ## Optional - [Agent Skill index](https://ujn.b2bedge.com/.well-known/agent-skills/index.json): a primer-only Agent Skill, ujn-journeys (the discovery format is a draft) - [Set up UJN in your AI coding assistant](https://ujn.b2bedge.com/4llm/README.txt): setup files for Claude Code, Codex, Kimi Code CLI, DeepSeek and agents that read AGENTS.md; this README says which file is for which assistant. The assistant shows its plan and waits for a yes, then installs the UJN skill, the primer, the example journeys, the draw.io library and a test build of PlantUML with the UJN module (Java 11 or newer) for invited testers: do not pass it on - [Spec source](https://ujn.b2bedge.com/downloads/ujn-language-v23.md): the spec file as written - [Docs home](https://ujn.b2bedge.com/docs.html): the docs, with the files for AI assistants first - [Home](https://ujn.b2bedge.com/index.html): what UJN is, with a worked checkout journey - [Goodies](https://ujn.b2bedge.com/artifacts.html): every file to download, with what it is for: the spec, the primer, the cheat sheet, the example journeys, the draw.io shape library, the schema, the grammar kit and the files for AI assistants - [Try it](https://ujn.b2bedge.com/try.html): sample journeys to edit; live drawing needs the local render server, which is not public yet