{"id":16601196,"url":"https://github.com/syumai/go-hyperscript","last_synced_at":"2026-03-03T04:40:18.786Z","repository":{"id":55003404,"uuid":"147108536","full_name":"syumai/go-hyperscript","owner":"syumai","description":"hyperscript implementation in Go.","archived":false,"fork":false,"pushed_at":"2021-01-16T03:31:38.000Z","size":4472,"stargazers_count":19,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-11T09:11:43.537Z","etag":null,"topics":["golang","hyperscript","webassembly"],"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/syumai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-02T17:51:16.000Z","updated_at":"2024-10-31T23:16:58.000Z","dependencies_parsed_at":"2022-08-14T08:50:13.883Z","dependency_job_id":null,"html_url":"https://github.com/syumai/go-hyperscript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/syumai/go-hyperscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syumai%2Fgo-hyperscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syumai%2Fgo-hyperscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syumai%2Fgo-hyperscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syumai%2Fgo-hyperscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syumai","download_url":"https://codeload.github.com/syumai/go-hyperscript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syumai%2Fgo-hyperscript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30032063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T03:27:35.548Z","status":"ssl_error","status_checked_at":"2026-03-03T03:27:09.213Z","response_time":61,"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":["golang","hyperscript","webassembly"],"created_at":"2024-10-12T00:17:10.532Z","updated_at":"2026-03-03T04:40:18.765Z","avatar_url":"https://github.com/syumai.png","language":"Go","readme":"# go-hyperscript\n\n- Simple [hyperscript](https://github.com/hyperhype/hyperscript) like script implemented in Go.\n- You can use this package in these ways:\n  - Write HTML using Go function.\n  - Update existing DOM based on previous VNode tree.\n\n## Usage\n\n### Write HTML using Go function\n\n```go\nfunc main() {\n\tnode := h.H(\"div\", nil,\n\t\th.H(\"h1\", nil, h.Text(\"Example App\")),\n\t\th.H(\"strong\", nil,\n\t\t\th.H(\"font\", h.Object{\"color\": \"red\"}, h.Text(\"Hello, world!\")),\n\t\t),\n\t\t...\n\t)\n\tbody := js.Global().Get(\"document\").Get(\"body\")\n\tdom.NewRenderer().Render(node, body)\n}\n```\n\n#### Example\n\n- https://syumai.github.io/go-hyperscript/examples/basic/\n  - [Code](https://github.com/syumai/go-hyperscript/tree/master/examples/basic/main.go)\n\n### Update DOM\n\n- Now go-hyperscript provides basic support for reusing and updating existing DOM.\n- To use this function, please render multiple times using same renderer.\n  - Hook state's changes (used in: [Simple ToDo list example](https://syumai.github.io/go-hyperscript/examples/simpletodo/))\n  - Use main loop (used in: [Counter example](https://syumai.github.io/go-hyperscript/examples/counter/))\n\n#### Examples\n\n- [Simple ToDo list example](https://syumai.github.io/go-hyperscript/examples/simpletodo/)\n\n  - [Code](https://github.com/syumai/go-hyperscript/tree/master/examples/simpletodo/main.go)\n\n- [Counter example](https://syumai.github.io/go-hyperscript/examples/counter/)\n  - [Code](https://github.com/syumai/go-hyperscript/tree/master/examples/counter/main.go)\n\n## Environment\n\n- go 1.13\n\n## Development\n\n```console\nmake build\nmake test\n```\n\n## Author\n\nsyumai\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyumai%2Fgo-hyperscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyumai%2Fgo-hyperscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyumai%2Fgo-hyperscript/lists"}