{"id":20502754,"url":"https://github.com/vlang/wasmer","last_synced_at":"2025-10-24T03:44:30.236Z","repository":{"id":43755883,"uuid":"460011560","full_name":"vlang/wasmer","owner":"vlang","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-31T10:51:21.000Z","size":882,"stargazers_count":31,"open_issues_count":1,"forks_count":4,"subscribers_count":30,"default_branch":"main","last_synced_at":"2025-04-13T20:14:54.008Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/vlang.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}},"created_at":"2022-02-16T13:16:59.000Z","updated_at":"2024-12-23T23:53:17.000Z","dependencies_parsed_at":"2022-08-22T08:01:57.257Z","dependency_job_id":null,"html_url":"https://github.com/vlang/wasmer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlang%2Fwasmer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlang%2Fwasmer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlang%2Fwasmer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlang%2Fwasmer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vlang","download_url":"https://codeload.github.com/vlang/wasmer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248774968,"owners_count":21159534,"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":[],"created_at":"2024-11-15T19:27:32.009Z","updated_at":"2025-10-05T05:44:23.795Z","avatar_url":"https://github.com/vlang.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wasmer\n`wasmer` is a wrapper over Wasmer C API. This module not only provides access to the C API but it also strives to provide easy to use wrappers over the C API.\n\n# Example usage\n\n```v\nimport wasmer\n\nfn main() {\n    engine := wasmer.engine()\n    store := wasmer.store(engine)\n\n    wasm := wasmer.wat2wasm('(module\n        (func \\$add (param \\$lhs i32) (param \\$rhs i32) (result i32)\n            local.get \\$lhs\n            local.get \\$rhs\n            i32.add)\n        (export \"add\" (func \\$add))\n    \n    )')?\n\n    mod := wasmer.compile(store,wasm)?\n    imports := wasmer.extern_vec_empty()\n    mut trap := wasmer.Trap{}\n    instance := wasmer.instance(store,mod,imports,mut trap)\n\n    func := instance.exports().at(0).as_func()?\n    mut results := [wasmer.val_i32(0)]\n    trap = func.call([wasmer.val_i32(2),wasmer.val_i32(3)],mut results)\n    if trap.is_set() {\n        println(trap.message()?)\n    } else {\n        println(results[0])\n    }\n\n    engine.delete()\n    trap.delete()\n    store.delete()\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvlang%2Fwasmer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvlang%2Fwasmer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvlang%2Fwasmer/lists"}