{"id":51121783,"url":"https://github.com/tegmentum/duckdb-wasm","last_synced_at":"2026-06-25T03:30:29.220Z","repository":{"id":366725278,"uuid":"1277274049","full_name":"tegmentum/duckdb-wasm","owner":"tegmentum","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-23T03:21:54.000Z","size":532,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T05:11:00.311Z","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/tegmentum.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-22T18:39:39.000Z","updated_at":"2026-06-23T03:21:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tegmentum/duckdb-wasm","commit_stats":null,"previous_names":["tegmentum/duckdb-wasm"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tegmentum/duckdb-wasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegmentum%2Fduckdb-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegmentum%2Fduckdb-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegmentum%2Fduckdb-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegmentum%2Fduckdb-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tegmentum","download_url":"https://codeload.github.com/tegmentum/duckdb-wasm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegmentum%2Fduckdb-wasm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34758773,"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-25T02:00:05.521Z","response_time":101,"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":"2026-06-25T03:30:28.446Z","updated_at":"2026-06-25T03:30:29.212Z","avatar_url":"https://github.com/tegmentum.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# duckdb-wasm\n\nThe DuckDB engine compiled to a **WebAssembly Component** (`wasm32-wasip2`),\npackaged as the reusable core that consumers embed — without pulling in the\nrest of [ducklink](https://github.com/tegmentum/ducklink).\n\n## Crates\n\n- **`core`** (`duckdb-component-core`) — wraps `libduckdb-sys` and exports the\n  `duckdb:component/libduckdb` world; compiles to `ducklink_core.wasm`. Its WIT\n  contract (including the `duckdb:extension` import surface and the `tvm:memory`\n  spill interface) is self-contained under `core/wit`.\n- **`libduckdb-sys`** — DuckDB's C/C++ amalgamation built for wasm.\n\n## Building\n\nRequires `cargo component`, the `wasm32-wasip2` Rust target, and four build\ninputs (wasi-sdk 33.0+, the prebuilt `libduckdb-wasi.a`, the DuckDB headers, and\nthe DuckDB wasm CMake build dir). `scripts/setup-env.sh` wires them, defaulting\nto the sibling `ducklink` checkout's prebuilt artifacts (override any var to go\nstandalone):\n\n```sh\nmake core            # standalone/server core (wasi feature)\nmake core-browser    # browser core (no fs shims)\nmake env             # print the resolved inputs (+ whether each exists)\n```\n\nEquivalently, by hand:\n\n```sh\nsource scripts/setup-env.sh\ncargo component build -p duckdb-component-core --target wasm32-wasip2 --release --features wasi\n```\n\nThe compiled component is `target/wasm32-wasip2/release/ducklink_core.wasm`.\n\nTo rebuild `libduckdb-wasi.a` itself from DuckDB source (needs wasi-sdk), use\n`./scripts/build-libduckdb-wasm.sh`; `./scripts/sync-core-wit.sh` regenerates\n`core/wit` from a canonical `wit/`.\n\n## Consumers\n\n[ducklink](https://github.com/tegmentum/ducklink) (host, CLI, extension\necosystem) depends on this repo by path (`../duckdb-wasm`): its host bindgens\nagainst `core/wit` and loads the compiled `ducklink_core.wasm` at runtime.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftegmentum%2Fduckdb-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftegmentum%2Fduckdb-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftegmentum%2Fduckdb-wasm/lists"}