{"id":22636217,"url":"https://github.com/cvyl/wasm-counter","last_synced_at":"2026-04-15T16:02:31.592Z","repository":{"id":206713912,"uuid":"717534981","full_name":"cvyl/wasm-counter","owner":"cvyl","description":"Simple WebAssembly counter implemented in Rust. Use this project to learn the basics of WebAssembly and Rust integration.","archived":false,"fork":false,"pushed_at":"2023-11-11T20:35:25.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T14:43:18.122Z","etag":null,"topics":["rust","rust-wasm","rust-webassembly","wasm","wasm-bindgen","wasm-example","webassembly","webassembly-demo","webassembly-tutorial"],"latest_commit_sha":null,"homepage":"https://cvyl.me/wasm-counter/","language":"JavaScript","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/cvyl.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}},"created_at":"2023-11-11T19:01:24.000Z","updated_at":"2024-05-31T18:58:20.000Z","dependencies_parsed_at":"2024-01-18T17:49:30.464Z","dependency_job_id":null,"html_url":"https://github.com/cvyl/wasm-counter","commit_stats":null,"previous_names":["ly-nld/wasm-counter","cvyl/wasm-counter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvyl%2Fwasm-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvyl%2Fwasm-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvyl%2Fwasm-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvyl%2Fwasm-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cvyl","download_url":"https://codeload.github.com/cvyl/wasm-counter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140543,"owners_count":20729797,"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":["rust","rust-wasm","rust-webassembly","wasm","wasm-bindgen","wasm-example","webassembly","webassembly-demo","webassembly-tutorial"],"created_at":"2024-12-09T03:18:47.051Z","updated_at":"2026-04-15T16:02:31.536Z","avatar_url":"https://github.com/cvyl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Rust WebAssembly Project](https://github.com/ly-nld/wasm-counter/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/ly-nld/wasm-counter/actions/workflows/main.yml)\n[![pages-build-deployment](https://github.com/ly-nld/wasm-counter/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/ly-nld/wasm-counter/actions/workflows/pages/pages-build-deployment)\n\n# WebAssembly Counter Project\n\nThis project demonstrates a simple WebAssembly program written in Rust. The program implements a counter that can be incremented and decremented.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- [Rust](https://www.rust-lang.org/learn/get-started)\n- [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)\n- [wasm-bindgen](https://rustwasm.github.io/wasm-bindgen/whirlwind/setup.html)\n\n## Building and Running\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/ly-nld/wasm-counter.git\n   cd wasm-counter\n   ```\n\n2. Build the Rust project:\n\n   ```bash\n   cargo build --target wasm32-unknown-unknown\n   ```\n\n3. Generate JavaScript bindings:\n\n   ```bash\n   wasm-bindgen target/wasm32-unknown-unknown/debug/wasm_counter.wasm --out-dir www --web\n   ```\n\n4. Serve the project using a local server:\n\n   ```bash\n   # You can use http-server or any other server of your choice, for example, python -m http.server\n   npx http-server www\n   ```\n\n5. Open your browser and navigate to [http://localhost:8080](http://localhost:8080) (or the port used by your local server).\n\n## Usage\n\n- The webpage will display the current counter value.\n- Click the \"Increment\" button to increase the counter.\n- Click the \"Decrement\" button to decrease the counter.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvyl%2Fwasm-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcvyl%2Fwasm-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvyl%2Fwasm-counter/lists"}