{"id":13410311,"url":"https://github.com/cryptonerdcn/wasm-cairo","last_synced_at":"2025-10-13T16:07:25.477Z","repository":{"id":178613819,"uuid":"655147333","full_name":"cryptonerdcn/wasm-cairo","owner":"cryptonerdcn","description":"A suite of development tools and a WASM-Runtime environment for Cairo. All based on WebAssembly. By Caironautes, for Caironautes.","archived":false,"fork":false,"pushed_at":"2024-12-14T17:42:15.000Z","size":6102,"stargazers_count":57,"open_issues_count":9,"forks_count":14,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T14:43:50.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://wasm-cairo-landing.vercel.app/","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/cryptonerdcn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_APACHE","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-06-18T03:22:58.000Z","updated_at":"2025-01-19T21:05:23.000Z","dependencies_parsed_at":"2023-10-03T14:05:27.907Z","dependency_job_id":"4e557270-135a-4255-af99-6478c56ba5a8","html_url":"https://github.com/cryptonerdcn/wasm-cairo","commit_stats":{"total_commits":48,"total_committers":1,"mean_commits":48.0,"dds":0.0,"last_synced_commit":"186ffe30d6da5e975239cb909577e1fdea24302e"},"previous_names":["cryptonerdcn/wasm-cairo"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptonerdcn%2Fwasm-cairo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptonerdcn%2Fwasm-cairo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptonerdcn%2Fwasm-cairo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptonerdcn%2Fwasm-cairo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptonerdcn","download_url":"https://codeload.github.com/cryptonerdcn/wasm-cairo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994121,"owners_count":21030050,"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-07-30T20:01:06.148Z","updated_at":"2025-10-13T16:07:20.437Z","avatar_url":"https://github.com/cryptonerdcn.png","language":"Rust","funding_links":[],"categories":["Additional developer resources","Tools"],"sub_categories":[],"readme":"WASM runtime for Cairo language and Starknet\n\n\u003cdiv align=\"center\"\u003e\n\n  \u003ch1\u003e\u003ccode\u003eWASM-Cairo\u003c/code\u003e\u003c/h1\u003e\n\n  \u003cstrong\u003eA suite of development tools and an environment for Cairo, all based on WebAssembly.\u003c/strong\u003e\n\n  [Homepage](https://wasm-cairo-landing.vercel.app/)\n  \n  [Github](https://github.com/cryptonerdcn/wasm-cairo)\n\n  \u003csub\u003eBuilt with 🦀🕸 by \u003ca href=\"https://twitter.com/cryptonerdcn\"\u003ecryptonerdcn from Starknet Astro\u003c/a\u003e\u003c/sub\u003e\n\u003c/div\u003e\n\n\n## 🚴 Usage\n\nHow to use:\n1. You can download the precompiled wasm file from [here](https://github.com/cryptonerdcn/wasm-cairo/releases).\n2. If you want to use WASM-Cairo in your Web App, you can also use npm package [wasm-cairo](https://www.npmjs.com/package/wasm-cairo).\n\nIf you prefer to build it yourself, you can follow the steps below.\n\n### 🛠️ Build WASM-bindgen's WASM-Cairo Toolkit \nWith Modules\n\n```\nwasm-pack build --release --target web --out-dir output/module/pkg --out-name wasm-cairo\n```\n\nNo Modules\n\n```\nwasm-pack build --release --target no-modules --out-dir output/no_module/pkg --out-name wasm-cairo\n```\n\nYou will find `wasm-cairo_bg.wasm` and `wasm-cairo.js` in `pkg` folder.\n\n#### Pack \u0026 Publish\n\nWith Modules\n```\nwasm-pack pack output/module\nwasm-pack publish  \n```\n\nNo Modules\n```\nwasm-pack pack output/no_module \n```\n\nCaution: Do not run `wasm-pack publish` after `wasm-pack pack output/no_module`. It will publish the no-modules version.\n\n### 🛠️ Build WASMTIME's WASM-Cairo Toolkit\n\n```\ncargo build --target wasm32-wasi --release\n```\n\nYou can test it by using: \n\nCompile Cairo\n\n```\n./wasmtime_test.sh compileCairoProgram ./cairo_files/HelloStarknetAstro.cairo ./cairo_files/HelloStarknetAstro.sierra\n```\n\nRun\n```\n./wasmtime_test.sh runCairoProgram ./cairo_files/HelloStarknetAstro.cairo\n```\n\nRun Tests\n```\n./wasmtime_test.sh runTests ./cairo_files/Test.cairo\n```\n\nCompile Contract\n\n```\n./wasmtime_test.sh compileStarknetContract ./cairo_files/storage.cairo ./cairo_files/storage.json  \n```\n\n## 🔋 Batteries Included\n\n* [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) for communicating\n  between WebAssembly and JavaScript.\n* [`console_error_panic_hook`](https://github.com/rustwasm/console_error_panic_hook)\n  for logging panic messages to the developer console.\n* [`wee_alloc`](https://github.com/rustwasm/wee_alloc), an allocator optimized\n  for small code size.\n* [`Cairo`](https://github.com/starkware-libs/cairo) for Cairo-lang support.\n* `LICENSE-APACHE`.\n\n## License\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptonerdcn%2Fwasm-cairo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptonerdcn%2Fwasm-cairo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptonerdcn%2Fwasm-cairo/lists"}