{"repo":"ajaysinghj8/osham","free":true,"listed":false,"github":"https://github.com/ajaysinghj8/osham","clone":"git clone https://github.com/ajaysinghj8/osham.git","description":"A Configurable Proxy + Cache Server.","language":"TypeScript","stars":55,"topics":["nodejs","typescript","proxy","proxyserver","proxy-server","cache","cache-server","cache-service","redis","redis-cache"],"license":"MIT","category":"databases-storage","readme_excerpt":"ओषम् (Osham) Osham is a lightweight configurable proxy cache server for HTTP APIs. It reduces backend load, improves response times, and includes request pooling to avoid thundering-herd effects on first requests. Quick start Install locally: Install globally: Run (from a project with cache-config.yml ): Configuration essentials Create a .env (optional) and a cache-config.yml in your working directory. Minimal env vars: See cache-config.example.yml for full options and examples. The server supports per-namespace rules, cache expiry, pooling, and query/header-based cache variation. Example cache-config.yml Here's a minimal example you can copy into your project to get started quickly. Purge cache (administrative) Osham provides an admin endpoint to invalidate cache by exact key or by pattern. See the detailed guide: - Purge Cache Key format: O: : [: ] (variant hash is SHA1 hex). Metrics (Prometheus) Enable Prometheus metrics to monitor cache performance: Access metrics at / osham/metrics (Prometheus text format). Exposed metrics include: - osham cache hits total — cumulative cache hits (by namespace) - osham cache misses total — cumulative cache misses (by namespace) - osham request duration seconds — request latency histogram (by namespace, method, HTTP status) - osham pooled requests — current number of pooled requests (by namespace) - osham cache size bytes — current cache size in bytes (by namespace) Scrape this endpoint from your Prometheus instance to track cache efficie","default_branch":null,"files":null,"tree":[],"storefront":"/r/ajaysinghj8","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ajaysinghj8/osham/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}