Skip to main content

PRISM logo

Persistent Rendering & Interactive Scene Model

A from-scratch C++26 GUI framework. Write a struct, get a UI.
The renderer runs on its own thread, so slow app code never freezes the window.

CI Live demos Documentation C++26 | C++23 MIT license

A plain C++ struct on the left and the UI PRISM makes from it on the right: each member's line points at its labelled row (text field, number, checkbox, dropdown, number)

#include <prism/prism.hpp>
using namespace prism;   // the snippets below assume it: names read core::Field, ui::Slider, app::run

struct Counter {
    core::Field<int> count{42};
    core::Field<std::string> label{"Hello, PRISM!"};
};

int main() {
    Counter counter;
    return app::run(counter, {.title = "My App"});   // C++26 reflection builds the UI
}

Counter app

Try it without installing anything: the live demos run the real examples, compiled to WebAssembly.

Why PRISM

Qt, GTK and wxWidgets run your code and the renderer on the same thread. If one callback is slow, nothing else happens. The window cannot repaint, cannot resize, and looks frozen.

PRISM puts the renderer on a separate thread. Your code still blocks its own thread, but the window stays alive.

Timeline: a 40 ms callback freezes a single-threaded toolkit for two frames; in PRISM the render thread keeps serving OS events from the last snapshot

This is an architectural choice, not a tuning trick. It is built in from day one.

Documentation

The manual is on prism-gui.readthedocs.io. It starts with a tour and ends with a reference for every widget and type, each with an example. Its pages are Markdown in doc/.

Start Concepts Widgets The app
Why PRISM The model All widgets Windows
Install Views and layout Controls Themes
Your first app Blocks Tables, trees, lists Settings
Examples Threads Text and code Python

Examples

examples/tour/ is the place to start: five programs of 20 to 40 lines, one idea each. examples/ holds eight complete apps, from a widget gallery to a synthesizer and a SQL tool; all of them run in the browser.

Widget Gallery

The same model runs elsewhere:

  • Python: the SDK builds a prism extension from python/: a class of fields is a window, and any thread may change a field.
  • Boards: embedded covers the ports that ship: the STM32H7B3I-DK and STM32F746G-DISCO, and the ESP32-S31-Korvo-1.

Building

You need Meson ≥ 1.5 and a recent C++ compiler. All dependencies are fetched as Meson wraps.

meson setup builddir
ninja -C builddir
meson test -C builddir
Compiler Reflection What you write
GCC 16+ yes, -freflection is auto-detected nothing: structs become UIs
GCC 14+, Clang 17+ no one view() method per model

The browser build, the WebGPU renderer and the four entry points are in Install.

License

MIT

Metadata

Release files for prism-gui 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prism-gui 0.1.9
File Size Uploaded Provenance Actions
prism_gui-0.1.9.tar.gz 5.7 MB With provenance Details for prism_gui-0.1.9.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for prism-gui 0.1.9
File Actions
prism_gui-0.1.9-cp315-cp315t-manylinux_2_34_x86_64.whl CPython 3.15 CPython 3.15 free-threading Linux glibc 2.34+ x86-64 Details for prism_gui-0.1.9-cp315-cp315t-manylinux_2_34_x86_64.whl
prism_gui-0.1.9-cp315-cp315t-manylinux_2_34_aarch64.whl CPython 3.15 CPython 3.15 free-threading Linux glibc 2.34+ ARM64 Details for prism_gui-0.1.9-cp315-cp315t-manylinux_2_34_aarch64.whl
prism_gui-0.1.9-cp315-cp315t-macosx_26_0_arm64.whl CPython 3.15 CPython 3.15 free-threading macOS 26.0+ ARM64 Details for prism_gui-0.1.9-cp315-cp315t-macosx_26_0_arm64.whl
prism_gui-0.1.9-cp314-cp314t-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.34+ x86-64 Details for prism_gui-0.1.9-cp314-cp314t-manylinux_2_34_x86_64.whl
prism_gui-0.1.9-cp314-cp314t-manylinux_2_34_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.34+ ARM64 Details for prism_gui-0.1.9-cp314-cp314t-manylinux_2_34_aarch64.whl
prism_gui-0.1.9-cp314-cp314t-macosx_26_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 26.0+ ARM64 Details for prism_gui-0.1.9-cp314-cp314t-macosx_26_0_arm64.whl
prism_gui-0.1.9-cp312-abi3-manylinux_2_34_x86_64.whl CPython 3.12 abi3 Linux glibc 2.34+ x86-64 Details for prism_gui-0.1.9-cp312-abi3-manylinux_2_34_x86_64.whl
prism_gui-0.1.9-cp312-abi3-manylinux_2_34_aarch64.whl CPython 3.12 abi3 Linux glibc 2.34+ ARM64 Details for prism_gui-0.1.9-cp312-abi3-manylinux_2_34_aarch64.whl
prism_gui-0.1.9-cp312-abi3-macosx_26_0_arm64.whl CPython 3.12 abi3 macOS 26.0+ ARM64 Details for prism_gui-0.1.9-cp312-abi3-macosx_26_0_arm64.whl

Total release size: 96.9 MB

Release files / prism_gui-0.1.9.tar.gz

