Goodies

Files and tools for UJN

Everything you can take from this draft: the spec and a primer, a cheat sheet, example journeys, a draw.io shape library, schemas and a grammar for tools, and files for AI assistants. The PlantUML module that draws UJN is not public yet.

At a glance
  • 14to download or copy from this site
  • 6built, not public yet: no public download
  • 3planned, not built

UJN 0.1 draft · License to be decided (planned: Apache-2.0 for the spec, schema and examples)

Read and learn

3

The language itself, from one page to the full text.

Language spec

Available

The full text of UJN 0.1 draft, revision 23: every statement, key, default and warning.

What you do with itRead it on the spec page, where its examples are drawn beside the text, or give the markdown file to a reviewer or an AI tool.

Version
spec text revision 23
Size
129 KB, 2,944 lines

Primer

Available

The language on one page, about 2,400 words, with two worked examples. Written for revision 21; later revisions changed no rule a writer uses.

What you do with itRead it first, or give it to an AI assistant before you ask it for a journey.

Size
14 KB

Cheat sheet

Available

One printable page: the nine kinds of node, the arrows, the eleven flags, the ids and the common warnings.

What you do with itPrint it, or keep it open while you write. Put the PNG on a wiki page or a slide.

Files
PDF 294 KB · PNG 439 KB

Start a journey

3

Something to copy, or to draw by hand.

The 20 example journeys

Available

Complete journeys from the Examples page, in 5 areas from accounts and identity to AI and automation. Each one draws with no warnings.

What you do with itStart from the one closest to your flow. Each one has its own page on Examples, drawn, with notes on what UJN states in it.

Files
20 .puml files and a README, zip 21 KB

Spec example sources

Available

The spec's 47 code examples and 4 showcases of the render switches, one .puml file each, named after their section.

What you do with itFind the smallest file that shows one rule, or test a tool that reads UJN. For whole journeys, take the 20 above.

Files
51 sources and a README, zip 21 KB
Checked
49 of 51 draw with no warnings. One warning each in the other 2: 1-at-a-glance.puml still has unique_id: {{auto}}, as the spec shows on purpose; 15_1-statement.puml is a handoff statement shown on its own, which needs a way back in a journey.

draw.io shape library

Available

The 75 UJN shapes for draw.io: every view type, action, handoff, data store, actor, system, start and end, the journey reference, the four arrows with their pills, id tabs and the eleven flag tabs (legacy and needs-updates show the letters L and U until their glyphs are designed). Sizes, colors, dash patterns and icons were copied from the module's drawing code as of November 27, 2026.

What you do with itSketch a journey by hand, or add UJN shapes to a diagram you keep in draw.io. A drawing made this way is a picture: no checks and no model.

Shapes
75
Files
library 104 KB · all shapes 109 KB
Format
draw.io custom library (<mxlibrary>)

How to use it

  1. Download ujn-drawio-library.xml.
  2. In draw.io (diagrams.net), choose File > Open Library from > Device and pick the file. The shapes appear in a new panel on the left.
  3. Drag a shape onto the page. Double-click a text to change it. Arrows are in the library too: drag one in and connect its ends to two shapes.
  4. To see every shape at once, open ujn-shapes.drawio, or paste its text into Extras > Edit Diagram.

Checked in the diagrams.net viewer; not yet tested in the draw.io editor.

Shapes of the UJN draw.io library: views, actions, handoffs, data stores, participants, a journey reference, starts and ends, the four arrows and the flag tabs
Some of the shapes, drawn by diagrams.net's own viewer. Open the picture to see all 75.

Build tools on UJN

3

Files for programs that read, check or highlight UJN.

Model JSON Schema

Available

The schema (JSON Schema 2020-12, file revision 5) of the model the module writes beside a drawing with --ujn-model: the journey, every node and arrow with its meaning worked out, and the warnings.

What you do with itGenerate types for a program that reads journeys. Only the module writes models, and it is not public yet: try the schema on the sample, the home page's checkout and its model.

Size
16 KB
Checked
the models of the 51 spec example sources validate against it
Status
$id is a placeholder: urn:ujn:model:parts-1-4

Grammar kit

Available

UJN's syntax as an EBNF file, with a checker in Python 3 that needs nothing installed, and the test sets.

What you do with itCheck a file without Java: python ujn_grammar.py journey.puml prints ok, or the line and column where the text stops following the grammar. It does not give the module's warnings. Or build a highlighter or a parser from the grammar.

Files
ujn.ebnf 27 KB · ujn_grammar.py 13 KB · kit with tests 100 KB

Warnings list

Available

All 0 warnings the module gives, each with its message, when it fires, why, the fix, the spec sections and a smallest example.

