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.6

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.6
File Size Uploaded Provenance Actions
prism_gui-0.1.6.tar.gz 5.7 MB With provenance Details for prism_gui-0.1.6.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for prism-gui 0.1.6
File Actions
prism_gui-0.1.6-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.6-cp315-cp315t-manylinux_2_34_x86_64.whl
prism_gui-0.1.6-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.6-cp315-cp315t-manylinux_2_34_aarch64.whl
prism_gui-0.1.6-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.6-cp315-cp315t-macosx_26_0_arm64.whl
prism_gui-0.1.6-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.6-cp314-cp314t-manylinux_2_34_x86_64.whl
prism_gui-0.1.6-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.6-cp314-cp314t-manylinux_2_34_aarch64.whl
prism_gui-0.1.6-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.6-cp314-cp314t-macosx_26_0_arm64.whl
prism_gui-0.1.6-cp312-abi3-manylinux_2_34_x86_64.whl CPython 3.12 abi3 Linux glibc 2.34+ x86-64 Details for prism_gui-0.1.6-cp312-abi3-manylinux_2_34_x86_64.whl
prism_gui-0.1.6-cp312-abi3-manylinux_2_34_aarch64.whl CPython 3.12 abi3 Linux glibc 2.34+ ARM64 Details for prism_gui-0.1.6-cp312-abi3-manylinux_2_34_aarch64.whl
prism_gui-0.1.6-cp312-abi3-macosx_26_0_arm64.whl CPython 3.12 abi3 macOS 26.0+ ARM64 Details for prism_gui-0.1.6-cp312-abi3-macosx_26_0_arm64.whl

Total release size: 96.7 MB

Release files / prism_gui-0.1.6.tar.gz

Download URL prism_gui-0.1.6.tar.gz
Size 5.7 MB
Tags Source
SHA-256 checksum
How to use checksums
c1f478d1d9604c9f26bdead1e7e551762bae37e4f85e3b9eee948513f04772b6
BLAKE2b-256 checksum
How to use checksums
54785bdb451c5f01740e80cdaa3740ff675ed6193c10e5709fa49ff2dde6d3bd
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.6-cp315-cp315t-manylinux_2_34_x86_64.whl

Download URL prism_gui-0.1.6-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
c4a804cc717d74ce9c9963a69ebe5d83345a4e358361d1355d37ab29c2248ad6
BLAKE2b-256 checksum
How to use checksums
8ed96316cefcccc4969ceae39d9b6147dd17dbb530a97e2566a5c2671aa5e4b6
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.6-cp315-cp315t-manylinux_2_34_aarch64.whl

Download URL prism_gui-0.1.6-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
c119d56b4004d2750c6250833f2edf9bd88a74e0aeb2c390259ecd4394d3889e
BLAKE2b-256 checksum
How to use checksums
5d9f0ed1ac25dd37ffbdf8065199d00e3348d7386356d6598c7005ac927df800
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.6-cp315-cp315t-macosx_26_0_arm64.whl

Download URL prism_gui-0.1.6-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
d36a8a97b1264dc20bbb43dad12e40512d51ffacd52cab88bc0c683355f4785b
BLAKE2b-256 checksum
How to use checksums
2e0d63434e15ab5b692effc122124bd27fb537c50a76bfbf7140f1341a06f89c
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.6-cp314-cp314t-manylinux_2_34_x86_64.whl

Download URL prism_gui-0.1.6-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
3c04c156fae652344170d2dea9df34f9d6f20b64c025367c522dee470e55a3db
BLAKE2b-256 checksum
How to use checksums
be561091c740992d8ae40766a160797f944ccfbb333acdf4367c434d0c053f3c
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.6-cp314-cp314t-manylinux_2_34_aarch64.whl

Download URL prism_gui-0.1.6-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
c11260dedcdccbcaf7f04d5ce5e59c8b04c72af87480be3b8bc914e8bb41f6b4
BLAKE2b-256 checksum
How to use checksums
7202cf838d72e19f5a6a2eb5df6d517860a389d41127f9fc6e545ba64adf754e
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.6-cp314-cp314t-macosx_26_0_arm64.whl

Download URL prism_gui-0.1.6-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
a7be92fc0e4a67875aa4b836e5c517b9308c4233831fbfeeba21033f8c941970
BLAKE2b-256 checksum
How to use checksums
b85c2338db56e3fa359539292a859f959b38bd099dd0d45e3f9f349f19717d80
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.6-cp312-abi3-manylinux_2_34_x86_64.whl

Download URL prism_gui-0.1.6-cp312-abi3-manylinux_2_34_x86_64.whl
Size 9.6 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
b97c13176c225ce4e9a84813f7f0ca8ae6ce1b37f73be5280708fc9fe95aea70
BLAKE2b-256 checksum
How to use checksums
8c0fb2fde30d3c0f1abb1e69d54140654ac8006fa26eba47dc6d117ca51b078c
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.6-cp312-abi3-manylinux_2_34_aarch64.whl

Download URL prism_gui-0.1.6-cp312-abi3-manylinux_2_34_aarch64.whl
Size 9.2 MB
Tags CPython 3.12 Linux glibc 2.34+ ARM64 abi3
SHA-256 checksum
How to use checksums
b08e3a37e2f4fd4267310f5c47574bcad945f52ef0c55d0568e72f18b4f98d58
BLAKE2b-256 checksum
How to use checksums
15359f2086271ffb1e4e3e15ac5b6aa17706bae338bc6cb635e22f350dcef80f
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.6-cp312-abi3-macosx_26_0_arm64.whl

Download URL prism_gui-0.1.6-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
add7b0762a0a5774f765968709ca9155228139c956fe7dd6b29bff4ebd2f7d3a
BLAKE2b-256 checksum
How to use checksums
44efa2abc84a90047fbfd8928ed33dda63964aebda2fdc0254ba8196830e3640
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.6

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.6.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