You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bf25362
Browse filesBrowse the repository at this point in the historyBrowse files
docs: show when each page was last updated, and align the README comparison (#277)
* docs: show when each page was last updated, and align the README comparison
- Every docs page shows "Last updated", and its TechArticle JSON-LD
carries dateModified, both from git. They are off in a shallow clone,
like the sitemap dates, which would otherwise date most pages to the
oldest commit fetched.
- The README comparison table now matches the Comparison page: Kubb is
in it, suspense, prefetch and ensureQueryData are rows of their own,
and the release line, configuration and CI check are listed. The
"hierarchical keys / tags" row is gone, as nothing on the Comparison
page backs it. The footnote dates the measured rows and the feature
rows separately, and the scope note points non-React users to Orval,
Kubb or Hey API.
* docs: say which operations get which helpers in the README intro
Suspense hooks, queryOptions factories, prefetch and ensureQueryData functions are generated for GET operations; the others get a mutation hook.
| Type errors in the generated code, Stripe / GitHub APIs¹ |**0 / 0**| 274 / 0 | 219 / 1 | 0 / 0 |
95
-
96
-
¹ Measured on 2026-11-13 on an Apple M2 with Node.js 24 (generation time is the median wall-clock time of the CLI), with 4.0.0-beta.4, `@hey-api/openapi-ts` 0.99.0, Orval 8.46.0 and openapi-typescript 7.13.0 + openapi-react-query 0.5.4. Methods, the other specifications and type-checking times are on the [Benchmarks](https://orqc.7nohe.dev/guides/benchmarks/) page; the scripts are in [`benchmarks/`](./benchmarks). The [Comparison](https://orqc.7nohe.dev/guides/comparison/) page covers Kubb too, and what each tool generates in more detail.
97
-
98
-
**Scope**: this library is deliberately React-focused — use the hey-api plugin if you need non-React frameworks. Its [MSW mocks](https://orqc.7nohe.dev/guides/mocking/) answer with fixed values taken from the spec and keep no state; use Orval if you want randomly generated mock data.
83
+
Built only for React and TanStack Query v5: one command, with no configuration file, gives every GET operation a query hook, a suspense hook, a `queryOptions` factory, a prefetch function and an `ensureQueryData` function, and every other operation a mutation hook. The [Comparison](https://orqc.7nohe.dev/guides/comparison/) page has the details and when another tool fits better.
84
+
85
+
|| This library | Orval | Kubb | Hey API | openapi-react-query |
86
+
|---|---|---|---|---|---|
87
+
| Hooks per operation (`useQuery`, `useMutation`) | ✅ always | ✅ | With `hooks: true`| ❌ (documented output is options factories) | Runtime wrapper (`$api.useQuery("get", "/pets")`) |
88
+
| Suspense hooks | ✅ always | With `useSuspenseQuery`| With `suspense`| ❌ | ✅ (`$api.useSuspenseQuery`) |
| Type errors in the generated code, Stripe / GitHub APIs¹ |**0 / 0**| 219 / 1 | 0 / 0 | 274 / 0 | 0 / 0 |
101
+
102
+
The feature rows were checked against each tool's documentation on 2026-11-15 (Orval 8.48.0, Kubb 5.20.1 with `@kubb/plugin-react-query` 5.10.3, `@hey-api/openapi-ts` 0.99.0, openapi-react-query 0.5.4).
103
+
104
+
¹ Measured on 2026-11-13 on an Apple M2 with Node.js 24 (generation time is the median wall-clock time of the CLI), with 4.0.0-beta.4, Orval 8.46.0, Kubb 5.15.4 with `@kubb/plugin-react-query` 5.9.0, `@hey-api/openapi-ts` 0.99.0 and openapi-typescript 7.13.0 + openapi-react-query 0.5.4. Methods, the other specifications and type-checking times are on the [Benchmarks](https://orqc.7nohe.dev/guides/benchmarks/) page; the scripts are in [`benchmarks/`](./benchmarks).
105
+
106
+
**Scope**: this library is deliberately React-focused — use Orval, Kubb or Hey API if you need another framework. Its [MSW mocks](https://orqc.7nohe.dev/guides/mocking/) answer with fixed values taken from the spec and keep no state; use Orval or Kubb if you want randomly generated mock data.
99
107
100
108
**Coming from openapi-typescript / openapi-fetch / openapi-react-query?** See the [migration guide](https://orqc.7nohe.dev/guides/migrating-from-openapi-react-query/).
0 commit comments