{"id":50512533,"url":"https://github.com/cppcoffee/gpui-demo","last_synced_at":"2026-06-02T21:03:42.109Z","repository":{"id":354178403,"uuid":"1221647793","full_name":"cppcoffee/gpui-demo","owner":"cppcoffee","description":"macOS GPUI demo","archived":false,"fork":false,"pushed_at":"2026-04-27T12:40:20.000Z","size":270,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-27T14:26:22.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cppcoffee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-26T13:56:54.000Z","updated_at":"2026-04-27T12:40:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cppcoffee/gpui-demo","commit_stats":null,"previous_names":["cppcoffee/gpui-demo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cppcoffee/gpui-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fgpui-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fgpui-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fgpui-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fgpui-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cppcoffee","download_url":"https://codeload.github.com/cppcoffee/gpui-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Fgpui-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33835766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-02T21:03:41.993Z","updated_at":"2026-06-02T21:03:42.104Z","avatar_url":"https://github.com/cppcoffee.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPUI Demo\n\nA minimal Rust + Metal UI demo inspired by Zed's GPUI architecture.\n\n![demo](./assets/demo.png)\n\n## Overview\n\nThis demo opens a macOS window with a GPU-rendered button and FPS overlay. It shows the core UI flow used by GPUI-style systems:\n\n```text\nElement Tree -\u003e Layout -\u003e Prepaint -\u003e Paint -\u003e Scene -\u003e Metal Renderer\n```\n\n## Highlights\n\n- Metal instanced quad rendering\n- SDF rounded rectangles and borders\n- Simple flexbox-style layout\n- Interactive button hover and press states\n- VSync-driven render loop with `CVDisplayLink`\n- Small module structure modeled after Zed GPUI concepts\n\n## Run\n\nRequires macOS with Metal support.\n\n```bash\ncargo run\n```\n\n## Main Modules\n\n- `element`, `div`, `button`, `text` - UI elements\n- `layout`, `style`, `geometry` - layout and styling primitives\n- `scene`, `renderer`, `shaders` - rendering pipeline\n- `metal_view`, `display_link` - macOS window and render loop\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcppcoffee%2Fgpui-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcppcoffee%2Fgpui-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcppcoffee%2Fgpui-demo/lists"}