{"id":15776492,"url":"https://github.com/devigned/stuffed","last_synced_at":"2025-08-09T12:51:09.659Z","repository":{"id":195904066,"uuid":"693208359","full_name":"devigned/stuffed","owner":"devigned","description":"A little CLI and library for pulling and pushing Wasm components as OCI artifacts","archived":false,"fork":false,"pushed_at":"2023-09-20T01:41:31.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-03T03:06:00.193Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devigned.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-09-18T15:04:26.000Z","updated_at":"2024-04-23T17:11:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"c232e90b-b835-4116-8121-d028d68d2698","html_url":"https://github.com/devigned/stuffed","commit_stats":null,"previous_names":["devigned/stuffed"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devigned/stuffed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devigned%2Fstuffed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devigned%2Fstuffed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devigned%2Fstuffed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devigned%2Fstuffed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devigned","download_url":"https://codeload.github.com/devigned/stuffed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devigned%2Fstuffed/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269579521,"owners_count":24441366,"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-08-09T02:00:10.424Z","response_time":111,"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":"2024-10-04T17:22:00.432Z","updated_at":"2025-08-09T12:51:09.610Z","avatar_url":"https://github.com/devigned.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stuffed\nA little CLI and library for pulling and pushing Wasm components as OCI artifacts\n\n## How to use stuffed\n\n```shell\n# start your local registry\ndocker run -d -p 5000:5000 --restart=always --name registry registry:2\n\n# push an image to the local registry with reference wasm/my-component:v1.0.0.\n$ cargo run -- push --reference localhost:5000/wasm/my-component:v1.0.0 --root-path simple-grep-1.0.0.wasm -i\n    Finished dev [unoptimized + debuginfo] target(s) in 0.35s\n     Running `target/debug/stuffed push --reference 'localhost:5000/wasm/my-component:v1.0.0' --root-path ../../bca/registry/demo/simple-grep-1.0.0.wasm -i`\npushed: localhost:5000/wasm/my-component:v1.0.0 with digest: 4470bd2867f49ef7119691d6e1cb9a4ecd46b79c394a7587dc78874c9382ca37\n\n# pull that same image and save the content of the first layer in the current directory.\n$ cargo run -- pull --reference localhost:5000/wasm/my-component:v1.0.0 -i\n    Finished dev [unoptimized + debuginfo] target(s) in 0.24s\n     Running `target/debug/stuffed pull --reference 'localhost:5000/wasm/my-component:v1.0.0' -i`\npulled: ./sha256-4470bd2867f49ef7119691d6e1cb9a4ecd46b79c394a7587dc78874c9382ca37\n\n# Sure enough, it is in our local directory\n$ ls -la | grep sha\n-rw-r--r--@  1 david  staff  2158774 Sep 19 21:31 sha256-4470bd2867f49ef7119691d6e1cb9a4ecd46b79c394a7587dc78874c9382ca37\n\n# Check and see if that file is really a Wasm module (yeah... it's not a component, but we'll fix that).\n$ file ./sha256-4470bd2867f49ef7119691d6e1cb9a4ecd46b79c394a7587dc78874c9382ca37\n./sha256-4470bd2867f49ef7119691d6e1cb9a4ecd46b79c394a7587dc78874c9382ca37: WebAssembly (wasm) binary module version 0x1 (MVP)\n\n# Use regctl to inspct the local registry and list the images.\n$ regctl repo ls localhost:5000\nwasm/my-component\n\n# Use regctl to list the tags for our image.\n$ regctl tag ls localhost:5000/wasm/my-component\nv1.0.0\n\n# Use regctl to inspect the manifest for our image. Note the single layer. That is our Wasm module.\n$ regctl manifest get localhost:5000/wasm/my-component:v1.0.0\nName:         localhost:5000/wasm/my-component:v1.0.0\nMediaType:    application/vnd.oci.image.manifest.v1+json\nArtifactType: application/vnd.bytecodealliance.component.v1+wasm\nDigest:       sha256:f7e89cb4ceb71fbf13fc7e356df34e18df25ea2a4ba89238fcf398985943cb39\nTotal Size:   2.159MB\n\nConfig:\n  Digest:     sha256:e10a56793af6896f902c20855284a09d1d3056a4eb762593d6dd17649472b97b\n  MediaType:  application/vnd.oci.image.config.v1+json\n  Size:       170B\n\nLayers:\n\n  Digest:     sha256:4470bd2867f49ef7119691d6e1cb9a4ecd46b79c394a7587dc78874c9382ca37\n  MediaType:  application/vnd.bytecodealliance.wasm.component.layer.v0+wasm\n  Size:       2.159MB\n  \n \n```\n\n## Status\nThis is just a quick hack to put flow back and forth with an OCI registry. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevigned%2Fstuffed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevigned%2Fstuffed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevigned%2Fstuffed/lists"}