{"repo":"triggerdotdev/apihero","free":true,"listed":false,"github":"https://github.com/triggerdotdev/apihero","clone":"git clone https://github.com/triggerdotdev/apihero.git","description":"Make every API you use faster and more reliable with one line of code ⚡️","language":"TypeScript","stars":176,"topics":["api","data","gateway","http","http-client","observability","proxy","rest","typescript"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"API Hero Make every API you use faster and more reliable with one line of code. - Monitor every single API call your app makes - Get alerts when issues arise and debug them easily - Automatically cache responses using standard HTTP caching semantics - Override HTTP caching semantics and cache more aggressively - Get alerts BEFORE you hit rate limits - Automatically obfuscate sensitive data - All with just one line of code You can self-host or use the hosted version. Installation We currently only support JavaScript & TypeScript, but more platforms are coming soon. Install the latest apihero-js package: If you only plan on using API Hero in development or testing environments, install into your devDependencies : Usage To start intercepting API requests and proxying them through the API Hero service, you first will need a Project Key which you can receive by signing up to apihero.run. If you are running a Node.js app, include the following code somewhere that will be run at initialization: setupProxy works by intercepting requests at the node:http and node:https level, and modifies the requests before they are sent to the API Hero proxy server. We take the same approach as Mock Service Worker (and we actually leverage their low-level HTTP/HTTPS request interception library) By default, this will proxy all requests, which may not be what you want (and could be a possible security issue). You can whitelist certain origins using the allow option: You can also use a blocklist appro","default_branch":null,"files":null,"tree":[],"storefront":"/r/triggerdotdev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/triggerdotdev/apihero/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."}