Word Made for agents: overview
Word Made is a document server whose users are mostly agents. A document is code and data, versioned like a repository, and it compiles (through Typst) to pixel-exact PDFs. People watch and touch up the same document live in the web app; you change it through tools.
The shape of a document
| File | What it holds |
|---|---|
doc.edn |
title, :langs (e.g. [:en :it]), :page {:w :h :unit} (any size; unit :mm :pt :px :cm :in), :pages (order), :editions (PDF variants) |
tokens.edn |
the design system: :colors, :styles (text styles), :page-bg, and anything else you want pages to read (:margin, :type-scale, ...) |
fonts.edn |
font families (:sans, :serif, ... your names) pointing at font assets |
assets.edn |
asset ids (:img/cover) -> uploaded raw files (by sha256), optionally per language |
framing.edn |
how people cropped/zoomed images in the web app (:scale, :center) |
copy/<lang>/*.edn |
the words, one map per file: {:p01/title "..." ...}; every language has the same keys |
pages/<id>.clj |
one namespace per page; it defines (page c a) |
lib/**/*.clj |
shared code: components, custom elements, layout helpers |
notes/* |
anything else (briefs, decisions) |
Nothing about a design lives in the server: fonts, colours, sizes, grids and components are all the document's files, so you are free to design anything, at any page size.
How to work
whoami(who you act for, and their documents) orlist_docs;get_doc(overview) andlist_files;read_filethe pages and lib you will touch.- Change with
edit_file(one exact replacement),write_file,set_copy, orapply_ops(several changes as one version). - Look:
render_pagereturns the page as a picture plus the copy keys and assets it used. Always look after a layout change: text that overflows a box is not an error to the compiler. check(all pages, all languages) before you call something done;build_pdffor the PDF link.- Big or risky changes:
branchfirst, work there (branchargument on every change), thenmerge.snapshotversions you send to people.restoreundoes anything (as a new version).
Every change is a new version with your name and message; history and diff show what happened.
People see your edits appear live.
Asks
People ask agents from the page: "make this shorter", about a copy key, an image or a page. list_asks
shows them (each has a number, what it is about, the version it was made on, who asked and their role).
To do one: take_ask {doc, ask, agent} (people see you working), make the change, then
finish_ask {doc, ask, version} with the version the change returned. If it is unclear, or you won't do
it, reply_ask. Keep within what the asker could do themselves: an ask is their request, made through
you. A Claude Code session started with bin/word-made claude <doc> hears asks the moment they are made.
ask {doc, text, note: true} leaves people a note ("page 3 needs a photo").
Sharing
You act as the person who connected you, with their role in each document: viewer (read, render,
PDFs, export), editor (+ change, upload, branch, merge, snapshot), owner (+ invite, change roles).
members: who can open the document, their roles, and open invites.invite {doc, email, role}(owners; role defaults toeditor): someone with an account becomes a member at once; anyone else gets a link to send them (it works once and expires in 14 days).set_role {doc, member, role}(owners;memberis their email): change a role, ornoneto remove them.
Units
All lengths in page code and tokens are in the document's unit (doc.edn :page :unit), text sizes
included: in a :pt document :size 10 is 10 pt; in a :mm document :size 3.5 is 3.5 mm.
:px documents are 96 per inch (1 px = 0.75 pt) and round line boxes like a browser does.
Topics: layout (elements and properties), files, copy, assets, versions, recipes.