{"id":29941744,"url":"https://github.com/batmac/crdt","last_synced_at":"2026-02-18T16:02:23.949Z","repository":{"id":307004657,"uuid":"1023192855","full_name":"batmac/crdt","owner":"batmac","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-20T18:07:33.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-14T14:08:25.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/batmac.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}},"created_at":"2025-07-20T18:07:31.000Z","updated_at":"2025-07-20T18:07:37.000Z","dependencies_parsed_at":"2025-07-28T23:55:41.816Z","dependency_job_id":null,"html_url":"https://github.com/batmac/crdt","commit_stats":null,"previous_names":["batmac/crdt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/batmac/crdt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batmac%2Fcrdt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batmac%2Fcrdt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batmac%2Fcrdt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batmac%2Fcrdt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/batmac","download_url":"https://codeload.github.com/batmac/crdt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batmac%2Fcrdt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29585441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T13:56:48.962Z","status":"ssl_error","status_checked_at":"2026-02-18T13:54:34.145Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-08-03T01:27:44.054Z","updated_at":"2026-02-18T16:02:23.944Z","avatar_url":"https://github.com/batmac.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRDT Chaos Visualizer 🐵🤖\n\nAn interactive visualization tool for exploring Conflict-free Replicated Data Types (CRDTs) and their behavior under chaotic network conditions.\n\n## Live Demo\n\nVisit the live demo at: [https://YOUR-USERNAME.github.io/crdt/](https://YOUR-USERNAME.github.io/crdt/)\n\n## Features\n\n- **G-Counter CRDT Implementation**: A grow-only counter that demonstrates basic CRDT principles\n- **Chaos Controls** 🐵:\n  - Drop Rate: Simulate packet loss\n  - Delays: Add network latency\n  - Duplicates: Test idempotency\n  - Network Partitions: Isolate nodes completely\n- **Auto-Increment** 🤖: Automated testing with configurable intervals\n- **Real-time Convergence Graph**: Visualize how nodes converge over time\n- **Interactive Nodes**: Three independent nodes (A, B, C) that sync their state\n\n## What are CRDTs?\n\nCRDTs are data structures that can be replicated across multiple nodes in a distributed system, where each replica can be updated independently and concurrently without coordination. Despite network failures, delays, or partitions, CRDTs guarantee eventual consistency - all nodes will converge to the same state once they can communicate.\n\n## How to Use\n\n1. **Manual Testing**: Click \"Increment\" on any node to increase its counter\n2. **Automated Testing**: Use \"Start Auto-Increment\" to make nodes increment automatically\n3. **Add Chaos**: Adjust the chaos controls to simulate real network conditions\n4. **Create Partitions**: Isolate nodes to simulate network splits\n5. **Watch Convergence**: The graph shows how nodes diverge and reconverge\n\n## Experiments to Try\n\n1. **Perfect Network**: Start with no chaos - watch perfect synchronization\n2. **Packet Loss**: Set 50% drop rate - see how nodes handle missing updates\n3. **Network Partition**: Isolate Node A, let others continue, then reconnect\n4. **Chaos Storm**: Max out all chaos controls and watch CRDTs maintain consistency\n5. **Partition Healing**: Create divergence, then remove all chaos to see convergence\n\n## Technical Details\n\nThis visualizer implements a G-Counter (Grow-only Counter) CRDT using:\n- State-based replication (nodes share their full state)\n- Vector clock-like structure (each node tracks its own count)\n- Merge operation using `max()` for convergence\n\nThe implementation demonstrates key CRDT properties:\n- **Commutativity**: Order of merges doesn't matter\n- **Associativity**: Grouping of merges doesn't matter\n- **Idempotency**: Merging the same state multiple times is safe\n\n## Local Development\n\nSimply open `chaos-counter.html` in a web browser. No build process or dependencies required!\n\n## Learn More\n\n- [The Evolution of CRDTs](evolution%20of%20crdts.md) - A comprehensive overview of CRDT technology\n- [CRDT Tech](https://crdt.tech/) - Introduction to CRDTs\n- [Wikipedia: CRDT](https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatmac%2Fcrdt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbatmac%2Fcrdt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatmac%2Fcrdt/lists"}