r/vibecoding • u/codebam • 18h ago
Showcase/Project Viewport, a Linux Wayland compositor I made using AI
https://github.com/codebam/viewport
It is a desktop environment for Linux.
I built it using a combination of Claude, ChatGPT, Deepseek, Qwen, GLM 5.3, and a little Hy4 Flash.
I asked for something along the lines of "a Wayland compositor whose entire desktop shell is a webpage and windows are laid out using CSS"
About 20B tokens later, after adding OpenGL support so it runs properly on Nvidia (I hope), after adding Hyprland feature parity, and a stable (?) IPC CLI and features no other window manager has... here it is.
Some main features include:
- The compositor contains no layout code; the browser computes every rectangle from CSS flexboxes
- Custom window capture modes, capture window, capture current screen, capture all screens
- Multiple backend support for the browser engine (chromium, servo, cef, webkitgtk, and more)
- Both Vulkan and OpenGL support
- Nested OpenGL support
- Multiple different layouts and ways to organize windows
- Animated CSS wallpaper support
- Settings for my specific OLED use-case to reduce burn in
I made it because I wanted another vulkan compositor, and one where I could experiment with different types of window layouts.
Some things I learned along the way that I wish I knew are:
- I really like changing subagent depth to 2 and telling small models to go start orchestrators that then start other models
- Escalate models after one failure. don't spend all day looping using the same model
- Use a harness and give your agent the proper tools to get the job done. I for example give my agent nix so it can just use whatever tools it wants