|
| 1 | +<p align="center"> |
| 2 | + <img src="https://github.com/useflytrap/flytrap-js/raw/main/docs/flytrap-banner.png" /> |
| 3 | +</p> |
| 4 | + |
| 5 | +# 🐛 Flytrap JavaScript SDK |
| 6 | + |
| 7 | +[![npm version][npm-version-src]][npm-href] |
| 8 | +[![npm downloads][npm-downloads-src]][npm-href] |
| 9 | +[![Github Actions][github-actions-src]][github-actions-href] |
| 10 | + |
| 11 | +> Catch bugs in production and replay them in your local development environment. Fix bugs in production in a matter of minutes, instead of hours. |
| 12 | +
|
| 13 | +- [🐛 Changelog](https://www.useflytrap.com/changelog) |
| 14 | +- [📖 Documentation](https://docs.useflytrap.com) |
| 15 | + |
| 16 | +## Features |
| 17 | + |
| 18 | +- Catch bugs both front- and backend bugs |
| 19 | +- Replay bugs as if you were the user who had the bug |
| 20 | +- Identify user who had bug |
| 21 | + |
| 22 | +[📖 Read more](https://docs.useflytrap.com/features) |
| 23 | + |
| 24 | +## 💻 Development |
| 25 | + |
| 26 | +- Clone this repository |
| 27 | +- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` (use `npm i -g corepack` for Node.js < 16.10) |
| 28 | +- Install dependencies using `pnpm install` |
| 29 | +- Run the tests using `pnpm dev` |
| 30 | + |
| 31 | +## License |
| 32 | + |
| 33 | +Made with ❤️ in Helsinki |
| 34 | + |
| 35 | +Published under [MIT License](./LICENSE). |
| 36 | + |
| 37 | +## Known Limitations |
| 38 | + |
| 39 | +- If there are multiple functions in the same file with the same name and args, replaying will have |
| 40 | + odd behavior. |
| 41 | +- If there are multiple function calls with the same args in the same scope, removing or adding function calls with same args will result to wrong replay behavior. |
| 42 | +- Adding / removing anonymous functions, (eg; `() => {}`,), in a scope where there already is anonymous functions will cause the replay to go wrong |
| 43 | +- React/framework errors during development (eg. hydration errors, ) manifest as weird errors such as "TypeError: Cannot read properties of null (reading 'useContext')", where the stacktrace points towards Flytrap. Because of this, you're recommended to |
| 44 | + not use flytrap during active development if you're not replaying. |
| 45 | + |
| 46 | +<!-- Links --> |
| 47 | + |
| 48 | +[npm-href]: https://npmjs.com/package/useflytrap |
| 49 | +[github-actions-href]: https://github.com/useflytrap/flytrap/actions/workflows/ci.yml |
| 50 | + |
| 51 | +<!-- Badges --> |
| 52 | + |
| 53 | +[npm-version-src]: https://badgen.net/npm/v/useflytrap?color=black |
| 54 | +[npm-downloads-src]: https://badgen.net/npm/dw/useflytrap?color=black |
| 55 | +[prettier-src]: https://badgen.net/badge/style/prettier/black?icon=github |
| 56 | +[github-actions-src]: https://github.com/useflytrap/flytrap/actions/workflows/ci.yml/badge.svg |
0 commit comments