{"id":50689432,"url":"https://github.com/ssenthilnathan3/dist-space","last_synced_at":"2026-06-09T01:31:32.080Z","repository":{"id":324912000,"uuid":"1099054292","full_name":"ssenthilnathan3/dist-space","owner":"ssenthilnathan3","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-18T14:04:36.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-18T16:35:23.649Z","etag":null,"topics":["agentic-ai","ai","codespace","rust","state-mach","zed"],"latest_commit_sha":null,"homepage":"","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/ssenthilnathan3.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":"2025-11-18T13:55:37.000Z","updated_at":"2025-11-18T14:04:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ssenthilnathan3/dist-space","commit_stats":null,"previous_names":["ssenthilnathan3/dist-space"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ssenthilnathan3/dist-space","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssenthilnathan3%2Fdist-space","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssenthilnathan3%2Fdist-space/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssenthilnathan3%2Fdist-space/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssenthilnathan3%2Fdist-space/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssenthilnathan3","download_url":"https://codeload.github.com/ssenthilnathan3/dist-space/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssenthilnathan3%2Fdist-space/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34088013,"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-08T02:00:07.615Z","response_time":111,"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":["agentic-ai","ai","codespace","rust","state-mach","zed"],"created_at":"2026-06-09T01:31:31.426Z","updated_at":"2026-06-09T01:31:32.075Z","avatar_url":"https://github.com/ssenthilnathan3.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"**An experiental distributed, deterministic workspace engine that synchronizes code edits across humans and AI agents, maintains a bounded operation log, resolves concurrent edits, and exposes real-time snapshots and context for tools.**\n\n## Vision\n\nDist-Space is a distributed runtime designed to be the backbone of the next generation of software development. It transforms the codebase from a static set of files on a disk into a **live, collaborative entity** where humans and AI agents interact in real-time with zero latency.\n\n- Everyone connects to it.  \n- Everyone sees the same workspace.  \n- Everyone's actions funnel through it.  \n- AI agents have the same view as humans.  \n- The system resolves conflicts + maintains causality + logs history.\n\n## Current Features\n\n### Core OT Engine\n- **Operational Transformation**: Full implementation of Insert, Delete, Replace, and Noop operations\n- **Conflict Resolution**: Deterministic tie-breaking for concurrent edits\n- **Convergence Guarantee**: All clients converge to the same state regardless of operation order\n\n### Protocol \u0026 Communication\n- **Length-prefixed binary protocol** with type IDs for efficient message framing\n- **Protobuf serialization** for operations and sync messages\n- **Ping/Pong heartbeats** for client liveness detection\n\n### Connection Management\n- **Client timeouts**: Automatic disconnection of unresponsive clients (30s timeout)\n- **Connection limits**: DoS protection with max 100 concurrent clients\n- **Graceful cleanup**: Proper resource cleanup on client disconnect\n\n### Testing\n- **30 unit tests** covering all OT permutations\n- **Property-based testing (fuzzing)** with proptest for convergence verification\n\n## Quick Start\n\n### Start the Server\n```bash\ncargo run -p server\n```\n\n### Run a Client\n```bash\ncargo run -p client\n```\n\nOr the test client:\n```bash\ncargo run -p test_client\n```\n\n### Run Tests\n```bash\n# Run OT unit tests\ncargo test -p server\n\n# Run integration tests\ncargo run -p tests\n```\n\n## Architecture\n\n```\n┌─────────────────────────────────────────────────────────┐\n│                    Dist-Space Server                     │\n├─────────────────────────────────────────────────────────┤\n│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────┐  │\n│  │   Reader    │  │   Writer    │  │   Broadcaster   │  │\n│  │  (per-conn) │  │  (per-conn) │  │    (shared)     │  │\n│  └──────┬──────┘  └──────┬──────┘  └────────┬────────┘  │\n│         │                │                   │          │\n│         └───────────┬────┴───────────────────┘          │\n│                     │                                   │\n│  ┌──────────────────▼──────────────────────────────┐    │\n│  │              Server State                        │    │\n│  │  ┌──────────┐  ┌──────────┐  ┌──────────────┐   │    │\n│  │  │ Document │  │ Op Log   │  │   Clients    │   │    │\n│  │  │  (v N)   │  │ [0..N]   │  │  [id -\u003e tx]  │   │    │\n│  │  └──────────┘  └──────────┘  └──────────────┘   │    │\n│  └──────────────────────────────────────────────────┘   │\n│                          │                              │\n│  ┌───────────────────────▼──────────────────────────┐   │\n│  │              Transform Engine                     │   │\n│  │  • Insert vs Insert  • Delete vs Delete          │   │\n│  │  • Insert vs Delete  • Delete vs Replace         │   │\n│  │  • Insert vs Replace • Replace vs Replace        │   │\n│  └───────────────────────────────────────────────────┘  │\n└─────────────────────────────────────────────────────────┘\n```\n\n## Roadmap\n\nSee [docs/tasks.md](docs/tasks.md) for the full implementation roadmap.\n\n- **Phase 1**: Foundation \u0026 Stability ✅\n- **Phase 2**: Virtual File System (VFS) 🔜\n- **Phase 3**: WASM Plugin System\n- **Phase 4**: SDK \u0026 CLI Tools\n\n## License\n\nMIT\n\n\n*readme is generated by ai","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssenthilnathan3%2Fdist-space","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssenthilnathan3%2Fdist-space","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssenthilnathan3%2Fdist-space/lists"}