{"id":21445945,"url":"https://github.com/thecomputerm/libclang-wasm","last_synced_at":"2025-07-06T05:37:38.294Z","repository":{"id":253215878,"uuid":"842807350","full_name":"TheComputerM/libclang-wasm","owner":"TheComputerM","description":"libclang compiled to WebAssembly so you can traverse C/C++ ASTs anywhere","archived":false,"fork":false,"pushed_at":"2024-09-12T20:33:30.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T13:44:59.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/TheComputerM.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-15T06:04:33.000Z","updated_at":"2025-01-05T04:42:58.000Z","dependencies_parsed_at":"2024-09-13T08:04:22.209Z","dependency_job_id":null,"html_url":"https://github.com/TheComputerM/libclang-wasm","commit_stats":null,"previous_names":["thecomputerm/libclang.wasm"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TheComputerM/libclang-wasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheComputerM%2Flibclang-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheComputerM%2Flibclang-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheComputerM%2Flibclang-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheComputerM%2Flibclang-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheComputerM","download_url":"https://codeload.github.com/TheComputerM/libclang-wasm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheComputerM%2Flibclang-wasm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262077067,"owners_count":23255109,"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-23T02:40:02.743Z","updated_at":"2025-06-26T13:35:44.274Z","avatar_url":"https://github.com/TheComputerM.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libclang.wasm\n\n[LibClang](https://clang.llvm.org/docs/LibClang.html) compiled to WebAssembly so you can parse and traverse C/C++ source code anywhere, even in the browser!\n\nIt can be used in conjuction with libraries like [wasm-ffi](https://github.com/DeMille/wasm-ffi) and languages which provide wasm ffi interop like the experimental dart2wasm compiler (used to make [FFIgenPad](https://ffigenpad.surge.sh/))\n\nThis repository releases libclang.wasm, built with the default libclang symbols along with malloc+free, and the object/archive files to build your own binary with the necessary symbols. For direct JavaScript bindings, [libclangjs](https://github.com/donalffons/libclangjs) might be more suitable.\n\n## Building Instructions\n\n### Prerequisites\n\n1. emscripten\n2. cmake\n3. ninja\n4. a good cpu\n\n\nThere are bash scripts you can use to [setup, patch and build the llvm project](./build-llvm.sh) using emscripten and then use the built archive files to [build libclang.wasm](./build-libclang.sh).\n\nYou can also find some prebuilt archives on the releases page.\n\nThe reason why we patch the llvm-project is to provide a **fake** path to the main executable (which does not exist in WASM) but is useful for locating other resources and identifying default header locations.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecomputerm%2Flibclang-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecomputerm%2Flibclang-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecomputerm%2Flibclang-wasm/lists"}