{"id":51121807,"url":"https://github.com/tegmentum/sqlite-wasm","last_synced_at":"2026-06-25T03:30:31.221Z","repository":{"id":364187982,"uuid":"1136350983","full_name":"tegmentum/sqlite-wasm","owner":"tegmentum","description":"SQLite compiled to a WebAssembly Component Model module targeting WASI Preview 2.","archived":false,"fork":false,"pushed_at":"2026-06-12T03:04:42.000Z","size":3328,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-12T03:11:17.266Z","etag":null,"topics":["component-model","database","sqlite","wasi","wasm","webassembly"],"latest_commit_sha":null,"homepage":null,"language":"C","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-01-17T14:34:03.000Z","updated_at":"2026-06-12T03:04:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tegmentum/sqlite-wasm","commit_stats":null,"previous_names":["tegmentum/sqlite-wasm"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tegmentum/sqlite-wasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegmentum%2Fsqlite-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegmentum%2Fsqlite-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegmentum%2Fsqlite-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegmentum%2Fsqlite-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tegmentum","download_url":"https://codeload.github.com/tegmentum/sqlite-wasm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegmentum%2Fsqlite-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":["component-model","database","sqlite","wasi","wasm","webassembly"],"created_at":"2026-06-25T03:30:30.175Z","updated_at":"2026-06-25T03:30:31.215Z","avatar_url":"https://github.com/tegmentum.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqlite-wasm\n\nComponentized SQLite for WebAssembly. The whole SQLite C\nlibrary compiled to wasm32-wasip2, plus a small set of crates\nexposing it as WebAssembly Components.\n\nThis is the building-block layer. Higher-level applications\n(notably [sqlink](https://github.com/tegmentum/sqlink), a cli +\nextension catalog + dot-command surface) consume it as a git\nsubmodule.\n\n## Crates\n\n| Crate | Purpose |\n|---|---|\n| `core` (`sqlite-component-core`) | Rust wrapper around libsqlite3-sys: `Connection`, `Statement`, `Value`, prepared-stmt API. |\n| `sqlite-lib` | wasm component that exports `sqlite:extension/spi` and friends — drop into any wasm host that wants SQL via composition. |\n| `sqlite-embed` | Static-embed helpers for native Rust extensions (the C-side `sqlite3_create_function_v2` glue). |\n| `sqlite-pcache-tvm` / `sqlite-mem-tvm` / `sqlite-vfs-tvm` | Multi-memory cold-tier providers: SQLite's pcache + VFS bytes routed through pool 1 / pool 2 of the `tvm-guest-mm` shell (see [tvm-wasm](https://github.com/tegmentum/tvm-wasm)). |\n\n## Submodule\n\n| Path | Source |\n|---|---|\n| `sqlite-loader-wit/` | The WIT contract every extension speaks. Pinned via submodule; lives at https://github.com/tegmentum/sqlite-loader-wit. |\n\n## Build\n\nFirst-time setup (writes per-crate `.cargo/config.toml` from\n`.cargo/config.toml.template`, with `__WASI_SDK_PATH__`\nsubstituted):\n\n```sh\nWASI_SDK_PATH=$HOME/wasi-sdk bash scripts/setup-cargo-config.sh\n```\n\nThen:\n\n```sh\ncargo build --release              # native (just `core`)\ncargo build -p sqlite-lib \\\n            --target wasm32-wasip2 \\\n            --release              # the SPI-providing component\n```\n\n## History\n\nExtracted from [sqlink](https://github.com/tegmentum/sqlink)\n(formerly the `sqlite-wasm` monorepo) so projects that just\nneed componentized SQLite don't have to pull in sqlink's cli +\nextension catalog. The pre-split history lives in sqlink under\nthe `pre-split` tag.\n\n## License\n\nSQLite itself is public domain. The wrapping code in this repo\n(crates listed above) is MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftegmentum%2Fsqlite-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftegmentum%2Fsqlite-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftegmentum%2Fsqlite-wasm/lists"}