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

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

Built distributions (wheels)

Table of built distributions (wheels) for prism-gui 0.1.4
File Actions
prism_gui-0.1.4-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.4-cp314-cp314t-manylinux_2_34_x86_64.whl
prism_gui-0.1.4-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.4-cp314-cp314t-manylinux_2_34_aarch64.whl
prism_gui-0.1.4-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.4-cp314-cp314t-macosx_26_0_arm64.whl
prism_gui-0.1.4-cp313-cp313t-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 free-threading Linux glibc 2.34+ x86-64 Details for prism_gui-0.1.4-cp313-cp313t-manylinux_2_34_x86_64.whl
prism_gui-0.1.4-cp313-cp313t-manylinux_2_34_aarch64.whl CPython 3.13 CPython 3.13 free-threading Linux glibc 2.34+ ARM64 Details for prism_gui-0.1.4-cp313-cp313t-manylinux_2_34_aarch64.whl
prism_gui-0.1.4-cp313-cp313t-macosx_26_0_arm64.whl CPython 3.13 CPython 3.13 free-threading macOS 26.0+ ARM64 Details for prism_gui-0.1.4-cp313-cp313t-macosx_26_0_arm64.whl
prism_gui-0.1.4-cp312-abi3-manylinux_2_34_x86_64.whl CPython 3.12 abi3 Linux glibc 2.34+ x86-64 Details for prism_gui-0.1.4-cp312-abi3-manylinux_2_34_x86_64.whl
prism_gui-0.1.4-cp312-abi3-manylinux_2_34_aarch64.whl CPython 3.12 abi3 Linux glibc 2.34+ ARM64 Details for prism_gui-0.1.4-cp312-abi3-manylinux_2_34_aarch64.whl
prism_gui-0.1.4-cp312-abi3-macosx_26_0_arm64.whl CPython 3.12 abi3 macOS 26.0+ ARM64 Details for prism_gui-0.1.4-cp312-abi3-macosx_26_0_arm64.whl

Total release size: 96.2 MB

Release files / prism_gui-0.1.4.tar.gz

Download URL prism_gui-0.1.4.tar.gz
Size 5.7 MB
Tags Source
SHA-256 checksum
How to use checksums
b71196b0bbd38bab86e822c77fa7d8cb5515e03d0a8218b086f658103fb654be
BLAKE2b-256 checksum
How to use checksums
9dc68505e2ef2dccb02178896c41d3a83e3e19eab92d3e473c4c4458ae8812f4
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 Nov 30, 2026.

Transparency log

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

Download URL prism_gui-0.1.4-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
2dbacd5c5ffab35fbc5620abf9ca52a00944ac68938a55b1043cb336d0d8a00a
BLAKE2b-256 checksum
How to use checksums
bea192e7fad7757cb109c6d5d18898a73339dc9b61ff3efb8151e8148bc005b5
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 Nov 30, 2026.

Transparency log

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

Download URL prism_gui-0.1.4-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
a0042d1b03be5cb37115b5f37b99b40b4311b26ddb79a94603138aeaff1b1109
BLAKE2b-256 checksum
How to use checksums
2d06fa8803230e8801ec00177df9e6065a92a405f8f2f58568353b0deb8924f3
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 Nov 30, 2026.

Transparency log

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

Download URL prism_gui-0.1.4-cp314-cp314t-macosx_26_0_arm64.whl
Size 11.4 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
8e5d52778dd9398ed59eafc776dbd2ed1b6f7c5c464d1078f4ac0e0d09b55017
BLAKE2b-256 checksum
How to use checksums
1bce5e9c2cc2b5983ad425fe888d6967a59e385a0ef6f50ef45d30dae9885e77
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 Nov 30, 2026.

Transparency log

Release files / prism_gui-0.1.4-cp313-cp313t-manylinux_2_34_x86_64.whl

Download URL prism_gui-0.1.4-cp313-cp313t-manylinux_2_34_x86_64.whl
Size 9.6 MB
Tags CPython 3.13 CPython 3.13 free-threading Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
e1d9b25dfbbec22595d212f01443d887bdff64d4c4844956ff40e637d3b531d6
BLAKE2b-256 checksum
How to use checksums
dcb067ad0a25c0340631e829decf92ff68e440d5d2430ecda2da74b966dadfea
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 Nov 30, 2026.

Transparency log

Release files / prism_gui-0.1.4-cp313-cp313t-manylinux_2_34_aarch64.whl

Download URL prism_gui-0.1.4-cp313-cp313t-manylinux_2_34_aarch64.whl
Size 9.2 MB
Tags CPython 3.13 CPython 3.13 free-threading Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
2b8b82fedf92624d32385885fafeb3e826c1b05730bbbf60391c838358f92345
BLAKE2b-256 checksum
How to use checksums
bbf166190f67f6803f61937ba5b8629dc25cf92510f447611710bfd1aa58096f
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 Nov 30, 2026.

Transparency log

Release files / prism_gui-0.1.4-cp313-cp313t-macosx_26_0_arm64.whl

Download URL prism_gui-0.1.4-cp313-cp313t-macosx_26_0_arm64.whl
Size 11.4 MB
Tags CPython 3.13 CPython 3.13 free-threading macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
fc1ac882c7351c5fe578808facef02ec1dac0939e956aedb8c83c2be06d275cf
BLAKE2b-256 checksum
How to use checksums
0083f765023ea3018e8048a244cc3e3bf15fe58d7901bdde287a169c67234fe2
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 Nov 30, 2026.

Transparency log

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

Download URL prism_gui-0.1.4-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
7fbba726f8a531450c45d6b562cb086e0e43e6241ba38fd872b989d327b9f140
BLAKE2b-256 checksum
How to use checksums
ccecb8e8c33581daccbc862cab8a0d5e6d769ac4dac1199fb31e80bc68844b72
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 Nov 30, 2026.

Transparency log

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

Download URL prism_gui-0.1.4-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
386b655d388b1bfda06e3b060f626e077dfedb7a302da3c95e2f2d67a5a61ba6
BLAKE2b-256 checksum
How to use checksums
e95bd8cd2d7979e798be26ffc330d4cbe5d06a7679315748e10fb754b54ca5d7
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 Nov 30, 2026.

Transparency log

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

Download URL prism_gui-0.1.4-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
57417fd1c9be5a45505d698203d3806288eb3e78c5bbbfba30fb86606208ebff
BLAKE2b-256 checksum
How to use checksums
2f95072d321d18670c539958e352f16ff1dfc80684e54adf4f1762058505ea39
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 Nov 30, 2026.

Transparency log

Security for prism-gui 0.1.4

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.4.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 Nov 30, 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