{"id":20925824,"url":"https://github.com/comby-tools/comby-server","last_synced_at":"2025-07-13T15:42:41.386Z","repository":{"id":40484147,"uuid":"369914474","full_name":"comby-tools/comby-server","owner":"comby-tools","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-01T13:33:41.000Z","size":10,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T18:14:55.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/comby-tools.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":"2021-05-22T22:07:47.000Z","updated_at":"2024-10-13T18:25:29.000Z","dependencies_parsed_at":"2022-08-09T21:50:51.441Z","dependency_job_id":null,"html_url":"https://github.com/comby-tools/comby-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comby-tools%2Fcomby-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comby-tools%2Fcomby-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comby-tools%2Fcomby-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comby-tools%2Fcomby-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/comby-tools","download_url":"https://codeload.github.com/comby-tools/comby-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243318756,"owners_count":20272144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-18T20:35:22.507Z","updated_at":"2025-03-13T01:15:15.137Z","avatar_url":"https://github.com/comby-tools.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install\n\nFirst build and install `comby` from source:\n\n```bash\ngit clone https://github.com/comby-tools/comby\ncd comby \u0026\u0026 opam install . --deps-only -y\neval $(opam env)\nmake\nmake install\ncd ..\n```\n\nThen build and install `comby-server` (this repository):\n\n```bash\ngit clone https://github.com/comby-tools/comby-server\ncd comby-server \u0026\u0026 opam install . --deps-only -y\nmake\n```\n\nYou can now run:\n\n```\n./comby-server\n```\n\nYou can test that the server is working by running this command in a separate terminal:\n\n```bash\ncurl 'http://127.0.0.1:3000/rewrite' --data-raw '{\"source\":\"foo(x)\",\"match\":\"foo(:[x])\",\"rule\":\"where true\",\"rewrite\":\"bar(:[x])\",\"language\":\".generic\",\"substitution_kind\":\"in_place\",\"id\":0}'\n```\n\nYou should see the response:\n\n```json\n{\n  \"rewritten_source\": \"bar(x)\",\n  \"in_place_substitutions\": [\n    {\n      \"range\": {\n        \"start\": { \"offset\": 0, \"line\": -1, \"column\": -1 },\n        \"end\": { \"offset\": 6, \"line\": -1, \"column\": -1 }\n      },\n      \"replacement_content\": \"bar(x)\",\n      \"environment\": [\n        {\n          \"variable\": \"x\",\n          \"value\": \"x\",\n          \"range\": {\n            \"start\": { \"offset\": 4, \"line\": -1, \"column\": -1 },\n            \"end\": { \"offset\": 5, \"line\": -1, \"column\": -1 }\n          }\n        }\n      ]\n    }\n  ],\n  \"id\": 0\n}\n```\n\nSee server options (port, interface, etc.) by typing `comby-server --help`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomby-tools%2Fcomby-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomby-tools%2Fcomby-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomby-tools%2Fcomby-server/lists"}