Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. C/C++
  3. xtd

xtd

MITC++

A modern C++20 framework for building cross-platform console, GUI (WinForms-like), and unit test applications.

Visit WebsiteGitHubGitHub
1.1k stars77 forks0 contributors

What is xtd?

xtd is a modern C++20 framework for creating cross-platform console (CLI), forms (GUI similar to WinForms), and unit test (xUnit) applications and libraries. It solves the problem of platform fragmentation by allowing developers to write code once and deploy it across Windows, macOS, Linux, iOS, Android, and other operating systems.

Target Audience

C++ developers building portable desktop or mobile applications who need a unified API for GUI, console, and testing across multiple platforms.

Value Proposition

Developers choose xtd for its .NET-inspired API, modern C++20 foundation, and extensive cross-platform support, offering a consistent development experience without sacrificing native performance or requiring platform-specific code.

Overview

Free open-source modern C++20 framework to create console (CLI), forms (GUI like WinForms) and unit test (xUnit) applications and libraries on Windows, macOS, Linux, iOS, Android, FreeBSD, Haiku, and SerenityOS.

Use Cases

Best For

  • Building cross-platform desktop applications with a WinForms-like GUI
  • Creating portable console applications for multiple operating systems
  • Developing unit tests for C++ projects using an xUnit-style framework
  • Writing C++20 applications that target both desktop and mobile platforms
  • Extending the C++ standard library with .NET-like APIs for system functionality
  • Developing applications that require native performance with CSS-stylable GUI components

Not Ideal For

  • Projects requiring immediate production stability and no breaking changes
  • Applications demanding full native GUI capabilities on iOS and Android
  • Teams using older C++ standards or compilers without C++20 support
  • Developers needing a vast ecosystem of third-party widgets or plugins

Pros & Cons

Pros

Wide Platform Coverage

Supports over 8 operating systems including Windows, macOS, Linux, iOS, and Android, enabling true write-once-run-anywhere development for desktop and mobile.

.NET-Inspired API

Offers an API closely resembling .NET Framework with modern C++ integration, easing the transition for developers familiar with C# or .NET ecosystems.

Modern C++20 Foundation

Built on C++20 with RAII idioms for performance and safety, and includes features like coroutines, as shown in the async examples.

CSS GUI Styling

Allows GUI controls to be styled with CSS in addition to native mode, providing flexible theming options without sacrificing native performance.

Cons

Beta Status and Instability

Currently in beta (version 0.1.2) with announced breaking changes like requiring C++20 as a minimum, making it unsuitable for stable production environments.

Limited Mobile GUI Support

On iOS and Android, only xtd.core and xtd.tunit libraries are fully supported; GUI functionality is not available, restricting native mobile app development.

Complex Build Dependency

Requires the custom xtdc command-line tool and CMake for building, adding setup complexity compared to simpler frameworks or IDE-native solutions.

Frequently Asked Questions

Quick Stats

Stars1,148
Forks77
Contributors0
Open Issues99
Last commit9 hours ago
CreatedSince 2019

Tags

#unit-testing#c-plus-plus-20#portable#cmake#c-plus-plus#console#cli#gui#gui-framework#mobile-development#cross-platform#desktop#unittest#desktop-applications

Built With

c
c++20
C
CMake

Links & Resources

Website

Included in

C/C++70.6k
Auto-fetched 2 hours ago

Related Projects

FollyFolly

An open-source C++ library developed and used at Facebook.

Stars30,341
Forks5,866
Last commit1 hour ago
abseil-cppabseil-cpp

Abseil Common Libraries (C++)

Stars17,223
Forks3,006
Last commit2 hours ago
DLIBDLIB

A toolkit for making real world machine learning and data analysis applications in C++

Stars14,371
Forks3,454
Last commit3 days ago
Sogou WorkflowSogou Workflow

C++ Parallel Computing and Asynchronous Networking Framework

Stars14,340
Forks2,563
Last commit13 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub