https://github.com/jessekrubin/fastify-shitty
Make fastify worse
https://github.com/jessekrubin/fastify-shitty
Last synced: about 2 months ago
JSON representation
Make fastify worse
- Host: GitHub
- URL: https://github.com/jessekrubin/fastify-shitty
- Owner: jessekrubin
- License: mit
- Created: 2021-08-20T18:21:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2026-01-13T17:16:57.000Z (about 2 months ago)
- Last Synced: 2026-01-13T19:19:51.776Z (about 2 months ago)
- Language: TypeScript
- Size: 455 KB
- Stars: 14
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fastify-shitty
Fastify plugin to help solve this issue:
[fastify/fastify#2955](https://github.com/fastify/fastify/issues/2955)
Fastify is excellent; to make fastify less excellent, fastify-shitty throws
errors randomly and/or delays sending responses.
[](http://standardjs.com/)
Supports Fastify versions `5.x`
## Install
```
npm i @jsse/fastify-shitty
```
## Usage
Require `@jsse/fastify-shitty` and register.
```js
import process from "node:process";
import Fastify from "fastify";
import FastifyShitty from "./dist/fastify-shitty.js";
const fastify = Fastify({ logger: true });
fastify.register(FastifyShitty, { odds: 0.3, delay: true });
fastify.get("/", {}, (request, reply) => {
reply.send({ hello: "world" });
});
fastify.listen({ port: 3000, host: "0.0.0.0" }).catch((err) => {
fastify.log.error(err);
process.exit(1);
});
```
## Acknowledgements
- fastify, for being excellent
- mom & dad
## License
Licensed under [MIT](./LICENSE).