HNHacker News
TopNewBestAskShowJobs

GinQuin

2 karma · joined May 9, 2022

submissionscomments
GinQuin··on What if you could call your server functions directly from your client?
I created an issue here for the sendBeacon feature if you want to share your ideas: https://github.com/digital-loukoum/gravity/issues/1
GinQuin··on What if you could call your server functions directly from your client?
Your welcome, I hope you will enjoy it!

I just released a fix for React/Next stores, so make sure you are using the latest Gravity version ;)

GinQuin··on What if you could call your server functions directly from your client?
The `navigator.sendBeacon()` is an awesome idea, I will definitly implement it in the future (it’s not so hard to do actually).

I would also like to think about how to have the same « safe » communication system for sockets. It’s more complicated.

What do you mean by call/result logging?

GinQuin··on What if you could call your server functions directly from your client?
I just released Gravity, an open-source JS/TS framework that let you call functions defined server-side directly in your client.

Gravity is a new way to communicate between server and client. No more query language to learn. No more unsafe REST apis. Just 100% end-to-end typesafe good old functions.

It can integrate with modern front-end frameworks like React, Svelte, Solid and Vue.

I’m already using it on the SAAS I’m working on full-time, hope you will like it as much as I do