{"id":30211935,"url":"https://github.com/dot-microservices/dot-rest","last_synced_at":"2025-08-22T15:06:24.188Z","repository":{"id":34890480,"uuid":"186254712","full_name":"dot-microservices/dot-rest","owner":"dot-microservices","description":"a minimalist toolkit for building scalable, fault tolerant and eventually-consistent microservices","archived":false,"fork":false,"pushed_at":"2023-11-10T16:01:39.000Z","size":1029,"stargazers_count":45,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-09T04:51:36.475Z","etag":null,"topics":["clerq","fault-tolerance","microservice-framework","microservice-toolkit","microservices","rest","rpc","soa"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dot-microservices.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-05-12T12:53:59.000Z","updated_at":"2024-01-25T00:39:42.000Z","dependencies_parsed_at":"2023-01-15T09:58:28.872Z","dependency_job_id":null,"html_url":"https://github.com/dot-microservices/dot-rest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dot-microservices/dot-rest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot-microservices%2Fdot-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot-microservices%2Fdot-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot-microservices%2Fdot-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot-microservices%2Fdot-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dot-microservices","download_url":"https://codeload.github.com/dot-microservices/dot-rest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dot-microservices%2Fdot-rest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270315248,"owners_count":24563374,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"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":["clerq","fault-tolerance","microservice-framework","microservice-toolkit","microservices","rest","rpc","soa"],"created_at":"2025-08-13T21:14:37.356Z","updated_at":"2025-08-13T21:14:42.400Z","avatar_url":"https://github.com/dot-microservices.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dot-rest\n\na minimalist toolkit for building fast, scalable and fault tolerant microservices\n\n## Configuration\n\n- **host        :** binds server instance to this value. it's 0.0.0.0 by default.\n- **pino        :** options for pino logger. it's { \"level\": \"error\" } by default.\n- **port        :** start point for port assignment. it's 8000 by default.\n\n## Examples\n\n```js\nconst Clerq = require('clerq');\nconst { Client, Server } = require('dot-rest');\nconst IORedis = require('ioredis');\n\nclass Service {\n    static _configure() {\n        return {\n            echo: [ '*', '/:path' ]\n        };\n    }\n\n    static _name() {\n        return 'myService';\n    }\n\n    static async echo(req) { // ? , res\n        return req.params;\n    }\n}\n\nconst registry = new Clerq(new IORedis(), { expire: 5, pino: { level: 'error' } });\nconst client = new Client(registry, { expire: 5, pino: { level: 'error' } });\nconst server = new Server(registry, { expire: 5, pino: { level: 'error' } });\nserver.start()\n    .then(() =\u003e server.addService(Service))\n    .catch(console.log);\n\nsetTimeout(async() =\u003e {\n    const r = await client.get(Server._unCamelCase(Service._name()), 'test');\n    console.log(r.data);\n    server.stop();\n    client.close();\n}, 500);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdot-microservices%2Fdot-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdot-microservices%2Fdot-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdot-microservices%2Fdot-rest/lists"}