Zenvra-Studios

Zenvra-Studios / Zlay

Public

Declarative UI and layout engine in pure C inspired by Flutter.

10
0
94% credibility
Found May 26, 2026 at 10 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
C
AI Summary

ZLay is a native C/C++ library that helps developers create user interfaces. It takes care of the math and logic behind positioning on-screen elements (like arranging buttons, panels, and text), applying visual styles (colors, shadows, rounded corners), and generating graphics commands. The library supports multiple rendering systems and can run on Windows, macOS, and Linux. It's designed for game engines, tool editors, and any application that needs custom UI without depending on web technologies.

How It Works

1
🔍 You discover a UI layout library

While researching how to build custom user interfaces for your application, you find ZLay: a library that handles positioning and styling of on-screen elements.

2
📦 You add it to your project

You include ZLay's core files in your application. The library gives you simple building blocks like boxes, rows, and text elements you can arrange on screen.

3
🎨 You describe your interface design

You write code that declares how your UI should look: spacing between elements, colors, rounded corners, shadows, and how things should stack or align.

4
🧮 The library calculates positions

ZLay figures out exactly where each element should go based on your design, handling flexible layouts and responsive sizing automatically.

5
🖼️ Your graphics system draws the result

The library produces drawing commands that your chosen graphics system (like OpenGL or Vulkan) uses to render everything to the screen.

6
You have options for how it runs
🖥️
Standalone window

Your UI runs in its own window on your desktop

🎮
Inside your application

Your UI becomes part of a larger program, like a game or editor

Your interface comes to life

Everything works together: users see beautifully laid out, styled interfaces that respond smoothly to interaction.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 10 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is Zlay?

Zlay is a declarative UI and layout engine written in pure C, inspired by Flutter's approach to building interfaces. It provides a macro-based API that lets you describe your UI hierarchy using constructs like ZLAY_BOX and ZLAY_TEXT, then produces render commands that driving backends translate to OpenGL, Vulkan, or other graphics APIs. The library handles flex and grid layouts, styling with shadows and rounded corners, themes with light and dark modes, and includes an app framework with navigation, state management, and animation controllers. You can build it with CMake and the project includes Python scripts for configuring different backends.

Why is it gaining traction?

The standout appeal is getting Flutter-style developer experience without touching C++ or any managed runtime. Pure C means zero dependencies, predictable memory behavior, and easy embedding in game engines, editors, or plugins. The multi-backend architecture (OpenGL, Vulkan, WebGPU, Metal, Direct3D) lets you target from desktop games to mobile apps to web browsers through Emscripten. Cross-platform support spans Windows, macOS, Linux, iOS, Android, and BSD variants. Having a C++ wrapper available means you can integrate incrementally without rewriting existing code.

Who should use this?

Game developers building in-engine editors or tool UIs who want declarative layouts without leaving C. Embedded systems developers needing a lightweight, dependency-free UI layer. C/C++ shops building desktop applications or plugins that require custom rendering without the weight of Qt or wxWidgets. Frontend devs familiar with Flutter who need native performance or integration with existing C codebases. The project is actively developed but very early stage, so expect API changes and limited third-party resources.

Verdict

ZLay shows promise as a clean, portable UI foundation for C projects, but the 0.949999988079071% credibility score reflects its infancy: only 10 stars, version 0.1.0, and limited community validation. It is worth evaluating for greenfield C UI work where Flutter-style ergonomics matter, but do not adopt for production without first assessing the gap between current documentation and your needs. Watch the repository for the first stable release before committing to a project timeline.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.