{"id":19385882,"url":"https://github.com/ashwaniydv/redis-server-clone-js","last_synced_at":"2026-02-20T01:31:58.778Z","repository":{"id":236765890,"uuid":"793111993","full_name":"ashwaniYDV/redis-server-clone-js","owner":"ashwaniYDV","description":"A very simple redis-server clone built using nodejs. It uses RESP (REdis Serialization Protocol) to communicate with clients. You can use any official redis client to talk to this server.","archived":false,"fork":false,"pushed_at":"2024-05-05T19:02:31.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-31T00:54:00.446Z","etag":null,"topics":["redis","resp","tcp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ashwaniYDV.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}},"created_at":"2024-04-28T13:10:27.000Z","updated_at":"2025-07-14T11:12:27.000Z","dependencies_parsed_at":"2024-04-28T14:28:00.191Z","dependency_job_id":"b548e80a-57fe-413a-afe7-d13ec83146b6","html_url":"https://github.com/ashwaniYDV/redis-server-clone-js","commit_stats":null,"previous_names":["ashwaniydv/redis-clone-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashwaniYDV/redis-server-clone-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2Fredis-server-clone-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2Fredis-server-clone-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2Fredis-server-clone-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2Fredis-server-clone-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashwaniYDV","download_url":"https://codeload.github.com/ashwaniYDV/redis-server-clone-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwaniYDV%2Fredis-server-clone-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29638632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T22:32:43.237Z","status":"ssl_error","status_checked_at":"2026-02-19T22:32:38.330Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["redis","resp","tcp"],"created_at":"2024-11-10T10:03:31.712Z","updated_at":"2026-02-20T01:31:58.660Z","avatar_url":"https://github.com/ashwaniYDV.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redis-clone-js\r\n\r\nHow to run the server\r\n---\r\nInstall dependencies\r\n\r\n```\r\nnpm install\r\n```\r\nStart the server\r\n```\r\nnpm start\r\n```\r\n\r\nHow to tak to the server\r\n---\r\nYou can talk to this redis server using official [redis-cli](https://redis.io/docs/latest/develop/connect/cli/).\r\n\r\nIn another terminal you can try the following:\r\n\r\n```\r\n$redis-cli -p 3000\r\n127.0.0.1:3000\u003e ping\r\nPONG\r\n127.0.0.1:3000\u003e echo \"hello world\"\r\nhello world\r\n127.0.0.1:3000\u003e set name ashwani \r\nOK\r\n127.0.0.1:3000\u003e get name\r\nashwani\r\n```\r\n\r\nPerformance\r\n-----------\r\nMy server's performance\r\n\r\n```\r\n$ redis-benchmark -p 3000 -t set,get, -n 100000 -q\r\n\r\nSET: 80128.20 requests per second\r\nGET: 89847.26 requests per second\r\n```\r\n\r\n\r\nRedis docker server's performance\r\n```\r\n$ redis-benchmark -t set,get, -n 100000 -q\r\n\r\nSET: 41858.52 requests per second\r\nGET: 40209.09 requests per second\r\n```\r\n\r\nNote: My code has huge performance due to less complexity and overhead \r\n\r\nReferences\r\n----------\r\n* https://redis.io/docs/latest/develop/reference/protocol-spec/\r\n* https://github.com/NodeRedis/node-redis-parser/blob/master/lib/parser.js","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwaniydv%2Fredis-server-clone-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashwaniydv%2Fredis-server-clone-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwaniydv%2Fredis-server-clone-js/lists"}