Cuple RPC: Typesharing between frontend and backends made easy. The missing type-safety for full-stack.
from fxdave@lemmy.ml to programming@programming.dev on 03 Jun 20:45
https://lemmy.ml/post/16434672
from fxdave@lemmy.ml to programming@programming.dev on 03 Jun 20:45
https://lemmy.ml/post/16434672
Hey, I’m not a fan of advertising libraries, but otherwise, nobody will know them. I think this package is really spot on and solves many issues with current web technologies.
I’d like to continue this project. If you found it interesting please give some feedback.
github.com/fxdave/cuple
intro: The Missing Type-Safety for Full-Stack
threaded - newest
How does it compares to GraphQL?
Thanks for the question. GraphQL works with multiple languages, Cuple works only with Typescript. Despite this drawback this also gives you some advantages:
Practically it means less boilerplate and it let’s you focus on the feature you write. Cuple is also not a query language, you get what the server sends you, it’s more likely a type-safe FFI binding. With Cuple you can build a REST API, or anything similar to that with HTTP method, header, path, query, body, and you can use it type-safely.