Skip to content

Commit 73d512c

Browse files
committed
Update sizing
1 parent c09fb48 commit 73d512c

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

docs/openapi-fetch/index.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ title: openapi-fetch
44

55
<img src="/assets/openapi-fetch.svg" alt="openapi-fetch" width="216" height="40" />
66

7-
openapi-fetch is a typesafe fetch client that pulls in your OpenAPI schema. Weighs **2 kb** and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.
7+
openapi-fetch is a typesafe fetch client that pulls in your OpenAPI schema. Weighs **4 kb** and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.
88

99
| Library | Size (min) | “GET” request |
1010
| :------------------------- | ---------: | :------------------------- |
11-
| openapi-fetch | `2 kB` | `200k` ops/s (fastest) |
12-
| openapi-typescript-fetch | `4 kB` | `100k` ops/s (2× slower) |
13-
| axios | `32 kB` | `165k` ops/s (1.2× slower) |
14-
| superagent | `55 kB` | `50k` ops/s (6.6× slower) |
15-
| openapi-typescript-codegen | `367 kB` | `75k` ops/s (2.6× slower) |
11+
| openapi-fetch | `4 kB` | `278k` ops/s (fastest) |
12+
| openapi-typescript-fetch | `4 kB` | `130k` ops/s (2.1× slower) |
13+
| axios | `32 kB` | `217k` ops/s (1.3× slower) |
14+
| superagent | `55 kB` | `63k` ops/s (4.4× slower) |
15+
| openapi-typescript-codegen | `367 kB` | `106k` ops/s (2.6× slower) |
1616

17-
The syntax is inspired by popular libraries like react-query or Apollo client, but without all the bells and whistles and in a 2 kb package.
17+
The syntax is inspired by popular libraries like react-query or Apollo client, but without all the bells and whistles and in a 4 kb package.
1818

1919
```ts
2020
import createClient from "openapi-fetch";
@@ -49,7 +49,7 @@ Notice there are no generics, and no manual typing. Your endpoint’s request an
4949
- ✅ No manual typing of your API
5050
- ✅ Eliminates `any` types that hide bugs
5151
- ✅ Also eliminates `as` type overrides that can also hide bugs
52-
- ✅ All of this in a **2 kB** client package 🎉
52+
- ✅ All of this in a **4 kb** client package 🎉
5353

5454
## Setup
5555

packages/openapi-fetch/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<img src="../../docs/public/assets/openapi-fetch.svg" alt="openapi-fetch" width="216" height="40" />
22

3-
openapi-fetch is a typesafe fetch client that pulls in your OpenAPI schema. Weighs **2 kB** and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.
3+
openapi-fetch is a typesafe fetch client that pulls in your OpenAPI schema. Weighs **4 kB** and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.
44

5-
| Library | Size (min) | “GET” request |
6-
| :------------------------- | ---------: | :------------------------ |
7-
| openapi-fetch | `2 kB` | `151k` ops/s (fastest) |
8-
| openapi-typescript-fetch | `4 kB` | `99k` ops/s (1.4× slower) |
9-
| axios | `32 kB` | `90k` ops/s (1.6× slower) |
10-
| superagent | `55 kB` | `42k` ops/s (3× slower) |
11-
| openapi-typescript-codegen | `367 kB` | `71k` ops/s (2× slower) |
5+
| Library | Size (min) | “GET” request |
6+
| :------------------------- | ---------: | :------------------------- |
7+
| openapi-fetch | `4 kB` | `278k` ops/s (fastest) |
8+
| openapi-typescript-fetch | `4 kB` | `130k` ops/s (2.1× slower) |
9+
| axios | `32 kB` | `217k` ops/s (1.3× slower) |
10+
| superagent | `55 kB` | `63k` ops/s (4.4× slower) |
11+
| openapi-typescript-codegen | `367 kB` | `106k` ops/s (2.6× slower) |
1212

1313
The syntax is inspired by popular libraries like react-query or Apollo client, but without all the bells and whistles and in a 2 kB package.
1414

@@ -45,7 +45,7 @@ Notice there are no generics, and no manual typing. Your endpoint’s request an
4545
- ✅ No manual typing of your API
4646
- ✅ Eliminates `any` types that hide bugs
4747
- ✅ Also eliminates `as` type overrides that can also hide bugs
48-
- ✅ All of this in a **2 kB** client package 🎉
48+
- ✅ All of this in a **4 kb** client package 🎉
4949

5050
## 🔧 Setup
5151

packages/openapi-fetch/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openapi-fetch",
3-
"description": "Fast, typesafe fetch client for your OpenAPI schema. Only 2kb (min). Works with React, Vue, Svelte, or vanilla JS.",
3+
"description": "Fast, typesafe fetch client for your OpenAPI schema. Only 4 kb (min). Works with React, Vue, Svelte, or vanilla JS.",
44
"version": "0.8.2",
55
"author": {
66
"name": "Drew Powers",

0 commit comments

Comments
 (0)