{"id":20196682,"url":"https://github.com/wasm-outbound-http-examples/extism-dotnet-pdk","last_synced_at":"2026-05-02T20:40:37.734Z","repository":{"id":245924948,"uuid":"706762577","full_name":"wasm-outbound-http-examples/extism-dotnet-pdk","owner":"wasm-outbound-http-examples","description":"Make HTTP requests from inside WASM in Extism PDK for .Net . Devcontainer.","archived":false,"fork":false,"pushed_at":"2024-06-24T19:40:05.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T18:03:21.253Z","etag":null,"topics":["csharp","dotnet","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-10-18T15:10:33.000Z","updated_at":"2024-06-24T19:40:08.000Z","dependencies_parsed_at":"2024-06-24T21:31:47.813Z","dependency_job_id":"e8f3a113-378f-485f-b207-6913afe085e5","html_url":"https://github.com/wasm-outbound-http-examples/extism-dotnet-pdk","commit_stats":null,"previous_names":["wasm-outbound-http-examples/extism-dotnet-pdk"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/wasm-outbound-http-examples/extism-dotnet-pdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fextism-dotnet-pdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fextism-dotnet-pdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fextism-dotnet-pdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fextism-dotnet-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-dotnet-pdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-outbound-http-examples%2Fextism-dotnet-pdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32549386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"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":["csharp","dotnet","extism","http-client","http-request","wasi","wasm","webassembly"],"created_at":"2024-11-14T04:25:22.689Z","updated_at":"2026-05-02T20:40:32.719Z","avatar_url":"https://github.com/wasm-outbound-http-examples.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Use Extism PDK for .Net to send HTTP(s) requests from inside WASM\n\nThis devcontainer is configured to provide you a DotNet SDK 8.0 and wasi-sdk 20.0.\n\n[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/wasm-outbound-http-examples/extism-dotnet-pdk)\n\n\n## Instructions for this devcontainer\n\nTested with Extism .NET PDK [v1.0.3](https://github.com/extism/dotnet-pdk/tree/v1.0.3),\nExtism CLI [v1.5.1](https://github.com/extism/cli/releases/tag/v1.5.1).\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. Install the WASI workload:\n\n```sh\ndotnet workload install wasi-experimental\n```\n\n3. Generate WASI-enabled .Net project:\n\n```sh\ndotnet new wasiconsole -o HTTPRequestingPlugin\n```\n\n4. `cd` into that project's directory:\n\n```sh\ncd HTTPRequestingPlugin\n```\n\n5. Add Extism PDK dependency to project:\n\n```sh\ndotnet add package Extism.Pdk\n```\n\n6. Copy HTTP example source code into project's folder to replace a generated one:\n\n```sh\ncp ../Program.cs . \n```\n\n### Building\n\n1. Compile the example:\n\n```sh\ndotnet build\n```\n\nBuild process creates 25M-sized `HTTPRequestingPlugin/bin/Debug/net8.0/wasi-wasm/AppBundle/HTTPRequestingPlugin.wasm` bundle.\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.1/extism-v1.5.1-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 default function (it's `_start`) from extism plugin with CLI, allowing outbound connections to all hosts:\n\n```sh\n./extism call ./bin/Debug/net8.0/wasi-wasm/AppBundle/HTTPRequestingPlugin.wasm _start --allow-host '*' --wasi\n```\n\n### Finish\n\nPerform your own experiments if desired.\n\n---\n\nThis devcontainer is based on [dev-wasm/dev-wasm-dotnet](https://github.com/dev-wasm/dev-wasm-dotnet).\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-dotnet-pdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwasm-outbound-http-examples%2Fextism-dotnet-pdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasm-outbound-http-examples%2Fextism-dotnet-pdk/lists"}