-
|
Hi 👋 First off: great work on oRPC — I really like the contract-first approach and the focus on type safety across the whole pipeline. I want to confirm whether oRPC fully supports a use case I’m evaluating it for. ContextI currently have:
The main problem I’m trying to solve:
This is where oRPC looks very promising, potentially replacing:
What I want to confirm1. oRPC as a typed HTTP client for 3rd-party APIs (no server)Is this a supported and intended usage?
Essentially:
2. OpenAPI → oRPC → HTTP client (no manual contract writing)For APIs that do provide OpenAPI specs:
No proxy server, just: 3. Replacing tRPC for BFF ↔ frontendFinally:
Summary questionIf all of the above is supported, then oRPC would be a full, unified solution for:
Before committing to a migration from tRPC, I want to confirm: Thanks in advance — happy to clarify or provide a concrete example if helpful. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hi @stychu! I'm Dosu and I’m helping the orpc team. Yes, oRPC supports the unified usage you described and this approach is aligned with its design goals.
Caveats & limitations:
Best practices:
This usage pattern is actively supported and matches the direction of oRPC’s ecosystem. If you want concrete code examples or have edge-case requirements, let me know! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
I’m confident that oRPC currently supports your use cases, though not 100%. There are a few edge cases: for example, how oRPC determines whether a request contains file uploads or JSON data if Content-Type=Applidation/JSon. Right now, it’s treated as JSON if there's no Content-Disposition header, which can be misleading in some cases. These will be improved in v2. |
Beta Was this translation helpful? Give feedback.
I’m confident that oRPC currently supports your use cases, though not 100%. There are a few edge cases: for example, how oRPC determines whether a request contains file uploads or JSON data if Content-Type=Applidation/JSon. Right now, it’s treated as JSON if there's no Content-Disposition header, which can be misleading in some cases. These will be improved in v2.