{"id":20196672,"url":"https://github.com/wasm-outbound-http-examples/extism-c-pdk","last_synced_at":"2026-05-10T13:21:42.914Z","repository":{"id":210966465,"uuid":"727317456","full_name":"wasm-outbound-http-examples/extism-c-pdk","owner":"wasm-outbound-http-examples","description":"Make HTTP requests from inside WASM in Extism PDK for C . Devcontainer.","archived":false,"fork":false,"pushed_at":"2024-08-12T11:57:14.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T08:14:49.841Z","etag":null,"topics":["c","clang","extism","http-client","http-request","wasi","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","language":"C","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,"publiccode":null,"codemeta":null}},"created_at":"2023-12-04T16:12:37.000Z","updated_at":"2024-08-12T11:57:18.000Z","dependencies_parsed_at":"2024-08-12T13:15:05.397Z","dependency_job_id":"07d2b5c1-3fed-47af-a398-22a8fad308b5","html_url":"https://github.com/wasm-outbound-http-examples/extism-c-pdk","commit_stats":null,"previous_names":["wasm-outbound-http-examples/extism-c-pdk"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/wasm-outbound-http-examples/extism-c-pdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fextism-c-pdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fextism-c-pdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fextism-c-pdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fextism-c-pdk/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/extism-c-pdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fextism-c-pdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27313482,"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-11-28T02:00:06.623Z","response_time":58,"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":["c","clang","extism","http-client","http-request","wasi","wasm","webassembly"],"created_at":"2024-11-14T04:25:21.226Z","updated_at":"2025-11-28T15:02:15.926Z","avatar_url":"https://github.com/wasm-outbound-http-examples.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Use Extism PDK for С to send HTTP(s) requests from inside WASM\n\nThis devcontainer is configured to provide you a wasi-sdk 20.0.\n\n[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/wasm-outbound-http-examples/extism-c-pdk)\n\n\n## Instructions for this devcontainer\n\nTested with Extism C PDK [v1.0.1](https://github.com/extism/c-pdk/tree/v1.0.1),\nExtism CLI [v1.5.2](https://github.com/extism/cli/releases/tag/v1.5.2).\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\n2. Download the `extism-pdk.h` header file, the only required part of Extism C PDK:\n\n```sh\nwget https://raw.githubusercontent.com/extism/c-pdk/v1.0.1/extism-pdk.h\n```\n\n### Building\n\n1. Compile the example:\n\n```sh\nclang -o HTTPRequestingPlugin.wasm -mexec-model=reactor httpget.c\n```\n\n### Test with Extism CLI\n\nFor testing purposes, you can invoke functions from Extism plugins with [Extism CLI](https://github.com/extism/cli).\n\n1. Install `Extism CLI` from Github releases: \n\n```sh\nwget https://github.com/extism/cli/releases/download/v1.5.2/extism-v1.5.2-linux-amd64.tar.gz -O /tmp/extism.tar.gz\ntar -xzf /tmp/extism.tar.gz -C /tmp ; mv /tmp/extism .\n```\n\nAnd now you have `extism` binary in current folder.\n\n2. Run `httpget` function from extism plugin with CLI, allowing outbound connections to all hosts:\n\n```sh\n./extism call HTTPRequestingPlugin.wasm httpget --allow-host '*' --wasi\n```\n\n### Finish\n\nPerform your own experiments if desired.\n\n---\n\nAn [additional example](deprecated-extismpointer/README.md) using low-level API is in `deprecated-extismpointer` folder.\n\nThis devcontainer is based on ideas from [dev-wasm/dev-wasm-c](https://github.com/dev-wasm/dev-wasm-c).\n\n\u003csub\u003eCreated for (wannabe-awesome) [list](https://github.com/vasilev/HTTP-request-from-inside-WASM)\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasm-outbound-http-examples%2Fextism-c-pdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwasm-outbound-http-examples%2Fextism-c-pdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasm-outbound-http-examples%2Fextism-c-pdk/lists"}