{"id":13413129,"url":"https://github.com/dtylman/gowd","last_synced_at":"2026-01-22T00:13:57.146Z","repository":{"id":44424250,"uuid":"86594955","full_name":"dtylman/gowd","owner":"dtylman","description":"Build cross platform GUI apps with GO and HTML/JS/CSS (powered by nwjs)","archived":false,"fork":false,"pushed_at":"2023-02-24T18:58:10.000Z","size":11940,"stargazers_count":430,"open_issues_count":7,"forks_count":43,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-10-25T05:22:38.851Z","etag":null,"topics":["desktop","golang","nwjs-application"],"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/dtylman.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}},"created_at":"2017-03-29T14:50:53.000Z","updated_at":"2024-09-28T00:48:30.000Z","dependencies_parsed_at":"2024-01-08T15:34:36.783Z","dependency_job_id":null,"html_url":"https://github.com/dtylman/gowd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dtylman/gowd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtylman%2Fgowd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtylman%2Fgowd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtylman%2Fgowd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtylman%2Fgowd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dtylman","download_url":"https://codeload.github.com/dtylman/gowd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtylman%2Fgowd/sbom","scorecard":{"id":358721,"data":{"date":"2025-08-11","repo":{"name":"github.com/dtylman/gowd","commit":"4271bc0536b73bfa03a6b409edd1b51ac83c68cc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Code-Review","score":2,"reason":"Found 5/21 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2023-1495 / GHSA-fxg5-wq6x-vr4w","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T10:14:56.264Z","repository_id":44424250,"created_at":"2025-08-18T10:14:56.265Z","updated_at":"2025-08-18T10:14:56.265Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28647807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["desktop","golang","nwjs-application"],"created_at":"2024-07-30T20:01:33.886Z","updated_at":"2026-01-22T00:13:57.122Z","avatar_url":"https://github.com/dtylman.png","language":"Go","funding_links":[],"categories":["GUI","Relational Databases","\u003cspan id=\"gui\"\u003eGUI\u003c/span\u003e"],"sub_categories":["Search and Analytic Databases","Advanced Console UIs","检索及分析资料库","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","SQL 查询语句构建库"],"readme":"# gowd\n\nBuild cross platform GUI apps with GO and HTML/JS/CSS (powered by [nwjs](https://nwjs.io/))\n\n[![CircleCI](https://circleci.com/gh/dtylman/gowd.svg?style=svg)](https://circleci.com/gh/dtylman/gowd)\n[![Go Report Card](https://goreportcard.com/badge/github.com/dtylman/gowd)](https://goreportcard.com/report/github.com/dtylman/gowd)\n[![GoDoc](https://godoc.org/github.com/dtylman/gowd?status.svg)](http://godoc.org/github.com/dtylman/gowd)\n\n### How to use this library:\n\n1. Download and install [nwjs](https://nwjs.io/)\n1. Install this library `go get github.com/dtylman/gowd`\n1. Clone this repo.\n1. Place `package.json`, `index.html`, `main.go` and `main.js` from [template](cmd/template/) in a new folder. \n1. `go build`\n1. Edit `main.js` and set `goBinary` to your your executable name:\n    ```javascript\n    var goBinary = \"./template\"; //or template.exe\n    ```\n1. Run `nw .`, the hello world template should appear:\n![hello-world](cmd/template/hello-world.png)\n\n### Usage\n\nSimplest \"hello world\":\n```go\n\nimport \"github.com/dtylman/gowd\"\n\nfunc main() {\n\tbody, err := gowd.ParseElement(\"\u003ch1\u003eHello world\u003c/h1\u003e\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tgowd.Run(body)\n}\n\n```\n\nAdding a button:\n\n```go\n\nimport (\n\t\"github.com/dtylman/gowd\"\n)\n\nfunc main() {\n\tbody, err := gowd.ParseElement(\"\u003ch1\u003eHello world\u003c/h1\u003e\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tp := body.AddElement(gowd.NewElement(\"p\"))\n\tbtn := p.AddElement(gowd.NewElement(\"button\"))\n\tbtn.SetText(\"Click me\")\n\tbtn.OnEvent(gowd.OnClick, btnClicked)\n\tgowd.Run(body)\n}\n\nfunc btnClicked(sender *gowd.Element, event *gowd.EventElement) {\n\tsender.SetText(\"Clicked!\")\n}\n```\n\nCreating and binding from HTML:\n```go\nimport (\n\t\"github.com/dtylman/gowd\"\n\t\"fmt\"\n)\n\nfunc main() {\n\tbody, err := gowd.ParseElement(\"\u003ch1\u003eHello world\u003c/h1\u003e\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tp := body.AddElement(gowd.NewElement(\"p\"))\n\tem := gowd.NewElementMap()\n\tp.AddHtml(`\u003cselect id=\"select1\"\u003e\n\t\t\u003coption value=\"\" disabled=\"disabled\" selected=\"selected\"\u003ePlease select a name\u003c/option\u003e\n\t\t\u003coption value=\"1\"\u003eOne\u003c/option\u003e\n\t\t\u003coption value=\"2\"\u003eTwo\u003c/option\u003e\n\t\t\u003c/select\u003e`, em)\n\tem[\"select1\"].OnEvent(gowd.OnChange, btnClicked)\n\tem[\"select1\"].Object = body\n\tgowd.Run(body)\n}\n\nfunc btnClicked(sender *gowd.Element, event *gowd.EventElement) {\n\tbody := sender.Object.(*gowd.Element)\n\tbody.AddElement(gowd.NewStyledText(fmt.Sprintf(\"Selected %s\", event.GetValue()), gowd.BoldText))\n\tbody.AddElement(gowd.NewElement(\"br\"))\n}\n```\n\nUsing bootstrap:\n\n'gowd' supports creating bootstrap elements using the [bootstrap](bootstrap/) package.\n\nFirst, add bootsrap css and js to your `index.html` file:\n```html\n    \u003cscript type=\"text/javascript\" src=\"js/jquery.min.js\"\u003e\u003c/script\u003e\n    \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"css/bootstrap.min.css\"/\u003e\n    \u003cscript type=\"text/javascript\" src=\"js/bootstrap.min.js\"\u003e\u003c/script\u003e\n```\n\nThen you can create bootsrap items:\n\n```go\n\nimport (\n\t\"github.com/dtylman/gowd\"\n\n\t\"github.com/dtylman/gowd/bootstrap\"\n\t\"time\"\n\t\"fmt\"\n)\n\nvar body *gowd.Element\n\nfunc main() {\n\t//creates a new bootstrap fluid container\n\tbody = bootstrap.NewContainer(false)\n\t// add some elements using the object model\n\tdiv := bootstrap.NewElement(\"div\", \"well\")\n\trow := bootstrap.NewRow(bootstrap.NewColumn(bootstrap.ColumnLarge, 6, div))\n\tbody.AddElement(row)\n\t// add some other elements from HTML\n\tdiv.AddHTML(`\u003cdiv class=\"dropdown\"\u003e\n\t\u003cbutton class=\"btn btn-primary dropdown-toggle\" type=\"button\" data-toggle=\"dropdown\"\u003eDropdown Example\n\t\u003cspan class=\"caret\"\u003e\u003c/span\u003e\u003c/button\u003e\n\t\u003cul class=\"dropdown-menu\" id=\"dropdown-menu\"\u003e\n\t\u003cli\u003e\u003ca href=\"#\"\u003eHTML\u003c/a\u003e\u003c/li\u003e\n\t\u003cli\u003e\u003ca href=\"#\"\u003eCSS\u003c/a\u003e\u003c/li\u003e\n\t\u003cli\u003e\u003ca href=\"#\"\u003eJavaScript\u003c/a\u003e\u003c/li\u003e\n\t\u003c/ul\u003e\n\t\u003c/div\u003e`, nil)\n\t// add a button to show a progress bar\n\tbtn := bootstrap.NewButton(bootstrap.ButtonPrimary, \"Start\")\n\tbtn.OnEvent(gowd.OnClick, btnClicked)\n\trow.AddElement(bootstrap.NewColumn(bootstrap.ColumnLarge, 4, bootstrap.NewElement(\"div\", \"well\", btn)))\n\n\t//start the ui loop\n\tgowd.Run(body)\n}\n\n// happens when the 'start' button is clicked\nfunc btnClicked(sender *gowd.Element, event *gowd.EventElement) {\n\t// adds a text and progress bar to the body \n\ttext := body.AddElement(gowd.NewStyledText(\"Working...\", gowd.BoldText))\n\tprogressBar := bootstrap.NewProgressBar()\n\tbody.AddElement(progressBar.Element)\n\t\n\t// makes the body stop responding to user events\n\tbody.Disable()\n\t\n\t// clean up - remove the added elements\n\tdefer func() {\n\t\tbody.RemoveElement(text)\n\t\tbody.RemoveElement(progressBar.Element)\n\t\tbody.Enable()\n\t}()\n\n\t// render the progress bar\n\tfor i := 0; i \u003c= 123; i++ {\n\t\tprogressBar.SetValue(i, 123)\n\t\ttext.SetText(fmt.Sprintf(\"Working %v\", i))\n\t\ttime.Sleep(time.Millisecond * 20)\n\t\t// this will cause the body to be refreshed\n\t\tbody.Render()\n\t}\n\n}\n```\n\nThis will yield the following app:\n\n![Simple](docs/template.gif)\n\nMore a more advanced usage, see the [Todo](cmd/todomvc/readme.md) sample\n\n![TodoMVC](docs/todomvc.gif)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtylman%2Fgowd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdtylman%2Fgowd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtylman%2Fgowd/lists"}