{"id":13740506,"url":"https://github.com/inkeliz/gowebview","last_synced_at":"2025-06-30T10:36:41.127Z","repository":{"id":45768266,"uuid":"310125578","full_name":"inkeliz/gowebview","owner":"inkeliz","description":"Simple WebView for Golang, avoiding CGO for Windows.","archived":false,"fork":false,"pushed_at":"2023-10-04T05:16:08.000Z","size":2763,"stargazers_count":53,"open_issues_count":8,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T23:56:30.266Z","etag":null,"topics":["golang","webview"],"latest_commit_sha":null,"homepage":"","language":"Go","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/inkeliz.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2020-11-04T21:50:30.000Z","updated_at":"2024-11-25T15:11:13.000Z","dependencies_parsed_at":"2024-06-18T21:36:19.176Z","dependency_job_id":"9fed72bc-32be-49db-a29b-5ea83bb61ec0","html_url":"https://github.com/inkeliz/gowebview","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/inkeliz/gowebview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkeliz%2Fgowebview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkeliz%2Fgowebview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkeliz%2Fgowebview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkeliz%2Fgowebview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inkeliz","download_url":"https://codeload.github.com/inkeliz/gowebview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkeliz%2Fgowebview/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262756862,"owners_count":23359597,"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":["golang","webview"],"created_at":"2024-08-03T04:00:48.793Z","updated_at":"2025-06-30T10:36:41.098Z","avatar_url":"https://github.com/inkeliz.png","language":"Go","funding_links":[],"categories":["Gio Core"],"sub_categories":["Community Libraries"],"readme":"# gowebview\n\n[![GoDoc](https://godoc.org/github.com/inkeliz/gowebview?status.svg)](https://godoc.org/github.com/inkeliz/gowebview)\n[![Go Report Card](https://goreportcard.com/badge/github.com/zserge/webview)](https://goreportcard.com/report/github.com/inkeliz/gowebview)\n\nA small WebView without CGO, based on [webview/webview](https://github.com/webview/webview). The main goal was to avoid CGO and make it possible to embed the DLLs. Instead of relying directly on CGO as webview/webview, the inkeliz/gowebview uses \n`golang.org/x/sys/windows`, for Windows.\n\n## Why use inkeliz/gowebview?\n\n- If you like to avoid CGO on Windows.\n- If you like to have a single `.exe`.\n\n## Why use [webview/webview](https://github.com/webview/webview)?\n\n- If you need support for Darwin/Linux.\n- If you need binds from Javascript to Golang.\n- If you like to use a more battle-tested and stable library.\n\n### Getting started\n\nImport the package and start using it:\n\n```go\npackage main\n\nimport \"github.com/inkeliz/gowebview\"\n\nfunc main() {\n\tw, err := gowebview.New(\u0026gowebview.Config{URL: \"https://google.com\", WindowConfig: \u0026gowebview.WindowConfig{Title: \"Hello World\"}})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tdefer w.Destroy()\n\tw.Run()\n}\n\n```\n\nIt will open the `https://google.com` webpage, without any additional setup.\n\n## TODO\n\n1. ~~Add support to programmatically allow \"locahost connections\".~~\n\n    \u003e ~~Currently you must run `CheckNetIsolation.exe LoopbackExempt -a -n=\"Microsoft.Win32WebViewHost_cw5n1h2txyewy\"` externally.~~\n\n    \u003e DONE. It's now implemented for Windows, if you use `Config.TransportConfig{IgnoreNetworkIsolation: true}`. You don't need to execute the sofware as admin, it'll be request only when needed.                                                                                                                                                                                                                                          \n\n2. Improve support for Android (currently it needs [Gio](https://gioui.org))\n\n    \u003e Currently it's supported, but needs Gio to works.\n\n3. Remove dependency of `webview.dll` by calling `WebView2Loader.dll` directly.\n\n    \u003e Currently, it needs to extract both `.dll`.\n\n3. Improve security by restricting where look for DLL.\n\n    \u003e Currently gowebview adds a new filepath on %PATH%)\n \n3. Improve error returns.\n\n    \u003e Currently it returns errors directly from `os`, `windows` and `ioutil` libraries.\n\n## License\n\nCode is distributed under MIT license, feel free to use it in your proprietary\nprojects as well.\n\n## Credits\n\nIt's highly based on [webview/webview](https://github.com/webview/webview) and [webview/webview_csharp](https://github.com/webview/webview_csharp). The idea of avoid CGO was inspired by [Ebiten](https://github.com/hajimehoshi/ebiten).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkeliz%2Fgowebview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finkeliz%2Fgowebview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkeliz%2Fgowebview/lists"}