Download URL prism_gui-0.1.9.tar.gz
Size 5.7 MB
Tags Source
SHA-256 checksum
How to use checksums
77ed46248ce7d7ef3e485c0ac91faa37c113dc7e84612527b8e7a47fcd8441b7
BLAKE2b-256 checksum
How to use checksums
14f5cb6c8962eefadf17c41492823e6399275c4a30adb3c72b6317ad1a53861e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / prism_gui-0.1.9-cp315-cp315t-manylinux_2_34_x86_64.whl

Download URL prism_gui-0.1.9-cp315-cp315t-manylinux_2_34_x86_64.whl
Size 9.6 MB
Tags CPython 3.15 CPython 3.15 free-threading Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
30a644aa1ca87cf4de238d8a0ad2b89429a6fbeda7ed8c767c4e4571d3d05682
BLAKE2b-256 checksum
How to use checksums
c2a2995b8899a24ce9215da6e94eb25fbde4404740569dfab6cc3ba819462d2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / prism_gui-0.1.9-cp315-cp315t-manylinux_2_34_aarch64.whl

Download URL prism_gui-0.1.9-cp315-cp315t-manylinux_2_34_aarch64.whl
Size 9.2 MB
Tags CPython 3.15 CPython 3.15 free-threading Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
6b4ecb91f93ec5a216881cd4920a78535d9d5f390ebb3ca7d0a4f80a11af9048
BLAKE2b-256 checksum
How to use checksums
2e5ab296eb9d5ed59478562f0491f33dec78f5de52d2aa6eff36995e3f1d9371
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / prism_gui-0.1.9-cp315-cp315t-macosx_26_0_arm64.whl

Download URL prism_gui-0.1.9-cp315-cp315t-macosx_26_0_arm64.whl
Size 11.5 MB
Tags CPython 3.15 CPython 3.15 free-threading macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
a2e42335d959f28dc25d3c328372ea19a2f8262d37f3d71bafac524588fac5d6
BLAKE2b-256 checksum
How to use checksums
53ea9b5431fe2c3ee9a004008998fa98d98e1cfc4606edb79b11933479710fd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / prism_gui-0.1.9-cp314-cp314t-manylinux_2_34_x86_64.whl

Download URL prism_gui-0.1.9-cp314-cp314t-manylinux_2_34_x86_64.whl
Size 9.6 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
651c242d336e2b8e306d2c94e01cf637bce9f069d2a6a879380cac2c2d068af9
BLAKE2b-256 checksum
How to use checksums
56d6e8f4d9cc240cb43d718e6e37d1475c1c987e237c0f50b27880f5c91212b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / prism_gui-0.1.9-cp314-cp314t-manylinux_2_34_aarch64.whl

Download URL prism_gui-0.1.9-cp314-cp314t-manylinux_2_34_aarch64.whl
Size 9.2 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
88cbba167d3e7eda477f4bce7d0e1c536435fe53cb9819ad10d9ed9b840f4f21
BLAKE2b-256 checksum
How to use checksums
949385df86f848814d1cb66a1258122d0581c8b6c12e9d5a50af107bee65b18f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / prism_gui-0.1.9-cp314-cp314t-macosx_26_0_arm64.whl

Download URL prism_gui-0.1.9-cp314-cp314t-macosx_26_0_arm64.whl
Size 11.5 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
07ca976b956c4a63d89d3dc310c091afa941efe1e1cf9156e5c81407c5a0a414
BLAKE2b-256 checksum
How to use checksums
aa50e2004c40ce17ebb9a7efb6d08542e7f8ee3cf7d9511e2d77c3f1dbb6666a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / prism_gui-0.1.9-cp312-abi3-manylinux_2_34_x86_64.whl

Download URL prism_gui-0.1.9-cp312-abi3-manylinux_2_34_x86_64.whl
Size 9.7 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
5b1d883d1dd0b1509215b1f93fa477a555a48f32e924e32626134603db8400a7
BLAKE2b-256 checksum
How to use checksums
45b9a282678fd9f9b52fab150cdd82b7c458854ef417c827a82e3eb0271e6446
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / prism_gui-0.1.9-cp312-abi3-manylinux_2_34_aarch64.whl

Download URL prism_gui-0.1.9-cp312-abi3-manylinux_2_34_aarch64.whl
Size 9.3 MB
Tags CPython 3.12 Linux glibc 2.34+ ARM64 abi3
SHA-256 checksum
How to use checksums
f6565e07204621fbbff18fed1af9e282e4c6bc9d23d69c6eb240e0b07cc9bf27
BLAKE2b-256 checksum
How to use checksums
e4d40989faf1d2e1cc66edd573873e45ec95ec8717dd1a65eda47fb888e919d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / prism_gui-0.1.9-cp312-abi3-macosx_26_0_arm64.whl

Download URL prism_gui-0.1.9-cp312-abi3-macosx_26_0_arm64.whl
Size 11.5 MB
Tags CPython 3.12 abi3 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
e5b69a83f88b0e6efc38a62a7a364b30b696d8420115da14fba3676442392b5f
BLAKE2b-256 checksum
How to use checksums
b2cfdace80f20fc07d7798140c6d7a8b1344fbc6de71b4ecd63735f70a27f088
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for prism-gui 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 10 files in this release have been uploaded with provenance metadata.

Select from 10 files

Attestation for prism_gui-0.1.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page