Developer releases smart-retry, a TypeScript library that logs failed API calls to disk
A developer has published smart-retry, an open-source TypeScript library designed to handle API call retries more intelligently than existing solutions. Unlike generic retry wrappers, it offers drop-in clients for both Axios and Fetch, along with automatic disk logging of exhausted requests, preserving details such as URL, method, headers, body, and error for later inspection or replay. The library retries only meaningful failures by default, including network errors, timeouts, HTTP 429s, and 5xx responses, with an option to override this behaviour via a custom callback. It is available on npm under the package name @aubaid/smart-retry, with the source code hosted on GitHub. The project is actively seeking contributors, with several open issues labelled as good first issues covering areas such as test coverage, type improvements, and documentation.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in