https://github.com/theKashey/flow-meter
http(s/2) chunked response meter
https://github.com/theKashey/flow-meter
Last synced: 10 months ago
JSON representation
http(s/2) chunked response meter
- Host: GitHub
- URL: https://github.com/theKashey/flow-meter
- Owner: theKashey
- Created: 2020-08-20T09:58:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T21:48:17.000Z (about 4 years ago)
- Last Synced: 2025-04-21T16:21:54.617Z (11 months ago)
- Language: TypeScript
- Homepage: https://flow-meter-ui.vercel.app/
- Size: 26.4 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-list - flow-meter
README
Flow Meter
===
HTTP/HTTPS/HTTP2 stream meter
- supports gzip/brotly compression
- reports about every important moment of data flow
- reports timing till major HTTP tags
## Usage
### CLI
`flow-meter `
### API
- ✅ `import {meter} from 'flow-meter'`
```js
meter('https://theurge.com.au', {
http2: true,
compression: 'gzip',
}).then(console.log)
```
⬇️ ⬇️ ⬇️ ⬇️
```text
{
preflight: {
dnsLookup: 160,
tcpConnection: 259,
tlsHandshake: 290,
total: 709 <-- 💩WOOPS
},
data: {
rawFirstByte: 718, <-- slow SSR?
firstByte: 2,
end: 321, <-- slow transfer
total: 1041
},
html: {
head: 0,
script: 0,
title: 103, <-- hmm, why delay?
body: 1,
header: 2,
h2: 105,
footer: 1,
end: 108, <-- 100ms from till