{"id":19190153,"url":"https://github.com/xrplf/wasi-libc","last_synced_at":"2026-06-22T05:32:13.239Z","repository":{"id":66231293,"uuid":"462201822","full_name":"XRPLF/wasi-libc","owner":"XRPLF","description":"WASI libc implementation for WebAssembly","archived":false,"fork":false,"pushed_at":"2022-03-03T13:58:47.000Z","size":2165,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T17:09:08.207Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XRPLF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-02-22T08:18:35.000Z","updated_at":"2022-06-30T21:34:50.000Z","dependencies_parsed_at":"2023-06-30T05:16:26.447Z","dependency_job_id":null,"html_url":"https://github.com/XRPLF/wasi-libc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/XRPLF/wasi-libc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XRPLF%2Fwasi-libc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XRPLF%2Fwasi-libc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XRPLF%2Fwasi-libc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XRPLF%2Fwasi-libc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XRPLF","download_url":"https://codeload.github.com/XRPLF/wasi-libc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XRPLF%2Fwasi-libc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34636427,"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-06-22T02:00:06.391Z","response_time":106,"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-09T11:33:05.882Z","updated_at":"2026-06-22T05:32:13.225Z","avatar_url":"https://github.com/XRPLF.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WASI Libc\n\nWASI Libc is a libc for WebAssembly programs built on top of WASI system calls.\nIt provides a wide array of POSIX-compatible C APIs, including support for\nstandard I/O, file I/O, filesystem manipulation, memory management, time, string,\nenvironment variables, program startup, and many other APIs.\n\nWASI Libc is sufficiently stable and usable for many purposes, as most of the\nPOSIX-compatible APIs are stable, though it is continuing to evolve to better\nalign with wasm and WASI.\n\n## Usage\n\nThe easiest way to get started with this is to use [wasi-sdk], which includes a\nbuild of WASI Libc in its sysroot.\n\n## Building from source\n\nTo build a WASI sysroot from source, obtain a WebAssembly-supporting C compiler\n(currently this is only clang 8+, though we'd like to support other compilers as well),\nand then run:\n\n```sh\nmake WASM_CC=/path/to/clang/with/wasm/support \\\n     WASM_AR=/path/to/llvm-ar \\\n     WASM_NM=/path/to/llvm-nm\n```\n\nThis makes a directory called \"sysroot\", by default. See the top of the Makefile\nfor customization options.\n\nTo use the sysroot, use the `--sysroot=` option:\n\n```sh\n/path/to/wasm/supporting/c/compiler --sysroot=/path/to/the/newly/built/sysroot ...\n```\n\nto run the compiler using the newly built sysroot.\n\nNote that Clang packages typically don't include cross-compiled builds of\ncompiler-rt, libcxx, or libcxxabi, for `libclang_rt.builtins-wasm32.a`, libc++.a,\nor libc++abi.a, respectively, so they may not be usable without\nextra setup. This is one of the things [wasi-sdk] simplifies, as it includes\ncross-compiled builds of compiler-rt, libc++.a, and libc++abi.a.\n\n## Arch Linux AUR package\nFor Arch Linux users, there's an unofficial AUR package tracking this git repo that can be installed under the name [wasi-libc-git].\n\n[wasi-sdk]: https://github.com/WebAssembly/wasi-sdk\n[wasi-libc-git]: https://aur.archlinux.org/packages/wasi-libc-git/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxrplf%2Fwasi-libc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxrplf%2Fwasi-libc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxrplf%2Fwasi-libc/lists"}