{"id":38281912,"url":"https://github.com/brotherjing/scalable-ot","last_synced_at":"2026-01-17T02:00:32.881Z","repository":{"id":40732352,"uuid":"214325530","full_name":"BrotherJing/scalable-ot","owner":"BrotherJing","description":"A scalable concurrent collaboration framework based on Operational Transformation (OT)","archived":false,"fork":false,"pushed_at":"2022-12-10T06:53:56.000Z","size":397,"stargazers_count":13,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-17T23:55:32.384Z","etag":null,"topics":["collaborative-editing","operational-transformation","ot","spreadsheet"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/BrotherJing.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-11T02:24:55.000Z","updated_at":"2024-04-11T06:01:34.000Z","dependencies_parsed_at":"2023-01-26T04:30:53.718Z","dependency_job_id":null,"html_url":"https://github.com/BrotherJing/scalable-ot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/BrotherJing/scalable-ot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrotherJing%2Fscalable-ot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrotherJing%2Fscalable-ot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrotherJing%2Fscalable-ot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrotherJing%2Fscalable-ot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrotherJing","download_url":"https://codeload.github.com/BrotherJing/scalable-ot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrotherJing%2Fscalable-ot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"online","status_checked_at":"2026-01-17T02:00:07.808Z","response_time":85,"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":["collaborative-editing","operational-transformation","ot","spreadsheet"],"created_at":"2026-01-17T02:00:19.695Z","updated_at":"2026-01-17T02:00:32.834Z","avatar_url":"https://github.com/BrotherJing.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scalable-ot\nA scalable concurrent collaboration framework based on Operational Transformation (OT).\n\nInspired by [sharedb](https://github.com/share/sharedb).\n\n### Examples\n\nText editor\n\n\u003cimg src=\"https://brotherjing-static.s3-ap-northeast-1.amazonaws.com/img/textarea.gif\" alt=\"textarea\" width=\"400\"/\u003e\n\nSpreadsheet\n\n\u003cimg src=\"https://brotherjing-static.s3-ap-northeast-1.amazonaws.com/img/sheet.gif\" alt=\"sheet\" width=\"600\"/\u003e\n\n### Architecture\n\n\u003cimg src=\"https://brotherjing-static.s3-ap-northeast-1.amazonaws.com/img/scalable-ot.png\" alt=\"arch\" width=\"400\"/\u003e\n\n1. Clients send operations through API.\n2. Operations are pushed into MQ, partitioned by document id.\n3. OT server receives operations of same document sequentially and performs conflict solving.\n4. Broadcast server sends conflict-free operations to clients.\n5. Conflict-free operations are pushed into another MQ(or db stream), trigger a consumer which apply them on document snapshot sequentially.\n\n### Project Structures\n\n```\nscalable-ot\n├── front       // Client side code, including examples(textarea, spreadsheet)\n├── ot-server   // Server which consume client operations and produce conflict-free operations\n└── proto       // Protobuf definitions\n```\n\n```\nscalable-ot-java-backend\n├── scalable-ot-api         // Front facing api\n├── scalable-ot-broadcast   // Web socket server which connect to clients\n├── scalable-ot-consumer    // Service which consume and apply conflict-free operations\n├── scalable-ot-core        // DTO, DAO, etc.\n└── scalable-ot-kafka       // Kafka related configurations\n```\n\n### Features\n\n- **Horizontal Scalable** Some services are implemented as Kafka consumer and are scalable in nature. \nSome are backed by RPC framework like [Dubbo](https://dubbo.apache.org) and have been customized to be scalable and load balanced \nbased on specific rules.\n- **Extensible** Can be extended to support concurrent editing on other type of document by adding OT libraries.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrotherjing%2Fscalable-ot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrotherjing%2Fscalable-ot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrotherjing%2Fscalable-ot/lists"}