Recommend Project: Kiota, Hono, tRPC
There are two good benefits:
- Avoid manual alignment of JSON interfaces
- The rise of edge services blurs the lines between client/server. First and foremost is Next.js’s introduction of server actions this year.
Other JavaScript frameworks also have similar capabilities:
hono.dev,
trpc.io
They all enable front-end and back-end to call a unified set of functions, known as RPC (Remote Procedure Call). For example, client.posts.get()
Microsoft also has an open-source project named Kiota, which generates cross-language client RPC code based on OpenAPI schemas.
These libraries have similar usage patterns but different focuses.
microsoft/kiota:
Below are the client languages that Kiota can generate based on OpenAPI.
Supported languages CSharp Go Java PHP Python Ruby Swift TypeScript JavaScript
Top comments (1)
alt: dev.to/titouancreach/how-i-replace...