{"id":13489675,"url":"https://github.com/wapc/wapc-guest-tinygo","last_synced_at":"2025-10-07T04:09:01.621Z","repository":{"id":45226616,"uuid":"244669414","full_name":"wapc/wapc-guest-tinygo","owner":"wapc","description":"SDK for creating waPC WebAssembly Guest Modules in TinyGo","archived":false,"fork":false,"pushed_at":"2023-03-31T06:13:41.000Z","size":24,"stargazers_count":20,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-01-25T03:14:31.778Z","etag":null,"topics":["sdk","tinygo","wasm","webassembly"],"latest_commit_sha":null,"homepage":null,"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/wapc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2020-03-03T15:16:49.000Z","updated_at":"2024-04-14T23:51:58.191Z","dependencies_parsed_at":"2024-04-14T23:51:55.361Z","dependency_job_id":"1a20a0b9-d2b0-466a-973b-998cd0aa10c9","html_url":"https://github.com/wapc/wapc-guest-tinygo","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/wapc/wapc-guest-tinygo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wapc%2Fwapc-guest-tinygo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wapc%2Fwapc-guest-tinygo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wapc%2Fwapc-guest-tinygo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wapc%2Fwapc-guest-tinygo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wapc","download_url":"https://codeload.github.com/wapc/wapc-guest-tinygo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wapc%2Fwapc-guest-tinygo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278717428,"owners_count":26033542,"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-10-07T02:00:06.786Z","response_time":59,"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":["sdk","tinygo","wasm","webassembly"],"created_at":"2024-07-31T19:00:33.016Z","updated_at":"2025-10-07T04:09:01.579Z","avatar_url":"https://github.com/wapc.png","language":"Go","funding_links":[],"categories":["waPC - WebAssembly Procedure Calls"],"sub_categories":[],"readme":"# waPC Guest Library for TinyGo\n\nThis is the TinyGo implementation of the **waPC** standard for WebAssembly guest modules. It allows any waPC-compliant WebAssembly host to invoke to procedures inside a TinyGo compiled guest and similarly for the guest to invoke procedures exposed by the host.\n\n## Example\nThe following is a simple example of synchronous, bi-directional procedure calls between a WebAssembly host runtime and the guest module.\n\n\u003e It is recommended to use the latest versions Go and TinyGo\n\nFor TinyGo 0.35+\n\n```go\npackage main\n\nimport (\n\twapc \"github.com/wapc/wapc-guest-tinygo\"\n)\n\n//go:wasmexport wapc_init\nfunc Initialize() {\n\twapc.RegisterFunctions(wapc.Functions{\n\t\t\"hello\": hello,\n\t})\n}\n\nfunc hello(payload []byte) ([]byte, error) {\n\twapc.HostCall(\"myBinding\", \"sample\", \"hello\", []byte(\"Simon\"))\n\treturn []byte(\"Hello\"), nil\n}\n```\n\n```sh\ntinygo build -o example/hello.wasm -scheduler=none --no-debug -target=wasip1 -buildmode=c-shared example/hello.go\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwapc%2Fwapc-guest-tinygo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwapc%2Fwapc-guest-tinygo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwapc%2Fwapc-guest-tinygo/lists"}