r/coolgithubprojects • • 1d ago

Kuana: a GPU-rendered code editor written in Rust (MIT / Apache-2.0)

https://github.com/berkayakin/kuana-editor

I've been building Kuana, a desktop code editor, and today I'm opening it up to everyone.

It's written in Rust on GPUI, the UI framework Zed is built on. There's no Electron or web view: the whole interface, text included, is drawn by the GPU (Metal on macOS, DirectX on Windows). The editor only lays out and draws the lines on screen, and parsing, linting, Git, search and language servers all run off the main thread, so typing never waits on anything.

Since it shares a framework with Zed, that's what I measured it against. Same repository open with an 8,000-line Rust file showing, fresh configs, language servers off, on an M1 Pro:

MeasureKuanaZed 1.28
Launch to window (median of 15)327 ms403 ms
Resident memory168 MB228 MB
Threads1026
CPU while idle0.1–0.2%0.2–0.3%

When nothing on screen changes, Kuana draws nothing and wakes nothing, so it can sit open all day without touching your battery.

Being light doesn't mean being bare. It's a full IDE:

  • Language servers, a debugger, a test explorer and a terminal, set up without plugins
  • Git: staging single changes, conflicts resolved in the editor, a commit graph, blame
  • A database view for PostgreSQL, MySQL, SQLite and Oracle
  • Remote development over SSH, WSL and dev containers
  • Its own extension API (views, panels, commands), a registry with 40+ languages, and Zed's extensions work too
  • JetBrains shortcuts by default, plus VS Code, Sublime and Zed keymaps and a Vim mode
  • A modern or classic layout, 50 themes, and the panels where you want them

No account, no telemetry. It runs on macOS and Windows, with Linux in beta.

Come build it with me

I want Kuana to be the best code editor out there: as fast as a native app can be, with everything a real IDE gives you. That's more than one person can do, so I'd love to have you on board. There's room for every kind of help:

  • Use it for a day and open issues for whatever gets in your way
  • Make a theme or an extension. Neither needs any Rust.
  • Pick something from the roadmap: Linux packages, Vim registers and macros, spell checking, reordering commits in Git
  • Or just tell me what would make you switch from your current editor

The contributing guide covers building it and how the code is laid out.

Repo: https://github.com/berkayakin/kuana-editor

6 Upvotes

1 comment sorted by