{"id":46350362,"url":"https://github.com/djthorpe/go-wasmbuild","last_synced_at":"2026-05-05T09:33:26.462Z","repository":{"id":150368611,"uuid":"395312024","full_name":"djthorpe/go-wasmbuild","owner":"djthorpe","description":"golang wasm builder and development server","archived":false,"fork":false,"pushed_at":"2026-04-22T05:09:36.000Z","size":26795,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-22T07:03:02.319Z","etag":null,"topics":["bootstrap","dom","frontend","golang","js","wasm"],"latest_commit_sha":null,"homepage":"https://djthorpe.github.io/go-wasmbuild/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djthorpe.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,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-08-12T12:31:11.000Z","updated_at":"2026-04-22T05:06:24.000Z","dependencies_parsed_at":"2026-04-22T07:01:02.092Z","dependency_job_id":null,"html_url":"https://github.com/djthorpe/go-wasmbuild","commit_stats":null,"previous_names":["djthorpe/go-wasmbuild","djthorpe/go-dom"],"tags_count":5,"template":false,"template_full_name":"djthorpe/goapp","purl":"pkg:github/djthorpe/go-wasmbuild","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djthorpe%2Fgo-wasmbuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djthorpe%2Fgo-wasmbuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djthorpe%2Fgo-wasmbuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djthorpe%2Fgo-wasmbuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djthorpe","download_url":"https://codeload.github.com/djthorpe/go-wasmbuild/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djthorpe%2Fgo-wasmbuild/sbom","scorecard":{"id":346425,"data":{"date":"2025-08-11","repo":{"name":"github.com/djthorpe/go-dom","commit":"6f140b9a2460ff0d589e4ed91a042ac6dfd3ffe2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","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-18T07:08:32.830Z","repository_id":150368611,"created_at":"2025-08-18T07:08:32.830Z","updated_at":"2025-08-18T07:08:32.830Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32643751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"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":["bootstrap","dom","frontend","golang","js","wasm"],"created_at":"2026-03-04T23:01:45.795Z","updated_at":"2026-05-05T09:33:26.409Z","avatar_url":"https://github.com/djthorpe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-wasmbuild\n\n**wasmbuild** is a command-line tool for compiling applications from the Go programming language (\"golang\") into\n[WASM](https://webassembly.org/) so they can be run as web applications in a browser.\n\nIt provides a development environment so you can test your code as you\ndevelop it. There are packages for several\npopular JavaScript libraries, so you can - for example - create reactive web components in golang.\n\n\u003e *Experimental!* Please note this repository contains code which depends on experimental features of the Go language.\n\nThis repository provides three main components:\n\n1. **WASM Build Server** (`cmd/wasmbuild`) - A feature-rich development server for building and serving golang WASM\n   applications with live reload, error notifications, and automatic dependency watching\n2. **DOM Package** (`pkg/dom`) - A Go implementation of the Document Object Model (DOM) API that works both natively and in WASM environments\n3. **Bootstrap 5 Package** (`pkg/bootstrap`) - Go wrappers for Bootstrap 5 components\n\nThere are also some examples of developing front-end applications in the `wasm` folder.\n\n## WASM Build Server\n\nThe `wasmbuild` tool provides a modern development experience for WASM applications written in Go. Please see [the documentation for `wasmbuild`](cmd/wasmbuild/README.md) for full details.\n\nExample usage:\n\n```bash\n# Install wasmbuild\ngo install github.com/djthorpe/go-wasmbuild/cmd/wasmbuild\n\n# Start the wasmbuild server, watch for changes\nwasmbuild serve -w path/to/your/go/project\n\n# Navigate to http://localhost:8080 in your browser for development\n\n# Build a production version of your app\nwasmbuild build -o ./dist path/to/your/go/project\n```\n\n### Features\n\n- **Compile golang to WASM** - Seamlessly compiles Go applications to WebAssembly\n- **Serve WASM Applications** - Hosts your WASM apps with a built-in HTTP server, including serving the bootstrap HTML and JS needed to run Go WASM applications\n- **Automatic Dependency Discovery** - Watches all local package dependencies (no manual configuration needed)\n- **Live Reload** - Automatically recompiles and reloads the browser when source files change\n- **Real-time Error Display** - Compilation errors appear directly in the browser with full error messages\n\n## Bootstrap\n\nThe `pkg/bootstrap` package provides Go wrappers for Bootstrap 5 components, allowing you to build Bootstrap-based web applications in Go/WASM. A comprehensive demo application showcasing all components is available in `wasm/bootstrap-app`.\n\n### Bootstrap Components\n\n- Card-based layouts with headers and footers\n- Navigation bars with dropdowns and color schemes\n- Alerts, badges, buttons with icon support\n- Modals with forms and input groups\n- Accordions, pagination, progress bars\n- Toast notifications, offcanvas panels\n- Tables, tabs, breadcrumbs\n- Responsive grid system (Row/Col)\n- Form controls with validation\n- Bootstrap Icons integration\n\n## Running Tests\n\nYou can run tests both in the native go environment and in the WASM\nenvironment.  The commands for testing are:\n\n```bash\ngit clone git@github.com:djthorpe/go-wasmbuild.git\ncd go-wasmbuild\n# Test in native go environment\nmake test\n# Test in browser environment\nmake jstest\n```\n\nTesting in a WASM environment uses [wasmbrowsertest](https://github.com/agnivade/wasmbrowsertest). Please see the documentation for that package for more information on testing in the WASM environment and browser support.\n\n## License\n\nThis project is licensed under the Apache License, Version 2.0. The Apache License is a permissive free software license that:\n\n- **Allows** commercial use, modification, distribution, and private use\n- **Requires** preservation of copyright and license notices, and inclusion of a NOTICE file if one exists\n- **Provides** an express grant of patent rights from contributors to users\n- **Does not** provide trademark rights or warranties\n- **Requires** stating significant changes made to the software\n\nFor the complete license terms, see the [LICENSE](LICENSE) file or visit \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjthorpe%2Fgo-wasmbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjthorpe%2Fgo-wasmbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjthorpe%2Fgo-wasmbuild/lists"}