CLOUDMORROW

News /

Apps with no UI code

Most of an app is screens, drawn once for the phone, once for the web, once more for the desktop. Cloudmorrow apps have none. Here is how that works, why it matters, and what you give up.

Open any app on your phone and most of what you are looking at is user interface. Buttons, lists, forms, the little animation when you pull down to refresh. Behind that there is usually a small amount of real logic and an even smaller description of the data. The screens are the bulk of the work, and they get built again for every kind of device. The phone gets one version. The website gets another. If there is a desktop app, that is a third. Nobody ever gets around to the command line.

That is a lot of effort spent drawing the same list three times. It is also why apps are expensive, why small needs never get an app of their own, and why your AI assistant has to pretend to be a finger tapping a screen if it wants to help you.

Cloudmorrow does it differently. Its apps, which it calls Quills, have no screen code at all.

A screen is a sentence

Here is the entire description of the task board that ships with Cloudmorrow. This is not a simplified version. This is all of it:

[[screens]]
id = "board"
kit = "board"
label = "Tasks"
model = "task"
group = "board"
lane = "lane"
title = "title"
body = "body"
done = "done"

Read it as a sentence: a board of tasks, grouped by which board they belong to, with a column for each lane, the card showing the title, and the done lane being the finished one.

Cloudmorrow knows what a board is. On a phone it stacks the lanes. In a laptop browser they become columns you drag cards between. In the terminal they are columns you move through with keys. On the command line it becomes three commands: list, add, move. And to an AI assistant it becomes three tools with those same names, so you can say "move the dentist thing to done" and it just does.

A task board on a phone: the lanes stacked one above the other The same board in a desktop browser: three columns, cards in each, drag and drop between them
Those ten lines, drawn twice. Change one word in the description and both pictures change.

There are a dozen of these

A board is one of about a dozen shapes Cloudmorrow can draw. A list, with groups down the side and a tick box per row. A calendar. A conversation with threads. A notes editor with folders. A spreadsheet. A word processor. A grid of files. A wall of photos. A video timeline. A plain table of any records, for when you just want to look.

Each one is a few lines in an app's description. Each one is drawn on every device by code the app's author never wrote.

A calendar on a phone: a month with dots on the days that have events, and the chosen day's list underneath A grouped list in a desktop browser: groups down the left, the rows of the chosen group as a table
A calendar and a grouped list. Still no screen code anywhere. The app said "a calendar of events" and "a list of these, grouped by that".

Why it can work at all

This only works because every app in a Cloudmorrow reads and writes the same store of data, in shapes that are published and agreed on. A task is a task whichever app made it. The same for a contact, an event, a message, a file.

That means when an app says "a board of tasks", Cloudmorrow already knows what a task looks like, which field is the title, which lane it is in, who it belongs to. The app does not have to explain any of that, so it does not have to draw any of it either.

It is also why you can throw an app away without losing anything. Delete the task board and the tasks are still there, in the same shape, waiting for the next board somebody writes. Install a customer list and it already sees the contacts you had. The data is the durable part. The app is the disposable part. Everything in Cloudmorrow follows from that one sentence.

What you give up

You give up pixels. An app cannot put a button where it fancies, pick its own colours, or invent a widget Cloudmorrow does not have. When an app needs something that cannot be drawn yet, the answer is to teach Cloudmorrow the new shape, so every app gets it, rather than to let one app draw it alone. The video timeline and the spreadsheet both arrived that way, and each took weeks.

That is the bet. A new shape is expensive. A new app is cheap. And most of what a household, a club or a small business needs is lists, boards, calendars, documents and conversations over data they already have. So far the bet is holding.

An app can still run code when it needs to: a button that does something, a job that runs at night, a web hook, a service. It runs in a sandbox with exactly the access the person agreed to. But the code is the exception, and the screens are never the code.

Why this matters now

Because an app is a short description and maybe a page of Python, an assistant can write one.

The template that every new Quill starts from includes instructions written for an AI assistant: the format, the data shapes that exist, and the loop. Make a new one. Check it, which shows you what every device would draw without installing anything. Put it on your own server and watch it update as the files change. Release it. "Make me a place to track when I last watered each plant" becomes a working app on your phone by the end of the conversation.

That conversation, start to finish, in forty-five seconds. The terminal on the left is replayed from a real session; the phone on the right is the real app being tapped.

I think this is the new part, and the part I most want other people to try to break. What would you build? What can't be drawn this way? Tell me, and show me the Quill.

If you want the full technical story: the format is in the developer handbook, and every shape Cloudmorrow can draw is pictured in the kit chapter.

By Jimmi Bram. Something wrong? The posts are files; a pull request fixes it.

Also

More news