{"id":32160391,"url":"https://github.com/amarpotghan/crjdt-haskell","last_synced_at":"2026-02-19T08:02:11.826Z","repository":{"id":62435779,"uuid":"86619484","full_name":"amarpotghan/crjdt-haskell","owner":"amarpotghan","description":"A Conflict-Free Replicated JSON Datatype for Haskell","archived":false,"fork":false,"pushed_at":"2018-07-14T21:04:50.000Z","size":97,"stargazers_count":34,"open_issues_count":4,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-01-08T10:19:08.756Z","etag":null,"topics":["crdt","haskell","json"],"latest_commit_sha":null,"homepage":"http://hackage.haskell.org/package/crjdt-haskell","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amarpotghan.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":"2017-03-29T19:06:35.000Z","updated_at":"2025-03-16T06:46:17.000Z","dependencies_parsed_at":"2022-11-01T21:30:35.385Z","dependency_job_id":null,"html_url":"https://github.com/amarpotghan/crjdt-haskell","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/amarpotghan/crjdt-haskell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amarpotghan%2Fcrjdt-haskell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amarpotghan%2Fcrjdt-haskell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amarpotghan%2Fcrjdt-haskell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amarpotghan%2Fcrjdt-haskell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amarpotghan","download_url":"https://codeload.github.com/amarpotghan/crjdt-haskell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amarpotghan%2Fcrjdt-haskell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29608152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"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":["crdt","haskell","json"],"created_at":"2025-10-21T13:40:00.167Z","updated_at":"2026-02-19T08:02:11.820Z","avatar_url":"https://github.com/amarpotghan.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/amarpotghan/crjdt-haskell.svg?branch=master)](https://travis-ci.org/amarpotghan/haskell-crjdt)\n\n# A Conflict-Free Replicated JSON Datatype for Haskell\n\n*crjdt-haskell* provides high level interface to CRDT which is formalised in the [paper](https://arxiv.org/pdf/1608.03960v1.pdf) by Martin Kleppmann and Alastair R. Beresford.\n\n## Documentation\n\nSee [haddocks](https://hackage.haskell.org/package/crjdt-haskell).\n\n## Example\n\n```haskell\n\n{-# LANGUAGE OverloadedStrings #-}\n\nmodule Main where\n\nimport Data.Crjdt as C\n\n-- Original state\noriginal :: Command ()\noriginal = doc .\u003e key \"key\" =: \"A\"\n\n-- First replica updates doc[\"key\"] to \"B\"\nreplica1 :: Command ()\nreplica1 = original *\u003e doc .\u003e key \"key\" =: \"B\"\n\n-- Second replica updates doc[\"key\"] to \"C\"\nreplica2 :: Command ()\nreplica2 = original *\u003e doc .\u003e key \"key\" =: \"C\"\n\nmain :: IO ()\nmain = do\n  -- Sync first and second replica\n  let Right (r1, r2) = sync (1, replica1) (2, replica2)\n\n  let replica1' = execEval 1 r1\n      replica2' = execEval 2 r2\n\n  -- Both replicas converge to: {\"key\": {\"B\", \"C\"}}\n  print (document replica1' == document replica2') -- True\n```\n\n## Future work\n\n* Improve documentation\n* Aeson support\n* Simplify API as described in [second version](https://arxiv.org/abs/1608.03960) of the paper\n\n## Other implementations\n\n* [Scala CRJDT](https://github.com/fthomas/crjdt)\n\n## LICENSE\n\nCopyright © 2017-2018 Amar Potghan\n\nDistributed under BSD License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famarpotghan%2Fcrjdt-haskell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famarpotghan%2Fcrjdt-haskell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famarpotghan%2Fcrjdt-haskell/lists"}