Blender's GPU Accelerated UI, Decoupled from it's original codebase. Supports Rust, Python, JS, React, C & C++. Twice as good as GPUI
license blender
Preetham Pemmasani061a917a12aa
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex bf4cd60..a2bfa16 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -51,8 +51,9 @@ headers (`libx11-dev` / `libX11-devel`). More detail:- Don't let performance regress. The test suite enforces frame budgets. Forrendering or layout changes, run the benchmark in `bindings/rust/bench/`and include before and after numbers.-- Keep the SPDX header (`GPL-2.0-or-later`) in new files. Contributions are- accepted under that license.+- Keep the SPDX header (`GPL-2.0-or-later`, the one Blender's files carry) in new+ files. Contributions are accepted under BUI's license, the GNU GPL version 3+ or later.- Update `CHANGELOG.md` (the Unreleased section) and the relevant guide in `docs/`.- Code style: follow the surrounding code. C is formatted like Blender'ssources, and Rust with `rustfmt` defaults (max width 120).diff --git a/bindings/node/README.md b/bindings/node/README.mdindex 4dd2aff..a28eefe 100644--- a/bindings/node/README.md+++ b/bindings/node/README.md@@ -149,4 +149,4 @@ features landed. Method:Guide: [docs/javascript.md](https://github.com/ppmpreetham/BUI/blob/main/docs/javascript.md) ·Website: [bui.preetham.top](https://bui.preetham.top) ·Source: [github.com/ppmpreetham/BUI](https://github.com/ppmpreetham/BUI) ·-License: GPL-2.0-or-later+License: GPL-3.0-or-laterdiff --git a/bindings/node/package.json b/bindings/node/package.jsonindex 7cd11ee..1636862 100644--- a/bindings/node/package.json+++ b/bindings/node/package.json@@ -60,7 +60,7 @@"x64","arm64"],- "license": "GPL-2.0-or-later",+ "license": "GPL-3.0-or-later","repository": {"type": "git","url": "git+https://github.com/ppmpreetham/BUI.git",diff --git a/bindings/package-lock.json b/bindings/package-lock.jsonindex 2eb9799..ec56c32 100644--- a/bindings/package-lock.json+++ b/bindings/package-lock.json@@ -18,7 +18,7 @@"x64","arm64"],- "license": "GPL-2.0-or-later",+ "license": "GPL-3.0-or-later","os": ["win32","linux",@@ -279,7 +279,7 @@"react": {"name": "@blender-ui/react","version": "0.3.0",- "license": "GPL-2.0-or-later",+ "license": "GPL-3.0-or-later","dependencies": {"@blender-ui/native": "^0.3.0","react-reconciler": "0.34.0"@@ -297,7 +297,7 @@"svelte": {"name": "@blender-ui/svelte","version": "0.1.0",- "license": "GPL-2.0-or-later",+ "license": "GPL-3.0-or-later","dependencies": {"@blender-ui/native": "^0.3.0"},diff --git a/bindings/react/README.md b/bindings/react/README.mdindex b2e983f..a16fd5d 100644--- a/bindings/react/README.md+++ b/bindings/react/README.md@@ -170,4 +170,4 @@ launches.Guide: [docs/javascript.md](https://github.com/ppmpreetham/BUI/blob/main/docs/javascript.md) ·Website: [bui.preetham.top](https://bui.preetham.top) ·Source: [github.com/ppmpreetham/BUI](https://github.com/ppmpreetham/BUI) ·-License: GPL-2.0-or-later+License: GPL-3.0-or-laterdiff --git a/bindings/react/package.json b/bindings/react/package.jsonindex 6200c56..23ded9b 100644--- a/bindings/react/package.json+++ b/bindings/react/package.json@@ -49,7 +49,7 @@"devDependencies": {"react": "19.3.1"},- "license": "GPL-2.0-or-later",+ "license": "GPL-3.0-or-later","repository": {"type": "git","url": "git+https://github.com/ppmpreetham/BUI.git",diff --git a/bindings/rust/Cargo.toml b/bindings/rust/Cargo.tomlindex 9954961..cfa2244 100644--- a/bindings/rust/Cargo.toml+++ b/bindings/rust/Cargo.toml@@ -6,7 +6,7 @@ exclude = ["bench", "blenderui-table-gpui"][workspace.package]version = "0.4.0"edition = "2024"-license = "GPL-2.0-or-later"+license = "GPL-3.0-or-later"repository = "https://github.com/ppmpreetham/BUI"homepage = "https://bui.preetham.top"authors = ["BUI contributors"]diff --git a/bindings/rust/blenderui-paint-gpui/Cargo.toml b/bindings/rust/blenderui-paint-gpui/Cargo.tomlindex 97f133f..dfecc90 100644--- a/bindings/rust/blenderui-paint-gpui/Cargo.toml+++ b/bindings/rust/blenderui-paint-gpui/Cargo.toml@@ -3,7 +3,7 @@ name = "blenderui-paint-gpui"description = "A gpui PaintSink: paints the BUI view cores (table, variable list) straight into a gpui window's scene"version = "0.2.0"edition = "2024"-license = "GPL-2.0-or-later"+license = "GPL-3.0-or-later"repository = "https://github.com/ppmpreetham/BUI"homepage = "https://bui.preetham.top"authors = ["BUI contributors"]diff --git a/bindings/rust/blenderui-table-gpui/Cargo.toml b/bindings/rust/blenderui-table-gpui/Cargo.tomlindex 2c7ca85..643e0ef 100644--- a/bindings/rust/blenderui-table-gpui/Cargo.toml+++ b/bindings/rust/blenderui-table-gpui/Cargo.toml@@ -3,7 +3,7 @@ name = "blenderui-table-gpui"description = "A gpui-component-style DataTable for gpui that paints only the visible cells, on the shared blenderui-table core"version = "0.2.0"edition = "2024"-license = "GPL-2.0-or-later"+license = "GPL-3.0-or-later"repository = "https://github.com/ppmpreetham/BUI"homepage = "https://bui.preetham.top"authors = ["BUI contributors"]diff --git a/bindings/rust/blenderui-table-gpui/README.md b/bindings/rust/blenderui-table-gpui/README.mdindex 9487d43..7440af7 100644--- a/bindings/rust/blenderui-table-gpui/README.md+++ b/bindings/rust/blenderui-table-gpui/README.md@@ -90,4 +90,4 @@ node bench/run.mjs # 3 runs per configuration, mediansSee `bench/results.md` for the last run and the website's data-table page forthe method and the caveats.-License: GPL-2.0-or-later, like the rest of BUI.+License: GPL-3.0-or-later, like the rest of BUI.diff --git a/bindings/rust/blenderui-table/README.md b/bindings/rust/blenderui-table/README.mdindex 6553e80..75cacb5 100644--- a/bindings/rust/blenderui-table/README.md+++ b/bindings/rust/blenderui-table/README.md@@ -61,4 +61,4 @@ the invariants after every event, extreme sizes (`usize::MAX / 4` rows, `NaN`and infinite scrolls, zero and negative sizes), and counting-allocator teststhat a steady-state paint and a text-cache hit allocate nothing.-License: GPL-2.0-or-later, like the rest of BUI.+License: GPL-3.0-or-later, like the rest of BUI.diff --git a/bindings/rust/blenderui-vlist-gpui/Cargo.toml b/bindings/rust/blenderui-vlist-gpui/Cargo.tomlindex 1323ab5..deb76c7 100644--- a/bindings/rust/blenderui-vlist-gpui/Cargo.toml+++ b/bindings/rust/blenderui-vlist-gpui/Cargo.toml@@ -3,7 +3,7 @@ name = "blenderui-vlist-gpui"description = "A variable-height virtualized list (chat-grade) for gpui that paints only the visible items, on the shared blenderui-vlist core"version = "0.2.0"edition = "2024"-license = "GPL-2.0-or-later"+license = "GPL-3.0-or-later"repository = "https://github.com/ppmpreetham/BUI"homepage = "https://bui.preetham.top"authors = ["BUI contributors"]diff --git a/bindings/svelte/README.md b/bindings/svelte/README.mdindex a7307d7..2c87f61 100644--- a/bindings/svelte/README.md+++ b/bindings/svelte/README.md@@ -94,4 +94,4 @@ bindings (no `ResizeObserver`).Guide: [docs/javascript.md](https://github.com/ppmpreetham/BUI/blob/main/docs/javascript.md) ·Website: [bui.preetham.top](https://bui.preetham.top) ·Source: [github.com/ppmpreetham/BUI](https://github.com/ppmpreetham/BUI) ·-License: GPL-2.0-or-later+License: GPL-3.0-or-laterdiff --git a/bindings/svelte/package.json b/bindings/svelte/package.jsonindex 6562e85..7a925a0 100644--- a/bindings/svelte/package.json+++ b/bindings/svelte/package.json@@ -51,7 +51,7 @@"devDependencies": {"svelte": "5.57.3"},- "license": "GPL-2.0-or-later",+ "license": "GPL-3.0-or-later","repository": {"type": "git","url": "git+https://github.com/ppmpreetham/BUI.git",diff --git a/pyproject.toml b/pyproject.tomlindex 0d21954..f5530ce 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -12,7 +12,7 @@ dynamic = ["version"]description = "Blender's UI as a library: run tkinter apps unchanged, write Qt-style code, or use Blender components — all drawn by a fast C kit"readme = "README.md"requires-python = ">=3.11"-license = "GPL-2.0-or-later"+license = "GPL-3.0-or-later"license-files = ["LICENSE"]authors = [{ name = "BUI contributors" }]keywords = ["gui", "ui", "blender", "tkinter", "qt", "widgets", "toolkit"]diff --git a/website/WRITING.md b/website/WRITING.mdindex 81e3d28..bb30bf1 100644--- a/website/WRITING.md+++ b/website/WRITING.md@@ -626,7 +626,7 @@ Already written: `start/introduction`, `start/installation`,| `contributing.mdx` | 30 | How to help: issues, PRs, tests, the code of conduct, security reports, writing docs (link this guide). Sources: `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, `SECURITY.md` || `publishing.mdx` | 40 | Releasing to PyPI, npm and crates.io (for maintainers). Source: `docs/publishing.md` || `changelog.mdx` | 50 | A readable summary of `CHANGELOG.md` with a link to the full file; don't copy it wholesale. |-| `license-and-credits.mdx` | 60 | GPL-2.0-or-later and why, third-party licenses, acknowledgments. Source: `README.md#license` |+| `license-and-credits.mdx` | 60 | GPL-3.0-or-later (like Blender) and why, per-file headers, third-party licenses, acknowledgments. Source: `README.md#license` |## 9. Before you open a PRdiff --git a/website/src/config/site.ts b/website/src/config/site.tsindex c77e251..58febbb 100644--- a/website/src/config/site.ts+++ b/website/src/config/site.ts@@ -14,5 +14,5 @@ export const site = {npm: "https://www.npmjs.com/package/@blender-ui/react",crates: "https://crates.io/crates/blenderui",discord: "https://discord.gg/MWXZfdyM3D",- license: "GPL-2.0-or-later",+ license: "GPL-3.0-or-later",} as const;diff --git a/website/src/content/docs/project/contributing.mdx b/website/src/content/docs/project/contributing.mdxindex bddf655..8e5548a 100644--- a/website/src/content/docs/project/contributing.mdx+++ b/website/src/content/docs/project/contributing.mdx@@ -72,7 +72,7 @@ Bugs and features start with an [issue](https://github.com/ppmpreetham/BUI/issue- Python: `bindings/python/tests/`. For tkinter behaviour, add a program to the side-by-side suite (`tests/test_tk_compat.py`) that must behave exactly like the standard library.- Rust: `bindings/rust/blenderui/tests/`.- **Don't let performance regress.** The test suite enforces frame budgets. For rendering or layout changes, run the benchmark in `bindings/rust/bench/` and include before and after numbers. [Run the benchmarks](../../performance/run-benchmarks/) has the commands.-- **Keep the license header.** New files carry the SPDX header `GPL-2.0-or-later`, and contributions are accepted under that license.+- **Keep the license header.** New files carry the SPDX header `GPL-2.0-or-later` (the one Blender's files carry), and contributions are accepted under BUI's license, the GNU GPL version 3 or later.- **Update the docs.** Add your change to the Unreleased section of `CHANGELOG.md`, and to the relevant guide.- **Match the style around you.** C is formatted like Blender's sources. Rust uses `rustfmt` defaults with a maximum width of 120.diff --git a/website/src/content/docs/project/license-and-credits.mdx b/website/src/content/docs/project/license-and-credits.mdxindex fbbddb3..b51894e 100644--- a/website/src/content/docs/project/license-and-credits.mdx+++ b/website/src/content/docs/project/license-and-credits.mdx@@ -1,6 +1,6 @@---title: License and credits-description: BUI is free software under GPL-2.0-or-later, because it's built from Blender. What that means, the licenses of the parts BUI includes, and the projects it stands on.+description: BUI is free software under the GNU GPL, version 3 or later, because it's built from Blender and follows Blender's licensing. What that means, the licenses of the parts BUI includes, and the projects it stands on.section: Projectorder: 60sources: ["README.md", "LICENSE", "kit/extern/wuffs/README.bui", "kit/extern/libjpeg-turbo/README.bui", "kit/extern/libwebp/README.bui", "pyproject.toml", "bindings/rust/Cargo.toml", "bindings/node/package.json", "bindings/react/package.json", "gpu/extern/Inter-LICENSE.txt", "gpu/extern/stb_truetype.h", "gpu/extern/freetype/LICENSE.TXT", "kit/extern/nanosvg/README.blender", "bindings/imgui/extern/imgui/LICENSE.txt", "bindings/rust/blenderui-tailwind/src/theme.rs", "CONTRIBUTING.md"]@@ -8,15 +8,15 @@ sources: ["README.md", "LICENSE", "kit/extern/wuffs/README.bui", "kit/extern/libBUI is free software. You can use it, study it, change it and share it. It exists because thousands of people built Blender's interface over decades and shared it under a free license; BUI keeps that promise going.-## BUI's license: GPL-2.0-or-later+## BUI's license: GPL-3.0-or-later-BUI is derived from Blender's source code, which is licensed under the **GNU General Public License, version 2 or later**, so BUI is too. Every source file keeps its SPDX header:+BUI is derived from Blender's source code, so it follows Blender's licensing: BUI as a whole is licensed under the **GNU General Public License, version 3 or later**, and individual files may have a different, but compatible license. The files that come from Blender keep Blender's SPDX header, and new files carry the same one:```cSPDX-License-Identifier: GPL-2.0-or-later```-The Python package (`pyproject.toml`), the Rust crates (`Cargo.toml`) and the npm packages (`package.json`) all declare `GPL-2.0-or-later`. The repository's `LICENSE` file holds the text of version 3 of the GNU GPL, one of the versions that "or later" covers.+The Python package (`pyproject.toml`), the Rust crates (`Cargo.toml`) and the npm packages (`package.json`) all declare `GPL-3.0-or-later`, the license of the whole. The repository's `LICENSE` file holds the text of version 3 of the GNU GPL. A file that says `GPL-2.0-or-later` can be combined into that whole, which is how Blender itself is licensed.### What it means for you