{"id":19316822,"url":"https://github.com/rkusa/do-sqlite","last_synced_at":"2026-02-27T05:36:39.270Z","repository":{"id":48155070,"uuid":"447748618","full_name":"rkusa/do-sqlite","owner":"rkusa","description":"[Experimental] Persist SQLite in a Cloudflare Durable Object","archived":false,"fork":false,"pushed_at":"2023-11-11T16:17:32.000Z","size":2664,"stargazers_count":138,"open_issues_count":1,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-10-10T23:23:26.207Z","etag":null,"topics":["cloudflare","durable-objects","sqlite","wasm"],"latest_commit_sha":null,"homepage":"https://ma.rkusa.st/store-sqlite-in-cloudflare-durable-objects","language":"TypeScript","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/rkusa.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":"2022-01-13T20:51:16.000Z","updated_at":"2025-10-03T21:58:19.000Z","dependencies_parsed_at":"2024-11-10T01:13:05.193Z","dependency_job_id":"bdc4aba6-46df-4a2f-9a27-c28ad85db5d5","html_url":"https://github.com/rkusa/do-sqlite","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/rkusa/do-sqlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkusa%2Fdo-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkusa%2Fdo-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkusa%2Fdo-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkusa%2Fdo-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rkusa","download_url":"https://codeload.github.com/rkusa/do-sqlite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkusa%2Fdo-sqlite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29885934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"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":["cloudflare","durable-objects","sqlite","wasm"],"created_at":"2024-11-10T01:12:49.267Z","updated_at":"2026-02-27T05:36:39.240Z","avatar_url":"https://github.com/rkusa.png","language":"TypeScript","readme":"# `do-sqlite`\n\n[Experimental] POC that persists SQLite in a Cloudflare Durable Object.\n\nMy journey of creating it: https://ma.rkusa.st/store-sqlite-in-cloudflare-durable-objects\n\n## Next Steps\n\n- [ ] Add support for persistent journal files (to prevent data loss and database corruption)\n- [ ] Add proper error handling\n- [ ] Ensure that everything works fine when the DO is used concurrently\n\n## Usage\n\nDeploy to Cloudflare (you might have to get a script limit increase to be able to deploy it):\n\n```bash\nwrangler publish\n```\n\nExecute a query (path pattern: `/:database/{query,execute}`):\n\n```bash\ncurl -i -X POST -H 'Content-Type: application/json' \\\n  -d '{\"sql\":\"CREATE TABLE vals (id INTEGER PRIMARY KEY AUTOINCREMENT, val VARCHAR NOT NULL)\"}' \\\n  https://do-sqlite.YOUR_WORKERS.workers.dev/main/execute\n```\n\n```bash\ncurl -i -X POST -H 'Content-Type: application/json' \\\n  -d '{\"sql\":\"INSERT INTO vals (val) VALUES (?1)\",\"params\":[\"val\"]}' \\\n  https://do-sqlite.YOUR_WORKERS.workers.dev/main/execute\n```\n\n```bash\ncurl -i -X POST -H 'Content-Type: application/json' \\\n  -d '{\"sql\":\"SELECT * FROM vals\"}' \\\n  https://do-sqlite.YOUR_WORKERS.workers.dev/main/query\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkusa%2Fdo-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frkusa%2Fdo-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkusa%2Fdo-sqlite/lists"}