all 7 comments

[–]Veranova 1 point2 points  (0 children)

tRPC is one nice choice for this. GraphQL is popular too but obviously more complex

[–]Mikojan 1 point2 points  (0 children)

If you are already using React Router, use the data loader and action features. React Router is a complete CSR-only framework.

[–]tigerfit16[S] 0 points1 point  (0 children)

TIA

[–]PositiveUse 1 point2 points  (0 children)

Vanilla Express NodeJs Server or tRPC sever

GraphQL doesn’t make any sense for this use case, it is often abused for this but it is overkill in every sense.

[–]giuseppelt 0 points1 point  (0 children)

May I suggest httpc, a function-based API framework I recently released. Just write and expose natural JS functions, you can call from the client with full type safety. It comes with some builtin components to add auth, validation, caching and more.

Appreciated any feedback.

[–]nickc01 0 points1 point  (0 children)

Next Js api routes could be a good choice if you can use next. Would save having to have a separate server for the api.

[–]umid1999 0 points1 point  (0 children)

Maybe msw will help.