What you do with itLook up a warning, or map messages to fixes in a script or an AI assistant.

Size
48 KB

Use with an AI assistant

5

Assistants do not know UJN yet: give them these first. How often they write it without mistakes has not been measured.

Set up your assistant

Available

Give your AI coding assistant one sentence. It shows you its plan and waits for your yes. Then it installs the UJN skill, the primer, the 20 example journeys, the draw.io library and a test build of PlantUML with the UJN module (Java 11 or newer).

What you do with itCopy the sentence for Claude Code. Read claude_setup.txt first if you want to see what it will do. For another assistant, put its own file in the sentence: codex_setup.txt for Codex; kimi_setup.txt for Kimi Code CLI; deepseek_setup.txt for DeepSeek; agents_setup.txt for Gemini CLI, Antigravity CLI, GitHub Copilot, Cursor, Windsurf, OpenCode and other agents that read AGENTS.md.

Tell Claude Code
Download https://ujn.b2bedge.com/4llm/claude_setup.txt with curl, show me its plan, then follow it.

The PlantUML build is a test build for invited testers. Please do not pass it on.

llms.txt and llms-full.txt

Available

llms.txt lists the site's text files for AI tools, as the llmstxt.org convention describes. llms-full.txt holds the primer and the whole spec in one file.

What you do with itPoint an assistant at llms.txt, or give it llms-full.txt when it needs every rule.

Sizes
llms.txt 8 KB · llms-full.txt 144 KB

Agent Skill

Available

A small archive for agents that support Agent Skills: SKILL.md, with when to use it and the writing rules, and the primer.

What you do with itAdd it to your agent, so it loads the primer when a request or a file involves @startujn. Installing by URL works once the site is hosted; the discovery format is a draft.

Size
6 KB

Markdown copies

Available

A markdown copy of every docs page and every spec section, 41 files.

What you do with itGive an assistant only the part it needs. Each docs page links its own copy, and llms.txt lists them all.

Rules for AGENTS.md or CLAUDE.md

Available

6 lines of UJN rules for an agent instruction file: read the primer first, how a journey is written, how ids work, and that the module is not public.

What you do with itPaste them into a repository's AGENTS.md or CLAUDE.md, so an agent keeps UJN's rules loaded.

AGENTS.md
## UJN journeys- UJN (UI Journey Notation) 0.1 is a draft. Read the primer before you write a journey: <docs>/primer.md. Where the primer and the spec differ, the spec wins.- A journey is plain text from `@startujn` to `@endujn`. Write it as the spec's examples do, one statement per line.- Nodes: `keyword handle [ID] { key: value }`. Arrows: `from --> to : [Trigger] guard { payload: [a, b] }`.- Give a node that other files link to `unique_id: {{auto}}`, and let `-populate_ids` fill it (local build only).- Never invent a unique id, and never link to a display id.- The module that draws and checks UJN is not public yet. If the UJN setup installed its test build on this computer, draw and check with it; never pass it on or tell anyone else to install it.

Built, not public yet

6

Working on the author's computer. No public download: invited testers get a test build through Set up your assistant.

  • The PlantUML module (@startujn)

    A diagram type in a local build of PlantUML: it checks a journey, lays it out and draws it as SVG or PNG, with a legend when you ask for one. It also writes the model JSON and fills in permanent ids. Every drawing on this site comes from it.

    How it will be released is not decided. It runs on Java; tested with Java 25.

    Not public yet
  • Live drawing in Try it

    Try it draws your edits as you type when a small render server runs beside it. Without one, it shows its samples as they were drawn when this site was built.

    The server runs only where the project is.

    Not public yet
  • Preview in PyCharm

    PyCharm draws a journey beside its text as you type, through a patched PlantUML Integration plugin and the local module.

    Works on the author's computer. Invited testers get the plugin patch and a test build through Set up your assistant.

    Not public yet
  • Python library

    Python packages that need nothing but Python: they draw UJN's shapes, read, check and convert journeys, and show a journey in a read-only desktop window, all without Java.

    Being changed now; no package and no license yet.

    Not public yet
  • Shape files

    Every UJN symbol, color, font and character width as JSON files. The local module now draws from them, so another tool can draw UJN the same way.

    Not public yet
  • Journey JSON

    A whole journey as one JSON file, with where each box and arrow sits when you want it. The Python library and the local module both read and write it.

    Not public yet

Planned

3

Not built yet.

  • A public build of the module

    A release of the module, so anyone can draw and check journeys. How is not decided.

    Planned
  • A Mermaid extension

    UJN as an extension for Mermaid, beside the PlantUML module.

    Planned
  • Python model reader

    A small package that reads the model JSON into typed objects.

    Planned