GUML 0.3.1

dotnet add package GUML --version 0.3.1
                    
NuGet\Install-Package GUML -Version 0.3.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GUML" Version="0.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GUML" Version="0.3.1" />
                    
Directory.Packages.props
<PackageReference Include="GUML" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GUML --version 0.3.1
                    
#r "nuget: GUML, 0.3.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GUML@0.3.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GUML&version=0.3.1
                    
Install as a Cake Addin
#tool nuget:?package=GUML&version=0.3.1
                    
Install as a Cake Tool

Godot UI Markup Language

NuGet GitHub Release License

GUML is a declarative UI markup language (.guml) for Godot .NET, providing a QML/XAML-like development experience. It allows developers to define UI components and layouts using a concise syntax, with support for data binding, event handling, and reusable components. GUML uses Roslyn Source Generator for compile-time code generation, delivering maximum performance with zero runtime overhead.

Features

  • QML-like declarative syntax
  • Data binding — automatically update UI when controller properties change (one-way :=, two-way <=>, reverse =:)
  • Event wiring — connect Godot signals and C# events with one line
  • List rendering — each blocks with incremental updates via ObservableCollection<T>
  • Reusable components — compose and reuse .guml files with typed parameters
  • Full Godot UI component support (all built-in Control types)
  • Theme overrides — set theme styles directly in GUML
  • Source Generator mode — compile-time code generation for maximum performance

Install

dotnet add package GUML --version 0.3.0

For source generator support:

dotnet add package GUML.SourceGenerator --version 0.3.0

Documentation

Language Specification

The formal GUML language specification is available in the GUMLSpec directory. It covers:

  • Lexical structure & grammar (BNF)
  • Types, expressions, and directives
  • Component model and controller integration
  • Code generation and API interface specifications
  • Diagnostics

IDE Support

Editor plugins have been moved to their own repositories:

Editor Repository
VS Code GUML.VSC
JetBrains Rider GUML.Rider

Project Structure

Directory Description
GUML Core runtime library — GuiController, converters, bindings
GUML.Shared Shared infrastructure — full-fidelity CST parser, API metadata models, diagnostics
GUML.SourceGenerator Roslyn source generator for compile-time .guml → C# code generation
GUML.Analyzer Language analyzer CLI tool — Roslyn-based project analysis and LSP features via JSON-RPC
GUMLSpec Formal language specification
Doc User documentation (guides, reference, quick start)
TestApplication Sample Godot project demonstrating GUML usage

Example

main.guml:

Panel {
    size: vec2(640, 480),
    theme_overrides: { 
        panel: style_box_flat({
            bg_color: color(0.4, 0.4, 0.4, 0.4)
        })
    },
    Label {
        position: vec2(10, 10),
        size: vec2(200, 30),
        // $controller.SayHello binding to Label.text.If SayHello changes, text will also change.
        text:= "hello " + $controller.SayHello
    }
    
    Button {
        position: vec2(10, 50),
        size: vec2(200, 30),
        text: "Change world",
        #pressed: $controller.ChangeHelloBtnPressed
    }
}

MainController.cs:

public class MainController : GuiController
{
    public string SayHello {
	    get => _sayHello;
		set
		{
			_sayHello = value;
			OnPropertyChanged();
		}
    }
	
    private string _sayHello = "world!";

	public void ChangeHelloBtnPressed()
	{
		SayHello = "new world!";
	}
}

example

After clicking the change world button, the text will change to hello new world!

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.1 106 4/2/2026
0.3.0 99 4/1/2026
0.0.4 189 6/30/2024
0.0.3 159 6/30/2024
0.0.2 158 6/8/2024
0.0.1 156 6/7/2024

The initial release of the GUML nuget package.