{"id":15394823,"url":"https://github.com/mhmd-azeez/miniz_extism","last_synced_at":"2025-09-10T08:41:23.852Z","repository":{"id":227509203,"uuid":"771631883","full_name":"mhmd-azeez/miniz_extism","owner":"mhmd-azeez","description":"A small demo of how you can turn a C library into an Extism Plugin","archived":false,"fork":false,"pushed_at":"2024-03-13T18:01:49.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-09T01:44:53.100Z","etag":null,"topics":["extism","library","miniz","wasm"],"latest_commit_sha":null,"homepage":"https://extism.org","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhmd-azeez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-03-13T16:52:07.000Z","updated_at":"2025-01-10T08:45:41.000Z","dependencies_parsed_at":"2024-03-13T17:56:56.199Z","dependency_job_id":"fb494d11-8d57-4960-a042-e9f5d8d03f35","html_url":"https://github.com/mhmd-azeez/miniz_extism","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"ccc260410b8875466b1c8c3c6cb21f180504e747"},"previous_names":["mhmd-azeez/miniz_extism"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mhmd-azeez/miniz_extism","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmd-azeez%2Fminiz_extism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmd-azeez%2Fminiz_extism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmd-azeez%2Fminiz_extism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmd-azeez%2Fminiz_extism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhmd-azeez","download_url":"https://codeload.github.com/mhmd-azeez/miniz_extism/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhmd-azeez%2Fminiz_extism/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274433868,"owners_count":25284428,"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-09-10T02:00:12.551Z","response_time":83,"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":["extism","library","miniz","wasm"],"created_at":"2024-10-01T15:24:37.681Z","updated_at":"2025-09-10T08:41:23.830Z","avatar_url":"https://github.com/mhmd-azeez.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# miniz for Extism\n\nThis repo shows how you can convert a normal C library to an Extism Plugin. [miniz](https://github.com/richgel999/miniz) is a minimal compression library.\n\n## Try it out\n\n1. Fetch all submodules\n\n```\ngit submodule update --init --recursive\n```\n\n2. Download WASI SDK\n\n```\ncd dependencies/extism-pdk\n./install-wasi-sdk.sh\n```\n\nThis downloads WASI SDK to `dependencies/extism-pdk/wasi-sdk`.\n\n3. Build\n```\ncd plugin\nmkdir build\ncd build\ncmake cmake -D CMAKE_C_COMPILER=$(pwd)/../../dependencies/extism-pdk/wasi-sdk/bin/clang ..\nmake\n```\n\nNow you should be able to find a `miniz_extism.wasm` in `plugin/build`.\n\n4. Test\n```\ncd host\ngo run .\n```\n\nYou should get an output similar to this:\n```\nPS D:\\x\\wasm\\miniz_extism\\host\u003e go run .\nOriginal data: Hello, World! Hello, World! Hello, World! Hello, World! Hello, World!\nOriginal data len: 69\nCompressed data len: 39\nDecompressed data: Hello, World! Hello, World! Hello, World! Hello, World! Hello, World!\n```\n\n## Demo\n\n\u003cdiv\u003e\n    \u003ca href=\"https://www.loom.com/share/b906b0ddc0ea4ae9b97f1ac16877fe2b\"\u003e\n      \u003cp\u003eDylibso March Hackathon: miniz for Extism - Watch Video\u003c/p\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.loom.com/share/b906b0ddc0ea4ae9b97f1ac16877fe2b\"\u003e\n      \u003cimg style=\"max-width:300px;\" src=\"https://cdn.loom.com/sessions/thumbnails/b906b0ddc0ea4ae9b97f1ac16877fe2b-with-play.gif\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhmd-azeez%2Fminiz_extism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhmd-azeez%2Fminiz_extism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhmd-azeez%2Fminiz_extism/lists"}