Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theKashey/flow-meter
http(s/2) chunked response meter
https://github.com/theKashey/flow-meter
Last synced: about 2 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 (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T21:48:17.000Z (over 2 years ago)
- Last Synced: 2024-04-27T08:21:53.282Z (5 months ago)
- Language: TypeScript
- Homepage: https://flow-meter-ui.vercel.app/
- Size: 26.4 KB
- Stars: 14
- Watchers: 3
- 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