{"id":20196686,"url":"https://github.com/wasm-outbound-http-examples/go-plugin","last_synced_at":"2025-12-01T14:07:17.851Z","repository":{"id":222345005,"uuid":"756953209","full_name":"wasm-outbound-http-examples/go-plugin","owner":"wasm-outbound-http-examples","description":"Make HTTP requests from inside WASM using knqyf263/go-plugin . Devcontainer.","archived":false,"fork":false,"pushed_at":"2024-02-13T17:16:00.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T19:40:23.921Z","etag":null,"topics":["go-plugin","golang","http-client","http-request","tinygo","wasi","wasm","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/wasm-outbound-http-examples.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}},"created_at":"2024-02-13T16:17:51.000Z","updated_at":"2024-07-24T08:36:21.000Z","dependencies_parsed_at":"2024-02-13T18:44:26.979Z","dependency_job_id":null,"html_url":"https://github.com/wasm-outbound-http-examples/go-plugin","commit_stats":null,"previous_names":["wasm-outbound-http-examples/go-plugin"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fgo-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fgo-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fgo-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fgo-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wasm-outbound-http-examples","download_url":"https://codeload.github.com/wasm-outbound-http-examples/go-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241629769,"owners_count":19993710,"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":["go-plugin","golang","http-client","http-request","tinygo","wasi","wasm","webassembly"],"created_at":"2024-11-14T04:25:23.980Z","updated_at":"2025-12-01T14:07:12.825Z","avatar_url":"https://github.com/wasm-outbound-http-examples.png","language":"Go","readme":"# Use knqyf263/go-plugin to send HTTP(s) requests from inside WASM\n\nThis devcontainer is configured to provide you a [knqyf263/go-plugin](https://github.com/knqyf263/go-plugin)'s CLI tool installation,\nGo and TinyGo toolchains, and a `protobuf-compiler`.\n\n[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/wasm-outbound-http-examples/go-plugin)\n\nThe sample code and following instructions are partially based on [go-plugin's examples](https://github.com/knqyf263/go-plugin/tree/v0.8.0/examples/)\nand [go-plugin's tutorial](https://github.com/knqyf263/go-plugin/blob/v0.8.0/README.md#tutorial).\n\n## Instructions for this devcontainer\n\nTested with `protoc-gen-go-plugin` [0.8.0](https://github.com/knqyf263/go-plugin/releases/tag/v0.8.0), \n`protobuf-compiler` 3.12.4, Go 1.21.7, TinyGo [0.30.0](https://github.com/tinygo-org/tinygo/releases/tag/v0.30.0).\n\n### Preparation\n\n1. Open this repo in devcontainer, e.g. using Github Codespaces.\n   Type or copy/paste following commands to devcontainer's terminal.\n\n### Building\n\n1. Generate the SDK codes based on interfaces declared in `protobufs/myschema.proto` file:\n\n```sh\ncd protobufs\nprotoc --go-plugin_out=. --go-plugin_opt=paths=source_relative myschema.proto\n```\n\nThis will generate 4 new .go files in `protobufs` directory.\n\n2. Compile the plugin sample:\n\n```sh\ncd ../plugin\ntinygo build -o plugin.wasm -scheduler=none -target=wasi --no-debug plugin.go\n```\n\nThis will generate `plugin.wasm` in `plugin` directory.\n\n3. Run the main (\"host\") program, which makes use of the `plugin.wasm`:\n\n```sh\ncd ..\ngo run main.go\n```\n\n### Finish\n\nPerform your own experiments if desired.\n\n---\n\n\u003csub\u003eCreated for (wannabe-awesome) [list](https://github.com/vasilev/HTTP-request-from-inside-WASM)\u003c/sub\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasm-outbound-http-examples%2Fgo-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwasm-outbound-http-examples%2Fgo-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasm-outbound-http-examples%2Fgo-plugin/lists"}