r/SwiftUI • u/Tniich • 11d ago
Promotion (must include link to source code) We built a macOS launcher where any script can draw native SwiftUI views by printing text

Hi! I'm Tony, one of the creators of Openspot, a research project on using generative UI in day-to-day work.
The idea is simple: generate a tool (a "spot") for your current task using a coding agent, and keep it if you like it or remove it after use if you don't. Some spots we use daily:
- Caffeinate, which keeps your Mac running with the lid closed
- Local file and screenshot search in natural language using EmbeddingGemma 2
- Drawing on screen during calls or before screenshots
- AI agents monitoring
- AirDrop, but over the network (using iroh)
We built it because of two things:
- Over the past year, we (and almost every designer and engineer we know) have started making small tools with coding agents. But the DX for macOS apps is very frustrating even for coders, and you have to pay for a developer account to share them.
- We kind of miss the days of custom Winamp skins and Twitter clients. That's why every part of Openspot is customizable, so anyone can give it their own look and feel.
How it works: a spot is just a script in any language that prints key=value lines, and Openspot turns them into native SwiftUI views, for example:
frame=
class=gap-part
box=head
class=flex-row items-center gap-2
icon=wifi
parent=head
value=wifi
class=text-accent
text=name
parent=head
title=Home
detail=82 Mb/s
class=grow
button=forget
parent=head
title=Forget
class=rounded-full
For styling we use Tailwind class names, because coding agents already know them well. But there are no arbitrary values or raw colours, only theme tokens like bg-tile, font-title or text-warn. So whatever the agent generates follows your theme and still looks native. The same spot can live as a card, in the menu bar or in a window.
And if the built-in blocks aren't enough, a spot can ship its own SwiftUI view. Openspot compiles it at runtime and renders it as an AnyView, with no Xcode project needed.
This is a very early stage. The code is MIT-licensed, and the core will remain free forever. We're sticking to macOS 26+ for now (because of Liquid Glass).
Ask anything, or roast it. Any feedback is very appreciated!
Source code: https://github.com/celishq/openspot
1
u/Early_Animal_3401 9d ago
I’d show script failures in the UI with the exit code and stderr, since a broken script could otherwise look like an empty result. A tiny example script with a visible debug view would also make the first extension easier to build.