{"id":22204139,"url":"https://github.com/theseyan/bunview","last_synced_at":"2025-08-25T13:04:15.429Z","repository":{"id":65128717,"uuid":"582228249","full_name":"theseyan/bunview","owner":"theseyan","description":"Feature-complete webview library for Bun","archived":false,"fork":false,"pushed_at":"2022-12-30T06:32:41.000Z","size":94,"stargazers_count":78,"open_issues_count":3,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-03T03:17:48.491Z","etag":null,"topics":["bun","desktop-app","gui","webview"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/theseyan.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}},"created_at":"2022-12-26T06:35:12.000Z","updated_at":"2025-06-16T05:20:02.000Z","dependencies_parsed_at":"2022-12-31T00:05:38.567Z","dependency_job_id":null,"html_url":"https://github.com/theseyan/bunview","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/theseyan/bunview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theseyan%2Fbunview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theseyan%2Fbunview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theseyan%2Fbunview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theseyan%2Fbunview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theseyan","download_url":"https://codeload.github.com/theseyan/bunview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theseyan%2Fbunview/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267306715,"owners_count":24067035,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"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":["bun","desktop-app","gui","webview"],"created_at":"2024-12-02T17:16:11.138Z","updated_at":"2025-07-27T05:32:44.908Z","avatar_url":"https://github.com/theseyan.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cbr\u003e\n\u003ch1\u003ebunview\u003c/h1\u003e\u003cbr\u003e\n\u003ci\u003e\nFeature-complete \u003ca href=\"https://github.com/webview/webview\"\u003ewebview\u003c/a\u003e bindings for \u003ca href=\"https://bun.sh\"\u003eBun\u003c/a\u003e\n\u003c/i\u003e\n\u003cbr\u003e\u003cbr\u003e\n\u003c!--\u003cimg alt=\"GitHub Workflow Status\" src=\"https://img.shields.io/github/workflow/status/theseyan/bkg/CI\"\u003e\n\u003cbr\u003e\u003cbr\u003e\n--\u003e\n\u003c/div\u003e\n\n![Example Image](misc/bunview_intro.png)\n\nBunview is a cross-platform library to build web-based GUIs for desktop applications.\n\n## Installation\n\n```\nbun add bunview\n```\n\n### Linux Prerequisites\nThe GTK and WebKit2GTK libraries are required for development and distribution. You need to check your package repositories regarding how to install those.\n\nOn Debian-based systems:\n\n* Packages:\n    * Development: `apt install libgtk-3-dev libwebkit2gtk-4.0-dev`\n    * Production: `apt install libgtk-3-0 libwebkit2gtk-4.0-37`\n\n## Usage\n\n```js\nimport {Window, SizeHint} from \"bunview\";\n\nlet window = new Window(true);\n\nwindow.on('ready', () =\u003e {\n    window.setTitle('Bunview');\n    window.navigate(\"https://bun.sh\");\n});\n```\n\nThere is no documentation right now, hence the best place to start is [examples](https://github.com/theseyan/bunview/blob/main/examples).\n\n## Limitations\n\n- Setting `MIN` and `MAX` window size hints on macOS does not work, you must use either `FIXED` or `NONE`\n- `Window.init` to inject Javascript preload does not work correctly on macOS\n\n# Building from source\nBunview is written in Zig and compilation is fairly straightforward. The prerequisites are:\n- Zig version [0.11.0-dev.944+a193ec432](https://ziglang.org/builds/zig-0.11.0-dev.944+a193ec432.tar.xz)\n\n```bash\n# Clone the repository and update submodules\ngit clone https://github.com/theseyan/bunview \u0026\u0026 cd bunview\ngit submodule update --init --recursive\n\n# Build\nzig build -Drelease-fast\n\n# Move to build/ folder. Your binary name will differ based on OS/CPU.\nmkdir build \u0026\u0026 mv zig-out/bin/bunview-x86_64-linux ./build/bunview-x86_64-linux\n\n# Run example (must have Bun installed)\nbun examples/main.js\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheseyan%2Fbunview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheseyan%2Fbunview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheseyan%2Fbunview/lists"}