@beakerr/hammer
v0.1.0
Published
Load-testing CLI for beakerr-protected endpoints.
Downloads
78
Readme
@beakerr/hammer
Load-testing CLI for beakerr-protected endpoints. Fire a burst of requests at a URL and watch allow/deny counts stream live in your terminal.
Usage
bunx @beakerr/hammer http://localhost:3000/api/helloDefault: 100 requests at concurrency 10. Override with flags:
bunx @beakerr/hammer http://localhost:3000/api/hello -n 500 -c 25 -r 50| Flag | Short | Default | Purpose |
|---|---|---|---|
| <url> positional | — | required | Target URL |
| --count | -n | 100 | Total requests |
| --concurrency | -c | 10 | Max in-flight |
| --rate | -r | unlimited | Cap requests per second |
| --duration | -d | — | Run for duration (30s, 2m); supersedes --count |
| --method | -m | GET | HTTP method |
| --timeout | -t | 10000 | Per-request timeout (ms) |
| --json | — | false | Emit NDJSON events + JSON summary |
| --help | -h | — | Usage |
| --version | -V | — | Print version |
Classification: 429 → deny, 2xx/3xx → allow, anything else → error.
See Load testing for more.
