{"id":23511434,"url":"https://github.com/garyeung/caching_server_cli","last_synced_at":"2026-04-26T22:31:25.386Z","repository":{"id":263707568,"uuid":"888460993","full_name":"garyeung/caching_server_CLI","owner":"garyeung","description":"This is a simple caching proxy server. it forwards requests to the actual server and cache the responses. If the same request is made again, it returns the cached response instead of forwarding the request to the server.","archived":false,"fork":false,"pushed_at":"2024-11-20T01:35:00.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T17:36:54.171Z","etag":null,"topics":["caching-proxy","cli","redis-cache","typescript"],"latest_commit_sha":null,"homepage":"https://roadmap.sh/projects/caching-server","language":"TypeScript","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/garyeung.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-14T12:46:43.000Z","updated_at":"2024-11-20T01:36:34.000Z","dependencies_parsed_at":"2024-11-20T02:25:43.604Z","dependency_job_id":"47fd2ee3-2968-4b21-900d-1e91e35ddcb1","html_url":"https://github.com/garyeung/caching_server_CLI","commit_stats":null,"previous_names":["garyeung/caching_server_cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/garyeung/caching_server_CLI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyeung%2Fcaching_server_CLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyeung%2Fcaching_server_CLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyeung%2Fcaching_server_CLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyeung%2Fcaching_server_CLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garyeung","download_url":"https://codeload.github.com/garyeung/caching_server_CLI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garyeung%2Fcaching_server_CLI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"last_error":"SSL_read: 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":["caching-proxy","cli","redis-cache","typescript"],"created_at":"2024-12-25T12:14:43.977Z","updated_at":"2026-04-26T22:31:25.363Z","avatar_url":"https://github.com/garyeung.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# caching_server\n(https://roadmap.sh/projects/caching-server)  \nThis is a simple caching proxy server. it forwards requests to the actual server and cache the responses. If the same request is made again, it returns the cached response instead of forwarding the request to the server. \n\n## Prerequisites\n\n- Node.js (v14 or higher)\n- npm or yarn\n- Redis \n\n## Installation \n```sh\ngit clone https://github.com/garyeung/caching_server_CLI.git \n\ncd caching_server_CLI \n\nnpm install \n```\nAfter connecting your own Redis database, creating your .env file according to the .env.example file\n\n## Usage\n```sh\nnpm run build\nnpm run exec -- -h  # help\nnpm run exec -- -p  -o   ## port and origin \nnpm run exec -- -c    ## clean cache\n```\n## Project Structure\n```\n/project\n  /src\n    cli:  gets port, origin and clean-cache order\n          checks if the port is the legal port or not\n    server: runs the proxy server on the specified port and pass the origin url to the proxy middleware\n    cache: functions clean cache, get cache and save cache in Redis\n    proxyMiddleware: responses if has cache otherwise requests to origin and saves cache\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaryeung%2Fcaching_server_cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaryeung%2Fcaching_server_cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaryeung%2Fcaching_server_cli/lists"}