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
@@ -27,7 +28,6 @@ description: Additional info about this project
27
28
-[**Revolt**](https://github.com/revoltchat/api): open source user-first chat platform
28
29
-[**Spacebar**](https://github.com/spacebarchat): a free, open source, self-hostable Discord-compatible chat/voice/video platform
29
30
-[**Supabase**](https://github.com/supabase/supabase): The open source Firebase alternative.
30
-
-[**Twitter API**](https://github.com/twitterdev/twitter-api-typescript-sdk): Official SDK for the Twitter API
31
31
32
32
## Project goals
33
33
@@ -54,8 +54,14 @@ These 2 projects are unrelated. openapi-typescript-codegen is a Node.js alternat
54
54
55
55
If you fit into this usecase, it’s a great experience! But for everyone else, openapi-typescript (and openapi-fetch) is a more flexible, lower-level solution that can work for any technology choice (or even be incrementally-adopted without any cost).
56
56
57
+
## Maintainers
58
+
59
+
This library is currently maintained by these amazing individuals:
@@ -27,34 +28,49 @@ description: Additional info about this project
27
28
-[**Revolt**](https://github.com/revoltchat/api): open source user-first chat platform
28
29
-[**Spacebar**](https://github.com/spacebarchat): a free, open source, self-hostable Discord-compatible chat/voice/video platform
29
30
-[**Supabase**](https://github.com/supabase/supabase): The open source Firebase alternative.
30
-
-[**Twitter API**](https://github.com/twitterdev/twitter-api-typescript-sdk): Official SDK for the Twitter API
31
31
32
32
## Project goals
33
33
34
+
### openapi-typescript
35
+
34
36
1. Support converting any valid OpenAPI schema to TypeScript types, no matter how complicated.
35
37
1. Generated types should be statically-analyzable and runtime-free (with minor exceptions like [enums](https://www.typescriptlang.org/docs/handbook/enums.html).
36
38
1. Generated types should match your original schema as closely as possible, preserving original capitalization, etc.
37
39
1. Typegen only needs Node.js to run (no Java, Python, etc.) and works in any environment.
38
40
1. Support fetching OpenAPI schemas from files as well as local and remote servers.
39
41
40
-
## Differences
42
+
### openapi-fetch
43
+
44
+
1. Types should be strict and inferred automatically from OpenAPI schemas with the absolute minimum number of generics needed.
45
+
2. Respect the native Fetch API while reducing boilerplate (such as `await res.json()`).
46
+
3. Be as light and performant as possible.
47
+
48
+
### openapi-react-query
49
+
50
+
1. Types should be strict and inferred automatically from OpenAPI schemas with the absolute minimum number of generics needed.
51
+
2. Respect the original `@tanstack/react-query` APIs while reducing boilerplate.
52
+
3. Be as light and performant as possible.
41
53
42
-
### vs. swagger-codegen
54
+
### swr-openapi
43
55
44
-
openapi-typescript was created specifically to be a lighter-weight, easier-to-use alternative to swagger-codegen that doesn’t require the Java runtime or running an OpenAPI server. Nor does it generate heavyweight client-side code. In fact, all the code openapi-typescript generates is **runtime free static types** for maximum performance and minimum client weight.
56
+
1. Types should be strict and inferred automatically from OpenAPI schemas with the absolute minimum number of generics needed.
57
+
2. Respect the original `swr` APIs while reducing boilerplate.
58
+
3. Be as light and performant as possible.
45
59
46
-
### vs. openapi-typescript-codegen
60
+
### openapi-metadata
47
61
48
-
These 2 projects are unrelated. openapi-typescript-codegen is a Node.js alternative to the original swagger-codegen, but ends up being the same in practice. openapi-typescript has the same advantage of being **runtime free** whereas openapi-typescript-codegen can generate some pretty heavy bundles, up to `250 kB` or more depending on the schema complexity.
62
+
1. Must respect the OpenAPI V3 specification
63
+
2. Be extensible and easily integrated inside backend frameworks
64
+
3. Be focused around developer experience
49
65
50
-
### vs. tRPC
66
+
##Maintainers
51
67
52
-
[tRPC](https://trpc.io/)is an opinionated type-safe framework for both server and client. It demands both your server and client be written in tRPC (which means Node.js for the backend).
68
+
This library is currently maintained by these amazing individuals:
53
69
54
-
If you fit into this use case, it’s a great experience! But for everyone else, openapi-typescript (and openapi-fetch) is a more flexible, lower-level solution that can work for any technology choice (or even be incrementally-adopted without any cost).
0 commit comments