{"id":20109493,"url":"https://github.com/agentcooper/tree-sitter-wasm-demo","last_synced_at":"2026-05-31T21:31:56.336Z","repository":{"id":253660758,"uuid":"844155485","full_name":"agentcooper/tree-sitter-wasm-demo","owner":"agentcooper","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-25T16:39:38.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T18:28:30.265Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agentcooper.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-08-18T14:53:29.000Z","updated_at":"2024-08-25T16:39:41.000Z","dependencies_parsed_at":"2025-01-13T05:27:31.125Z","dependency_job_id":"fe7825f5-fc98-43a9-984e-018775c6c727","html_url":"https://github.com/agentcooper/tree-sitter-wasm-demo","commit_stats":null,"previous_names":["agentcooper/tree-sitter-wasm-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agentcooper/tree-sitter-wasm-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Ftree-sitter-wasm-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Ftree-sitter-wasm-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Ftree-sitter-wasm-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Ftree-sitter-wasm-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agentcooper","download_url":"https://codeload.github.com/agentcooper/tree-sitter-wasm-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentcooper%2Ftree-sitter-wasm-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33750474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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-11-13T18:08:35.342Z","updated_at":"2026-05-31T21:31:56.310Z","avatar_url":"https://github.com/agentcooper.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!WARNING]  \n\u003e Does not work at the moment, help needed.\n\u003e\n\u003e For working version based on WASI see https://github.com/agentcooper/tree-sitter-wasi-web.\n\nThis repo is an attempt to compile unmodified [tree-sitter](https://crates.io/crates/tree-sitter) to WebAssembly based on discussion in https://github.com/tree-sitter/tree-sitter/discussions/1550. Alternative approach is to use [tree-sitter-c2rust](https://github.com/shadaj/tree-sitter-c2rust).\n\n- Repo setup is based on https://github.com/jrieken/rust-wasm\n- `src/wasm_libc.rs` is copied from https://gist.github.com/nicx256/c86f172cece6370b6d503fa440473896\n- `./wasm-sysroot` is copied from https://github.com/cacticouncil/lilypad/tree/main/wasm-sysroot.\n\nTrying to compile with `rustc 1.82.0-nightly` and `wasm-pack 0.13.0` on macOS fails with an error:\n\n```\nCFLAGS_wasm32_unknown_unknown=\"-I$(pwd)/wasm-sysroot\" RUSTFLAGS=\"-Zwasm-c-abi=spec\" wasm-pack build --target web --dev\n```\n\n```\nwarning: tree-sitter@0.22.6: In file included from /Users/agentcooper/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.22.6/src/lib.c:3:\nwarning: tree-sitter@0.22.6: In file included from /Users/agentcooper/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.22.6/src/./alloc.c:1:\nwarning: tree-sitter@0.22.6: /Users/agentcooper/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.22.6/src/./alloc.h:18:45: error: a parameter list without types is only allowed in a function definition\nwarning: tree-sitter@0.22.6:    18 | TS_PUBLIC extern void *(*ts_current_malloc)(size_t);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentcooper%2Ftree-sitter-wasm-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagentcooper%2Ftree-sitter-wasm-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentcooper%2Ftree-sitter-wasm-demo/lists"}