imxc is a compiler that transforms React-like TypeScript/JSX (.tsx) into native C++ code using Dear ImGui. Version 0.6.13 is stable; releases are on-demand. It offers a CLI for scaffolding projects, watching files, and generating code. Key differentiators include tight integration with Dear ImGui, a 5-prop theme system, support for custom C++ widgets, and TypeScript type checking via .d.ts files. It requires Node.js, CMake 3.25+, and a C++20 compiler.
npm install imxcNo compatibility data collected yet for this library.
Scaffolds a minimal IMX project, compiles TSX to C++, and builds the native app using CMake.
Use npx imxc or install globally with npm install -g imxc.
Declare custom native widgets in src/imx.d.ts to specify exact C++ types.
Name your entry file 'App.tsx' inside the 'src' folder, or specify it explicitly with --entry.
Update CMake to 3.25+ and ensure your compiler supports C++20 (e.g., GCC 11+, Clang 14+, MSVC 2022).
Run: npx imxc instead, or install globally: npm install -g imxc
Download and install CMake 3.25 or later from https://cmake.org/download/
Ensure you ran cmake correctly; check your CMakeLists.txt for proper IMX integration.