{"id":49457112,"url":"https://github.com/hyperlight-dev/hyperlight-wasm-http-example","last_synced_at":"2026-04-30T07:04:26.123Z","repository":{"id":311806596,"uuid":"1045133134","full_name":"hyperlight-dev/hyperlight-wasm-http-example","owner":"hyperlight-dev","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-09T15:10:09.000Z","size":215,"stargazers_count":1,"open_issues_count":3,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-09T17:09:00.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/hyperlight-dev.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-26T17:46:58.000Z","updated_at":"2026-04-09T15:11:54.000Z","dependencies_parsed_at":"2025-08-27T00:58:58.844Z","dependency_job_id":"a23da30a-6764-46da-b6db-3d32ed61b5f3","html_url":"https://github.com/hyperlight-dev/hyperlight-wasm-http-example","commit_stats":null,"previous_names":["jprendes/hyperlight-wasm-http-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hyperlight-dev/hyperlight-wasm-http-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperlight-dev%2Fhyperlight-wasm-http-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperlight-dev%2Fhyperlight-wasm-http-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperlight-dev%2Fhyperlight-wasm-http-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperlight-dev%2Fhyperlight-wasm-http-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperlight-dev","download_url":"https://codeload.github.com/hyperlight-dev/hyperlight-wasm-http-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperlight-dev%2Fhyperlight-wasm-http-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32457110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":[],"created_at":"2026-04-30T07:04:23.735Z","updated_at":"2026-04-30T07:04:26.118Z","avatar_url":"https://github.com/hyperlight-dev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `hyperlight-wasm` http example\n\nThis is a minimal example of a\n[hyperlight-wasm](https://github.com/hyperlight-dev/hyperlight-wasm)\nhost application. It implements just enough of the `wasi:http` api\nto run the [sample_wasi_http_rust\nserver](https://github.com/bytecodealliance/sample-wasi-http-rust).\n\n## Prerequisites\n\n1. [Rust](https://www.rust-lang.org/tools/install), including the `x86_64-unknown-none` target (which may be installed via e.g. `rustup target add x86_64-unknown-none`)\n2. `clang`\n3. [`just`](https://github.com/casey/just) (optional, but recommended)\n\nIf you want to follow the manual build instructions, you will also need:\n\n4. [`wasm-tools`](https://github.com/bytecodealliance/wasm-tools)\n5. [`cargo-component`](https://github.com/bytecodealliance/cargo-component)\n6. [`hyperlight-wasm-aot`](https://github.com/hyperlight-dev/hyperlight-wasm)\n\n## Simple setup\n\n### Building\n\n```sh\n# Install JS dependencies\nnpm install\n```\n\n```sh\njust build\n```\n\n### Running\n\n```sh\n# Run Rust\njust run-rust\n\n# Run JS\njust run-js\n```\n\nFrom another terminal, you can then test the server:\n\n```sh\ncurl http://localhost:3000/\ncurl -w'\\n' -d \"hola mundo\" http://127.0.0.1:3000/echo\ncurl -I -H \"x-language: spanish\" http://127.0.0.1:3000/echo-headers\n# get the content of .gitignore from github.com/jprendes/hyperlight-wasm-http-example\ncurl -w'\\n' http://127.0.0.1:3000/proxy\n```\n\n## Manual setup\n\n### Building\n\nCompile the WIT and set the environment variables used when building\n(both the host and the guest):\n\n```sh\nwasm-tools component wit hyperlight.wit -w -o hyperlight-world.wasm\n```\n\nBuild Rust:\n```\ncargo build\n```\n\nBuild JS:\n```\nnpm run build\n```\n\n### Running\n\nBuild the guest component:\n```sh\ncargo component build --release \\\n    --manifest-path guest_rust/Cargo.toml \\\n    --target-dir target\n```\n\nAOT compile it:\n\n```sh\ncargo install hyperlight-wasm-aot\nhyperlight-wasm-aot compile --component \\\n    target/wasm32-wasip1/release/sample_wasi_http_rust.wasm \\\n    out/sample_wasi_http_rust.aot\n```\n\nYou can then run the server:\n\nRust:\n```sh\ncargo run -- out/sample_wasi_http_rust.aot\n```\n\nJS:\n```sh\ncargo run -- out/sample-wasi-http-js.aot\n```\n\n## Try it yourself!\n\n[GitHub codespaces](https://codespaces.new/hyperlight-dev/hyperlight-wasm-http-example)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperlight-dev%2Fhyperlight-wasm-http-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperlight-dev%2Fhyperlight-wasm-http-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperlight-dev%2Fhyperlight-wasm-http-example/lists"}