{"id":15168679,"url":"https://github.com/denosaurs/pane","last_synced_at":"2025-10-01T02:31:02.630Z","repository":{"uuid":"313162734","full_name":"denosaurs/pane","owner":"denosaurs","description":"🖼️ A deno module providing bindings for cross-platform windowing","archived":true,"fork":false,"pushed_at":"2021-05-21T11:55:07.000Z","size":219,"stargazers_count":65,"open_issues_count":3,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-03-26T01:27:27.603Z","etag":null,"topics":["deno","deno-plugin","deno-plugins","gui","pane","webgpu","winit"],"latest_commit_sha":null,"homepage":"https://deno.land/x/pane","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denosaurs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"open_collective":"denosaurs","github":"denosaurs"}},"created_at":"2020-11-16T01:41:11.000Z","updated_at":"2023-12-14T14:31:01.000Z","dependencies_parsed_at":"2022-08-21T06:10:46.742Z","dependency_job_id":null,"html_url":"https://github.com/denosaurs/pane","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fpane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fpane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fpane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fpane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denosaurs","download_url":"https://codeload.github.com/denosaurs/pane/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":193001155,"owners_count":12776533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["deno","deno-plugin","deno-plugins","gui","pane","webgpu","winit"],"created_at":"2024-09-27T06:40:22.210Z","updated_at":"2025-10-01T02:30:57.331Z","avatar_url":"https://github.com/denosaurs.png","language":"Rust","funding_links":["https://opencollective.com/denosaurs","https://github.com/sponsors/denosaurs"],"categories":[],"sub_categories":[],"readme":"# pane\n\n[![Tags](https://img.shields.io/github/release/denosaurs/pane)](https://github.com/denosaurs/pane/releases)\n[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/pane/mod.ts)\n[![deno](https://github.com/denosaurs/pane/actions/workflows/deno.yml/badge.svg)](https://github.com/denosaurs/pane/actions/workflows/deno.yml)\n[![release](https://github.com/denosaurs/pane/actions/workflows/release.yml/badge.svg)](https://github.com/denosaurs/pane/actions/workflows/release.yml)\n[![rust](https://github.com/denosaurs/pane/actions/workflows/rust.yml/badge.svg)](https://github.com/denosaurs/pane/actions/workflows/rust.yml)\n[![License](https://img.shields.io/github/license/denosaurs/pane)](https://github.com/denosaurs/pane/blob/master/LICENSE)\n[![Dependencies](https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fdep-count%2Fhttps%2Fdeno.land%2Fx%2Fpane%2Fmod.ts)](https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/pane/mod.ts)\n[![Dependency freshness](https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fupdates%2Fhttps%2Fdeno.land%2Fx%2Fpane%2Fmod.ts)](https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/pane/mod.ts)\n\n---\n\n\u003e ⚠️ Work in progress. Expect breaking changes.\n\n---\n\nPane provides bindings for rust crate\n[winit](https://github.com/rust-windowing/winit) in preparation for\n[webgpu](https://github.com/denoland/deno/pull/7977) integration in deno. This\nmodule will provide a way of getting a\n[`raw_window_handle` resource](https://github.com/denoland/deno/issues/7863#issuecomment-706897139)\nto provide to deno and interaction with the window. Pane no longer provides\nbindings to [pixels](https://github.com/parasyte/pixels) as a way of drawing\nframebuffers onto the window, instead use WebGPU.\n\n## Example\n\n### Singe window\n\n```typescript\nimport { PaneEventLoop, PaneWindow } from \"https://deno.land/x/pane/mod.ts\";\n\nconst eventLoop = new PaneEventLoop();\nconst _pane = new PaneWindow(eventLoop);\n\nsetInterval(() =\u003e {\n  for (const event of eventLoop.step()) {\n    if (\n      event.type === \"windowEvent\" \u0026\u0026\n      event.value.event.type === \"closeRequested\"\n    ) {\n      Deno.exit();\n    }\n  }\n}, 0);\n```\n\n### Multiple windows\n\n```typescript\nimport { PaneEventLoop, PaneWindow } from \"https://deno.land/x/pane/mod.ts\";\n\nconst eventLoop = new PaneEventLoop();\nconst _pane1 = new PaneWindow(eventLoop);\nconst _pane2 = new PaneWindow(eventLoop);\n\nsetInterval(() =\u003e {\n  for (const event of eventLoop.step()) {\n    if (\n      event.type === \"windowEvent\" \u0026\u0026\n      event.value.event.type === \"closeRequested\"\n    ) {\n      Deno.exit();\n    }\n  }\n}, 0);\n```\n\n## Maintainers\n\n- Elias Sjögreen ([@eliassjogreen](https://github.com/eliassjogreen))\n\n## Permission Table\n\n| Permission Needed | Required | Reason                                |\n| ----------------- | -------- | ------------------------------------- |\n| `--allow-env`     | yes      | For development variables.            |\n| `--allow-net`     | yes      | For getting the prebuild binaries.    |\n| `--allow-read`    | yes      | For reading the library.              |\n| `--allow-plugin`  | yes      | It's a plugin, what do you expect.    |\n| `--unstable`      | yes      | It's unstable because it is a plugin. |\n\n## Other\n\n### Related\n\n- [winit](https://github.com/rust-windowing/winit)\n\n### Contribution\n\nPull request, issues and feedback are very welcome. Code style is formatted with\n`deno fmt` and commit messages are done following Conventional Commits spec.\n\n### Licence\n\nCopyright 2020-2021, the denosaurs team. All rights reserved. MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenosaurs%2Fpane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenosaurs%2Fpane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenosaurs%2Fpane/lists"}