{"id":29643092,"url":"https://github.com/raito-cache-server/raito-cache","last_synced_at":"2026-05-14T21:05:41.616Z","repository":{"id":264684534,"uuid":"893438522","full_name":"raito-cache-server/raito-cache","owner":"raito-cache-server","description":"Simple caching WebSocket server with CLI","archived":false,"fork":false,"pushed_at":"2025-02-20T15:22:33.000Z","size":238,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T21:42:42.917Z","etag":null,"topics":["caching","cli","nodejs","server","websocket"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/raito-cache","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/raito-cache-server.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-24T13:02:19.000Z","updated_at":"2025-03-10T12:44:35.000Z","dependencies_parsed_at":"2025-02-02T20:18:32.156Z","dependency_job_id":"f57cb35a-546b-4437-af94-a5bf160ab354","html_url":"https://github.com/raito-cache-server/raito-cache","commit_stats":null,"previous_names":["stbestichhh/lite-cache"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/raito-cache-server/raito-cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raito-cache-server%2Fraito-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raito-cache-server%2Fraito-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raito-cache-server%2Fraito-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raito-cache-server%2Fraito-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raito-cache-server","download_url":"https://codeload.github.com/raito-cache-server/raito-cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raito-cache-server%2Fraito-cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33043280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["caching","cli","nodejs","server","websocket"],"created_at":"2025-07-21T23:02:44.100Z","updated_at":"2026-05-14T21:05:41.600Z","avatar_url":"https://github.com/raito-cache-server.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM Version](https://img.shields.io/npm/v/raito-cache)](https://www.npmjs.com/package/raito-cache)\n[![Node.js CI](https://github.com/stbestichhh/raito-cache/actions/workflows/node.js.yml/badge.svg)](https://github.com/stbestichhh/raito-cache/actions/workflows/node.js.yml)\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n\n# Raito-Cache\n\n## Table of contents\n\n* [Description](#about)\n* [Getting started](#getting-started)\n  * [Installation](#installation)\n  * [Command Line Interface](#cli)\n* [Deployment](#deployment)\n* [Contributing](#contributing)\n* [Changelog](#changelog)\n* [Authors](#authors)\n* [License](#license)\n\n## About\n\n**raito-cache** - is lightweight caching proxy server. This server intercepts requests, caches responses, and serves them from the cache, improving performance by reducing redundant network calls. It also includes command line interface with command handling functionality.\n\n## Getting started\n\n\u003e [!IMPORTANT]\n\u003e **Node.js 18.x+** version must be installed in your OS.\n\n#### 1. Install server\n  ```shell\n  $ yarn add -g raito-cache\n  ```\n\n#### 2. Run the server\n  ```shell\n  $ raito --port 3000 --password raitopass\n  ```\n\n### CLI\n\n**Start the server:**\n```text\nUsage: raito --port \u003cport\u003e [options]\n\nLite caching proxy server\n\nOptions:\n  --port \u003cport\u003e                 define port on which to start the server\n  --host \u003chost\u003e                 define host on which to start the server (default: \"localhost\")\n  --ttl \u003cms\u003e                    define time to live for the cache record in ms\n  -pass, --password \u003cpassword\u003e  define a password for the server to prevent non authorized connections\n  -v, --version                 output the version number\n  -h, --help                    display help for command\n```\n\n**App commands:**\n* `status` - check server status\n* `stop` - stop the server without exiting.\n* `start` - start the server\n* `exit` - stop the server and exit the process\n* `clear-cache` - deletes all records\n* `ttl ms` - time to live in milliseconds\n* `get` - get cache.\n  * `get *` - get all records\n  * `get key` - get cache by key\n  * `get HTTP_METHOD` - get all cached responses from HTTP_METHOD requests. **Example:** `get POST`\n  * `get :ROUTE` - get all cached responses from the specific route. **Example:** `get :/tasks/2`\n  * `get HTTP_METHOD:ROUTE` - get a specific cached response\n* `set key data ttl` - create a new record with **key** and **data**. **ttl** - time to live for record (optional)\n* `help` - get all commands\n\n## Deployment\n1. Pull docker image:\n  ```shell\n  $ docker pull stbestich/raito-cache:latest_amd64\n  ```\n2. Run it\n  ```shell\n  $ docker run -e HOST=\u003chost\u003e -e PASSWORD=\u003cpassword\u003e -p \u003cport\u003e:9180 -it stbestich/raito-cache\n  ```\n\n#### Use with docker-compose\n```yaml\nservices:\n  raito-cache:\n    image: stbestich/raito-cache:latest\n    ports:\n      - \"${PORT:-9180}:${PORT:-9180}\"\n      - \"${PORT:-9181}:${PORT:-9181\" # Define second port if you need http proxy\n    env_file:\n      - .env\n    environment:\n      NODE_ENV: production\n      PORT: ${PORT:-9180}\n      HOST: ${HOST:-0.0.0.0}\n      TTL: ${TTL}\n      PASSWORD: ${PASSWORD}\n    tty: true\n    stdin_open: true\n```\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Changelog\n\nProject changes are writen in changelog, see the [CHANGELOG.md](CHANGELOG.md).\n\nWe use [SemVer](https://semver.org/) for versioning.\nFor the versions available, see the [tags](https://github.com/stbestichhh/raito-cache/tags) on this repository.\nFor the versions supported, see the [SECURITY.md](SECURITY.md).\n\n## Authors\n\n- [@stbestichhh](https://www.github.com/stbestichhh)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraito-cache-server%2Fraito-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraito-cache-server%2Fraito-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraito-cache-server%2Fraito-cache/lists"}