Skip to content
eldritch-codexPublic

About

Modern C++23 framework for multi-threaded interactive desktop applications.

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Repository files navigation

Nodens

An experimental C++23 framework for interactive desktop applications.

Latest release CI status C++23 CMake 3.30 Platform: Linux License: MIT

Getting Started · Guide · Application Template

Status: Nodens is experimental and under active development. APIs change freely, and a breaking change bumps the minor version.

Limitations: Arch Linux is the only validated host, so Windows and macOS are unsupported. A release is the tagged source plus its changelog section: no install rules, binary packages or hosted API documentation, and the test suite is not written yet.

Introduction

Nodens unifies third-party libraries (ImGui, ImPlot, ImPlot3D, Tracy) with a custom core that integrates four systems:

  • GLFW Windows with OpenGL and Vulkan backends. Nodens exposes no renderer API of its own, since renderers such as Nyar borrow the window's graphics backend.
  • Layer System that governs the application lifetime, execution flow, render priority and input event routing (see Layer System).
  • Event System with InputEvent routing through the LayerStack, plus a thread-safe pub/sub EventBus with immediate and queued dispatch (see Event System).
  • Task System for multithreaded task execution (see Concurrency and TaskSystem).

The window and the ImGui overlay are optional: the same loop services layers and events with no window at all, paced by an explicit policy (see Application Loop).

Nodens follows a module-first architecture: public APIs are module interfaces (.cppm), third-party headers are isolated on the global fragment module, and consumers simply import nodens;. A project takes Nodens from CMake with FetchContent.

The framework compiles into a single static library linked to your application, so the result is one portable executable.

Documentation: docs/ indexes it all. The guide holds the tutorials, architecture guides and how-tos, including Building and Toolchain and Profiling with Tracy; docs/dev holds the design notes, and the root holds branching and committing. The API reference is Doxygen output built with cmake --build build --target nodens-docs, not yet hosted.

A minimal application

An application subclasses Nodens::Application, pushes its layers, and calls Run(). The window, ImGui overlay, task system and event bus come with it.

#include <imgui.h>

import nodens;

class HelloLayer : public Nodens::ILayer {
public:
    HelloLayer() : ILayer("Hello") {}

    void OnUpdate(Nodens::TimeStep ts) override {
        m_Seconds += ts.GetSeconds();
    }

    void OnImGuiRender(Nodens::TimeStep ts) override {
        ImGui::Begin("Hello, Nodens");
        ImGui::Text("Running for %.1f s", m_Seconds);
        ImGui::End();
    }

private:
    float m_Seconds = 0.f;
};

class HelloApp : public Nodens::Application {
public:
    HelloApp() : Application({.Name = "Hello Nodens"}) {
        PushLayer(new HelloLayer());
    }
};

int main() {
    Nodens::InitializeLoggers();
    HelloApp{}.Run();
}

Layers receive OnUpdate and OnImGuiRender every frame, plus events routed down the stack. FApplicationConfig sets the window size, graphics API, theme and whether ImGui is enabled; the other layer callbacks are in Layer System. Building this app needs the toolchain steps in Getting Started, or start from the application template.

Example Applications

Examples live in examples/:

Example Demonstrates
circularwave3d Immediate mode GUI, live 2D and 3D plotting with ImPlot and ImPlot3D
planetaryscan Pub/sub event bus, multithreaded task system with thread-safe data collection, live scatter plot

Profiling a multithreaded workload

example-tracy-profiling-multithread.mp4

Applications from earlier Nodens versions, used in numerical-simulation research

1D.Simulation.Engine.mp4
2D.Simulation.Engine.mp4

Dependencies

Dependencies are fetched at configure time with CMake FetchContent and built from source, except GLAD, which is vendored in vendor/glad.

Library Description Version
GLAD OpenGL function loader v0.1.35
GLFW Window, context and input 3.4
ImGui Immediate mode GUI v1.92.9b-docking
ImPlot 2D plotting for ImGui v1.1
ImPlot3D 3D plotting for ImGui v0.4
spdlog Logging v1.17.0
Tracy Frame and GPU profiler v0.14.1

Acknowledgements

A special thanks to TheCherno, whose Game Engine series inspired the foundational architecture of Nodens.

Nodens began as my undergraduate Computer Graphics project at UFMG in 2022, and early versions powered boids and galaxians. The origins of the project are told in this discussion.

In September 2026 I started experimenting with LLM coding agents (Claude Code, ZedAI and Pi) and even decided to develop my own: Armitage. I use them mostly to learn new stuff, but also they help with documentation, CI/CD and general project upkeep. Commits carry no co-author or AI attribution trailers, since I am responsible for every commit.

Suggested reading

Books worth reading if you work on Nodens or build on it:

  • Jason Gregory, Game Engine Architecture, Third edition (Boca Raton London New York: CRC Press, Taylor & Francis Group, 2019). Engine architecture.
  • Ivor Horton and Peter Van Weert, Beginning C++23: From Beginner to Pro (Berkeley, CA: Apress, 2023). https://doi.org/10.1007/978-1-4842-9343-0. Modern C++ up to C++23, which Nodens targets.

License

Copyright (c) 2026 EldritchCodex. The project and its entire history are licensed under the MIT License.

About

Modern C++23 framework for multi-threaded interactive desktop applications.

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages