{"id":15935730,"url":"https://github.com/zephraph/webview","last_synced_at":"2025-09-04T03:37:26.896Z","repository":{"id":257669585,"uuid":"858373689","full_name":"zephraph/webview","owner":"zephraph","description":"A light, cross-platform library for building web-based desktop apps with Deno or Python.","archived":false,"fork":false,"pushed_at":"2025-08-21T22:39:42.000Z","size":426,"stargazers_count":81,"open_issues_count":22,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-22T00:37:37.509Z","etag":null,"topics":["deno","python","webview"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/zephraph.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-09-16T19:29:46.000Z","updated_at":"2025-08-21T12:04:53.000Z","dependencies_parsed_at":"2024-11-08T03:27:06.749Z","dependency_job_id":"5d643dd8-61e9-4e9d-9151-e2cc1765fd6d","html_url":"https://github.com/zephraph/webview","commit_stats":{"total_commits":64,"total_committers":3,"mean_commits":"21.333333333333332","dds":0.15625,"last_synced_commit":"f4edce0dbc9054702605fc9e46fcfbb0d0735379"},"previous_names":["zephraph/webview"],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/zephraph/webview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fwebview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fwebview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fwebview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fwebview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zephraph","download_url":"https://codeload.github.com/zephraph/webview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fwebview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273548259,"owners_count":25125253,"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-09-04T02:00:08.968Z","response_time":61,"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":["deno","python","webview"],"created_at":"2024-10-07T04:01:38.063Z","updated_at":"2025-09-04T03:37:26.821Z","avatar_url":"https://github.com/zephraph.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @justbe/webview\n\nA light, cross-platform library for building web-based desktop apps. The project consists of a Rust backend that provides the core webview functionality, with multiple client libraries available for different languages and runtimes.\n\n## Available Clients\n\n- [Deno Client](src/clients/deno/README.md) - Build desktop apps using Deno and TypeScript\n- [Python Client](src/clients/python/README.md) - Build desktop apps using Python\n\n## Architecture\n\nThis project is structured into two main components:\n\n1. A Rust backend that provides the core webview functionality, compiled into a native binary for each platform\n2. Client libraries that interface with the binary, available for multiple languages\n\nEach client library handles binary management, communication with the webview process over stdio (standard input/output), and provides a idiomatic API for its respective language/runtime.\n\n## Binary Management\n\nWhen using any of the clients, they will check for the required binary for interfacing with the OS's webview. If it doesn't exist, it downloads it to a cache directory and executes it. The specific behavior and permissions required may vary by client - please see the respective client's documentation for details.\n\n### Using a Custom Binary\n\nAll clients support using a custom binary via the `WEBVIEW_BIN` environment variable. If present and allowed, this will override the default binary resolution process in favor of the path specified.\n\n## Examples\n\n\u003cdetails\u003e\n\u003csummary\u003eDeno Example\u003c/summary\u003e\n\n```typescript\nimport { createWebView } from \"jsr:@justbe/webview\";\n\nusing webview = await createWebView({\n  title: \"Example\",\n  html: \"\u003ch1\u003eHello, World!\u003c/h1\u003e\",\n  devtools: true\n});\n\nwebview.on(\"started\", async () =\u003e {\n  await webview.openDevTools();\n  await webview.eval(\"console.log('This is printed from eval!')\");\n});\n\nawait webview.waitUntilClosed();\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003ePython Example\u003c/summary\u003e\n\n```python\nimport asyncio\nfrom justbe_webview import WebView, WebViewOptions, WebViewContentHtml, WebViewNotification\n\nasync def main():\n    config = WebViewOptions(\n        title=\"Example\",\n        load=WebViewContentHtml(html=\"\u003ch1\u003eHello, World!\u003c/h1\u003e\"),\n        devtools=True\n    )\n\n    async with WebView(config) as webview:\n        async def handle_start(event: WebViewNotification):\n            await webview.open_devtools()\n            await webview.eval(\"console.log('This is printed from eval!')\")\n\n        webview.on(\"started\", handle_start)\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n\u003c/details\u003e\n\n## Contributing\n\nThis project uses [mise](https://mise.jdx.dev/) to manage runtimes (like deno, python, rust) and run scripts. If you'd like to contribute, you'll need to install it. \n\nUse the `mise tasks` command to see what you can do. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephraph%2Fwebview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzephraph%2Fwebview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephraph%2Fwebview/lists"}