Skip navigation
I've had Opus re-write Linear UI in Rust using
0:00 / 0:21

I've had Opus re-write Linear UI in Rust using

Maciek Pekala

@penzington2K followers

Visit on X
1,078 likesDownloadOriginal post

113,476 views

I've had Opus re-write Linear UI in Rust using Didn't expect much, but it ended up building a very convincing clone, and it's crazy fast. It's still not perfect though, with a thousand tiny papercuts, which makes it immediately impractical for an app of Linear complexity - for now. I expect in near future we'll be able to maintain a fully native version of the app just by "cross compiling" from web using an LLM.

24 Comments

Comments from the original post on X (Twitter)

  • Maciek Pekala's profile picture

    @penzington

    It's a deep clone, i.e. it had to re-write from scratch in Rust, among other things: Linear’s sync engine Offline cache and write queue Optimistic updates Real-time collaboration (Y.js) Presence ProseMirror editor Markdown rendering Chrome-like text layout Linear’s theme system Orbiter UI components Command menu (⌘K) Search and ranking Animation system List virtualization Drag-and-drop Diff viewer Spellcheck Auto-updater

    19 likes

  • dax's profile picture

    @thdxr

    try it with rune. @LukeParkerDev has some interesting techniques for this and making sure all the tiny details match

    19 likes

  • Jason Lee's profile picture

    @huacnlee

    Have you tried for GPUI Fast?

    4 likes

  • Maciek Pekala's profile picture

    @penzington

    wait, it's not already fast? (no I haven't yet!)

    2 likes

  • Jason Lee's profile picture

    @huacnlee

    Fast and lower CPU cost, that important!

    1 like

  • André Staltz's profile picture

    @andrestaltz

    Try Fable 5.2. maybe it'll have less paper cuts

    4 likes

  • Maciek Pekala's profile picture

    @penzington

    papercut minimiser, this can't go wrong

    2 likes

  • André Staltz's profile picture

    @andrestaltz

    Actually, this problem resembles a lot another problem I had at work. We needed to convert a bunch of figma designs into front-end code. The trick was to use Opus 5.5 and sub agents. You tell the orchestrator agent to give one sub agent for each UI component in the figma. And each sub agent is focused on perfectly implementing a single section or a single component. The results are basically 99% or 100% accurate. Before without sub agents it used to be more like 80% accurate which required hand holding. Also it requires Opus 5.5 with other models it came out also inaccurate. But I feel like at least internally this problem has been solved enough for us and we have very strong accuracy.

    1 like

  • Maciek Pekala's profile picture

    @penzington

    Yeah, I bet if I spent more than a few days and a single sub reset on this it could get very close to 100%. But it's still a distraction and a burden for support, which we don't really need, especially since the gains are not game changing.

    1 like

  • Thanaen's profile picture

    @thanaen_dev

    I dare you to ship it as is. I'd use it.

    1 like

  • Petar Cirkovic's profile picture

    @kippe07

    I watched @raycast's "The new standard" where @artman was mentioning this. I'm still curious to know why would Linear do something like this in the future? Rendering speed is impressive, though!

    1 like

  • Lacostedesigns's profile picture

    @zyeutequebec

    that papercut point is the whole story — the clone looks done until you actually try to live in it. did any part survive as something you'd keep using?

  • Matt Zatorski's profile picture

    @matzatorski

    wow! super cool!

  • Vishal Anton's profile picture

    @vishalanton_

    This is insane

  • Carson Yu's profile picture

    @wu_chong4136

    Now every app is getting a GPUI rewrite 😂

  • hola's profile picture

    @jdggggyujhbc

    time to give it to fable

  • kitze 🛠️ tinkerer.club's profile picture

    @thekitze

    who will tell bro

  • Maciek Pekala's profile picture

    @penzington

    About Exact/Contract, Fable, or what else did I miss?

    2 likes

  • kitze 🛠️ tinkerer.club's profile picture

    @thekitze

    Fable haha

  • Maciek Pekala's profile picture

    @penzington

    By near future I meant tomorrow of course