{"id":17217042,"url":"https://github.com/akhenakh/wasm-filter-go","last_synced_at":"2025-03-25T13:44:35.632Z","repository":{"id":249208888,"uuid":"830774393","full_name":"akhenakh/wasm-filter-go","owner":"akhenakh","description":"experiments with WASM Envoy and Go","archived":false,"fork":false,"pushed_at":"2024-07-26T17:39:29.000Z","size":245,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T12:46:51.005Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akhenakh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-07-19T01:16:51.000Z","updated_at":"2024-07-26T17:39:32.000Z","dependencies_parsed_at":"2024-12-03T09:53:51.321Z","dependency_job_id":null,"html_url":"https://github.com/akhenakh/wasm-filter-go","commit_stats":null,"previous_names":["akhenakh/wasm-filter-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fwasm-filter-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fwasm-filter-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fwasm-filter-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhenakh%2Fwasm-filter-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akhenakh","download_url":"https://codeload.github.com/akhenakh/wasm-filter-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245474943,"owners_count":20621503,"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":[],"created_at":"2024-10-15T03:43:08.238Z","updated_at":"2025-03-25T13:44:35.605Z","avatar_url":"https://github.com/akhenakh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WASM go Filter for Envoy\n\n## Build\n\n```\ntinygo build -o plugin.wasm -scheduler=none -target=wasi ./main.go\n```\n## Testing\n\n```\nenvoy -c ./envoy.yaml --concurrency 2 --log-format '%v' \n```\n## Optimization GC\n\nMemory leaks exist in the Wasm plug-in for an Envoy proxy compiled by using TinyGo. The proxy-wasm-go-sdk community recommends that you use nottinygc for compilation optimization. Perform the following steps to use nottinygc for compilation optimization:\n\nAdd the following import code to the beginning of the main.go file:\n\n```go\nimport _ \"github.com/wasilibs/nottinygc\"\n```\n\nIf no dependencies are found, you can run the go mod tidy command to automatically download the dependencies.\n\nRun the following command to compile the code:\n\n```sh\ntinygo build -o plugin.wasm -gc=custom -tags='custommalloc nottinygc_envoy'  -target=wasi -scheduler=none main.go\n```\n\nThe preceding command sets the -gc and -tags parameters. For more information, see nottinygc. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhenakh%2Fwasm-filter-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakhenakh%2Fwasm-filter-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhenakh%2Fwasm-filter-go/lists"}