{"id":29420076,"url":"https://github.com/esoterra/wasmio2024","last_synced_at":"2026-04-15T11:37:38.606Z","repository":{"id":227642888,"uuid":"771631532","full_name":"esoterra/wasmio2024","owner":"esoterra","description":"Demo for my Wasm IO 2024 talk!","archived":false,"fork":false,"pushed_at":"2024-03-15T08:55:45.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T06:47:28.246Z","etag":null,"topics":["claw-lang","component-model","rust","wasm"],"latest_commit_sha":null,"homepage":"https://esoterra.dev/talks/2024-wasm-io/","language":"Rust","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/esoterra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-03-13T16:51:28.000Z","updated_at":"2024-08-21T01:17:52.000Z","dependencies_parsed_at":"2024-03-14T12:47:53.920Z","dependency_job_id":null,"html_url":"https://github.com/esoterra/wasmio2024","commit_stats":null,"previous_names":["esoterra/wasmio2024"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/esoterra/wasmio2024","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esoterra%2Fwasmio2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esoterra%2Fwasmio2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esoterra%2Fwasmio2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esoterra%2Fwasmio2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esoterra","download_url":"https://codeload.github.com/esoterra/wasmio2024/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esoterra%2Fwasmio2024/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264922926,"owners_count":23683707,"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":["claw-lang","component-model","rust","wasm"],"created_at":"2025-07-12T01:15:32.135Z","updated_at":"2025-11-05T21:02:28.411Z","avatar_url":"https://github.com/esoterra.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wasm IO 2024 Claw Demo\n\n## Setup\n\n```sh\ncargo install claw-cli\ncargo install component-opt\ncargo install --git https://github.com/peterhuene/wac --locked\ncargo build\n```\n\n## CI Jobs\n\n```sh\n# Look at `job` world in wit/claw.wit\n\n# Look at src/main.rs\n\n# Test out an empty job\nclaw-cli compile -i programs/empty-job.claw --wit wit -o empty-job.wasm\ncargo run -- -i empty-job.wasm\n\n# Test out a basic job\nclaw-cli compile -i programs/basic-job.claw --wit wit -o basic-job.wasm\ncargo run -- -i basic-job.wasm\n\n# Test out a simple proxy and composition\nclaw-cli compile -i programs/timer-proxy.claw --wit wit -o timer-proxy.wasm\nwac encode -d claw:basic-job=basic-job.wasm -d claw:timer-proxy=timer-proxy.wasm -o job-with-timer.wasm programs/job-with-timer.wac\n```\n\n## Component Optimization\n\n```sh\n# Print file size (expect 1212 bytes)\nls -l timer-proxy.wasm\n\n# Print optimized file size (expect 1064)\ncomponent-opt -i timer-proxy.wasm -o timer-proxy-opt.wasm\nls -l timer-proxy-opt.wasm\n\n# Rerun the demo to check it still works\nwac encode -d claw:basic-job=basic-job.wasm -d claw:timer-proxy=timer-proxy-opt.wasm -o job-with-timer-opt.wasm programs/job-with-timer.wac\ncargo run -- -i job-with-timer-opt.wasm\n```\n\nThis is a 15% binary size reduction to barely over 1kb!!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesoterra%2Fwasmio2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesoterra%2Fwasmio2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesoterra%2Fwasmio2024/lists"}