Build on LogiShell
Root is the one LogiShell people open. A service plugs into it with one line, and people open it inside their shell next to LOG.
One LogiShell, everything else plugs in
Root opens in any browser and installs as an app on a phone or a computer. It holds the frame: the main page, the builder where LOG makes a shell, and the shell itself. Accounts, kept shells and LOG are core services of the platform. Tools live in their own repositories and open inside a shell.
Three steps
- Add one line to services.json
Say what it is in a person's words, where its code lives and where it answers in each environment. Root never holds its code. This is the real Sketch entry:
{ "id": "sketch", "name": "Sketch", "kind": "tool", "what": "An endless page for the pen, LOG draws along", "repo": "LogiShell/shell-sketch", "at": { "dev": "https://sketch.lsh.dev", "lsh": "https://sketch.lsh.dev", "prod": "https://sketch.lsh.dev" }, "probe": "/", "icon": "sketch", "stage": "experiment" }kindistoolfor something that opens inside a shell,corefor the platform. A core service may also carrypin, the version root expects (0.9accepts 0.9.58)."stage": "experiment"keeps a service off the main path. - Let root frame it
A tool opens in an iframe. Do not send
X-Frame-Options: DENYorSAMEORIGIN, and if you sendContent-Security-Policy, itsframe-ancestorsmust allowhttps://root.lsh.dev. The frame runs with this sandbox:allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox allow-downloads allow-modals
- Check it, then it is live
npm test npm run check:live
The second command asks your service in every environment and fails if it refuses to be framed. After deploy it shows on /_root with a live answer.
What people do today: in a shell, Add (in the left rail, or the bottom bar on a phone) puts a card on it (Today, Checklist, List, Week, Notes, Timer or Cards), or they ask LOG. Tool services plug in by their line in services.json. This week Sketch, Canvas and Content studio are marked "stage": "experiment": they stay off the main path and show only on /_root.
What root answers
url.{"mode":"build","text":"..."} builds a shell and streams it; other requests ask LOG about the shell.{"email"}. A code goes to that mailbox.{"email","code"} answers {"token","email"}.PUT/_root/shells/<name>Read or keep one shell, up to 64 KB.
The /_root/id and /_root/shells calls take Authorization: Bearer <token> and accept only root's own page as origin. The token is kept by the page in the person's browser. Root passes calls to the platform and stores nothing.
The key is narrow. A sign in started by root gets scope shells: GET /api/me, GET the list of kept shells, and GET and PUT one kept shell. Nothing else on the platform answers to it. This comes with platform pull request 2186.
What a kept shell looks like
The page keeps a shell with PUT /_root/shells/<name> and the body {"shell": ..., "home": "https://root.lsh.dev"}. Reading it back answers {"shell": ..., "updatedAt": ...}. Tool kinds: today, list, checklist, week, notes, timer, cards and service.
{
"name": "Founder desk",
"sub": "For shipping a product with AI agents",
"active": "t4k2pq",
"tools": [
{ "id": "t4k2pq", "kind": "checklist", "name": "Launch week", "icon": "list",
"list": true, "check": true, "hint": "Add an item",
"items": [{ "t": "Record the demo", "done": true }], "note": "" },
{ "id": "t9x1ab", "kind": "service", "name": "Sketch", "icon": "sketch",
"service": "sketch", "url": "https://sketch.lsh.dev", "w": 560,
"items": [], "note": "" }
],
"today": null,
"msgs": [],
"oneDone": false
}A service tool keeps its service id and its https url, so it opens on every device the person signs in on, and LOG in the app knows it is there.
Toward an integration API
Root is heading to be the place other products plug into: a line in services.json, a logishell.json in the product's repository, and the endpoints above. The goal is that at Web Summit 2027 a startup can integrate with LogiShell on the spot. It is not finished yet: today this page is its first draft, and it will change.
Where root runs
Code and more docs
Root lives in LogiShell/logishell-root on GitHub. The repository is private for now: ask for access. The platform APIs are documented at docs.logishell.com.