{"id":19892139,"url":"https://github.com/maxpert/sqlite-y-crdt","last_synced_at":"2025-10-09T23:11:09.104Z","repository":{"id":65024942,"uuid":"580905395","full_name":"maxpert/sqlite-y-crdt","owner":"maxpert","description":"Y-CRDT extension for SQLite","archived":false,"fork":false,"pushed_at":"2023-12-30T19:54:37.000Z","size":43,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-02T18:53:20.448Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxpert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-12-21T18:53:03.000Z","updated_at":"2024-08-30T05:58:58.000Z","dependencies_parsed_at":"2024-11-12T18:21:50.133Z","dependency_job_id":"9a084ce4-3686-409c-9e91-0c3b088f0d8c","html_url":"https://github.com/maxpert/sqlite-y-crdt","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/maxpert/sqlite-y-crdt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxpert%2Fsqlite-y-crdt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxpert%2Fsqlite-y-crdt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxpert%2Fsqlite-y-crdt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxpert%2Fsqlite-y-crdt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxpert","download_url":"https://codeload.github.com/maxpert/sqlite-y-crdt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxpert%2Fsqlite-y-crdt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002341,"owners_count":26083340,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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-12T18:21:42.227Z","updated_at":"2025-10-09T23:11:09.086Z","avatar_url":"https://github.com/maxpert.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQLite Y-CRDTs Extension\n\nThis repo is WIP for wrapping Y-CRDT for SQLite. \n\n## Why?\n\n[Yjs](https://yjs.dev/) provides a great way to implement CRDTs. This repository is exploratory PoC of building blocks\nthat takes the implementation from [Y-CRDT](https://github.com/y-crdt/y-crdt), and exposes them for usage inside\nSQLite as functions and operators (just like JSON). This will let developers build:\n\n - Inplace document creation, merging, and modification.\n - Identify useful set of operations required for comprehensive usage of Y-CRDTs.\n\n## Usage\n\nBuild:\n\n```bash\ncargo build\n```\n\nOnce built load and use in sqlite3 by:\n\n```\nsqlite3\n.load target/debug/libsqlite_y_crdt.dylib \nselect ydoc_merge_update(ydoc(1), ydoc(1), 1);\n```\n\n## Functions\n\n - `ydoc(version)`: creates an empty YDOC with and serializes it to given `version` as BLOB\n - `ydoc_merge_update(target, source, version)`: Decodes and merges updates from `source` into `target`. Encoding \n   and decoding version is passed as `version` parameter.\n - `ydoc_client_id([id])`: Everytime creating a document the passed `id` will be used as document ID. Calling this\n   function without parameters returns current ID. It's initialized as random value when extension is loaded.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxpert%2Fsqlite-y-crdt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxpert%2Fsqlite-y-crdt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxpert%2Fsqlite-y-crdt/lists"}