Skip to content
lichdotdevPublic

About

Mockups drawn with your real Gio components, by your model over MCP

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

126 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gockup

Mockups drawn with your real components.

Ask your model for a screen. gockup draws it with the widgets your Gio app ships, on a board you watch fill up.

release ci license

Website · Guide · Changelog

gockup-readme.mp4

Why

A mockup in a drawing tool is a picture of buttons you don't have. Someone then rebuilds it with the ones you do, and the two drift apart from the first day.

In gockup there is nothing to rebuild. Every button, field and card on the board is your own Go widget, laid out by the same code as in your app. If it fits in the mockup, it fits in the window.

Install

Linux and macOS:

curl -fsSL https://raw.githubusercontent.com/lichdotdev/gockup/main/install.sh | sh

It installs the app, with its entry in the applications menu or in ~/Applications, and puts the gockup command in ~/.local/bin. On Arch with yay or paru it installs gockup-bin from the AUR instead.

Or from a package manager:

brew install --cask lichdotdev/tap/gockup   # macOS
yay -S gockup-bin                           # Arch, from the AUR

On Windows, run the installer.

Open gockup: it finds the coding agents on your computer (Claude Code, Codex, Cursor, Gemini CLI, opencode, Copilot CLI) and connects the ones you pick. Any other MCP client takes gockup mcp over stdio. Then talk to your model:

Add my design system at ~/code/my-app/ui to gockup

Mock up the checkout: the cart, the payment, and what happens when the card is declined

The model writes the adapter for your design system, creates the project, writes the screens and renders each one to check its own work. You watch it happen.

When a new version is out, gockup says so and updates itself in a click, or gives you the command if it came from a package manager.

Try it before it exists

Name what people come to do, "Book a hike", and the board lights the way there: each screen numbered, each click marked. Then try it, as if the mockup were the app.

A journey that got to its end: the five screens it went through and what was clicked on each, one click that did nothing, and one screen no click opens

At the end it tells what you would have found out after shipping: here, a filter that does nothing, and the screen for a declined card, which no click opens. Fixing both is one more sentence to your model.

You can try this one in the browser.

What you get

  • Your design system, for real. One adapter registers your widgets and every project can draw with them. Gio's Material is built in, so you can start before writing one.
  • A board, not a pile of files. Every screen side by side, arrows for the flow, pages, zoom, search, and Tidy up to lay it all out.
  • The model at work, in the open. What it changes lights up on the board, and one click takes it back.
  • Notes that stay. Pin the why to a screen. The model reads it before touching that screen again.
  • Screens that answer. Widgets are live: type in a field, flip a switch. While you try a journey, a click can show an error, open a menu or go to a form's next step, with what was typed still there.
  • An app you already have. The from_app prompt reads your UI code and rebuilds its screens as a project.
  • Plain text underneath. A project exports to one .gockup file you can review and version; screens export to PNG.
  • Yours. Everything is in one SQLite file on your machine. No account and no cloud.

A screen is this much text

The payment screen it draws, with the card declined

screen "Payment – declined" width=360 height=720 {
  StepScreen title="Payment" action="Try again" {
    Alert text="Your bank declined the card. Your spot…"
    Panel {
      Editor hint="Card number"
      Flex axis=horizontal spacing=16 {
        Editor hint="MM / YY" weight=1
        Editor hint="CVC" password=true weight=1
      }
    }
    Panel { Line label="Total" value="$57" }
  }
}

Editor is a widget of the design system. StepScreen, Alert, Panel and Line are fragments: pieces you (or the model) compose once and reuse. The whole app in the picture above is one file:

git clone https://github.com/lichdotdev/gockup && cd gockup
gockup import examples/trailhead.gockup && gockup

Requirements

  • To run it: a GPU driver (EGL on Linux, Metal on macOS, D3D11 on Windows). On Linux, also the Wayland, X11 and xkbcommon libraries a desktop already has, and glibc 2.35 or newer.
  • To add your own design system: Go. Go can't load packages at runtime, so gockup compiles itself with yours and restarts into that build.
  • Your app's UI in Gio. gockup draws Gio widgets and no other toolkit's.

gockup is young: before 1.0 the language and the adapter API may change between minor versions. The changelog says when they do.

Build from source

git clone https://github.com/lichdotdev/gockup && cd gockup
go install ./cmd/gockup

Keep the checkout: design systems are compiled against it. go install …@latest does not work, because gockup's go.mod replaces gioui.org with the lichdotdev fork.

License

MIT

About

Mockups drawn with your real Gio components, by your model over MCP

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages