{"id":21346923,"url":"https://github.com/queer/crush","last_synced_at":"2026-03-04T12:03:59.910Z","repository":{"id":45834215,"uuid":"259175396","full_name":"queer/crush","owner":"queer","description":"A time-traveling distributed key-value store","archived":false,"fork":false,"pushed_at":"2021-06-11T22:35:43.000Z","size":499,"stargazers_count":21,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"mistress","last_synced_at":"2025-12-22T11:14:16.557Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/queer.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}},"created_at":"2020-04-27T01:41:24.000Z","updated_at":"2024-12-22T18:17:10.000Z","dependencies_parsed_at":"2022-09-19T00:50:45.687Z","dependency_job_id":null,"html_url":"https://github.com/queer/crush","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/queer/crush","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fcrush","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fcrush/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fcrush/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fcrush/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/queer","download_url":"https://codeload.github.com/queer/crush/tar.gz/refs/heads/mistress","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fcrush/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30079565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T11:57:42.557Z","status":"ssl_error","status_checked_at":"2026-03-04T11:56:10.793Z","response_time":59,"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":"2024-11-22T02:12:02.199Z","updated_at":"2026-03-04T12:03:59.853Z","avatar_url":"https://github.com/queer.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crush\n\nA time-traveling, replicated, eventually-consistent key-value store.\n\n## Warning\n\n**Operations are currently NOT atomic!** Writing to a key concurrently can and\nlikely **will** cause issues. You have been warned!\n\n## API\n\n### `GET /:key`\n\nReturns the key and its revisions. The returned value looks like:\n\n```Javascript\n[current_value, revisions]\n```\nwhere `revisions` is a possibly-empty list.\n\nIf the key does not exist, an empty list is returned:\n\n```Javascript\n[]\n```\n\n#### Query parameters\n\n- `revisions`: The number of revisions to return. Set to `all` for all\n  revisions. If this value is not specified, or is not a number or the literal\n  string `\"all\"`, an empty list of revisions will be returned.\n- `patch`: Whether or not to apply patches. By default, the returned revisions\n  are a set of patches that can be used to revert to each previous state. If\n  `patch` is set to `true`, the patches will be applied, and the computed\n  values will be returned as the list of revisions. Defaults to `false`.\n\n### `GET /:key/info`\n\nReturns info about the given key.\n\n```js\n// ▶  curl localhost:7654/test/info\n{\"key\":\"test\",\"revision_count\":11}\n```\n\n### `PUT /:key`\n\nSets the value at the given key. The request body is the value that is set.\nReturns the value that was set.\n\n### `DELETE /:key`\n\nDeletes the key from the store. Returns the following JSON:\n```js\n{\n  \"status\": \"ok\",\n}\n```\n\n### Forks\n\nAll of these routes take a `:fork` parameter, like this:\n\n```\nGET /:key/:fork\nPUT /:key/:fork\nDELETE /:key/:fork\nGET /:key/:fork/info\n```\n\nIf you don't provide a fork, the default fork is used.\n\n### Forking keys\n\nYou can fork a key to operate on a copy of its data without affecting the\noriginal. Likewise, you can merge a fork into a target fork.\n\n#### `POST /:key/:fork/fork/:target`\n\n```js\n// On success\n{\n  \"status\": \"ok\",\n}\n\n// On failure\n{\n  \"status\": \"error\",\n  \"error\": \"not_found\",\n}\n```\n\n#### `POST /:key/:fork/merge/:target`\n\nBlindly merges the fork's data into the target. **This is a destructive\noperation.** You are on your own for rollbacks.\n\n**This *overwrites* the target fork with the provided fork!** This does NOT\ndo some sort of smart merge! The originating fork's value OVERWRITES the target\nfork's value directly, and has the relevant patch added to its history.\n\n```js\n// On success\n{\n  \"status\": \"ok\",\n}\n\n// On failure\n{\n  \"status\": \"error\",\n  \"error\": \"fork_not_found\",\n}\n\n{\n  \"status\": \"error\",\n  \"error\": \"target_not_found\",\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueer%2Fcrush","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueer%2Fcrush","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueer%2Fcrush/lists"}