7 ms·
If you're looking for something like GraphJin, PostGraphile or Hasura but with less boilerplate and complexity, more end-to-end typesafe approach and optimistic
by _query 4y ago
If you're looking for something like GraphJin, PostGraphile or Hasura but with less boilerplate and complexity, more end-to-end typesafe approach and optimistic updates, check out Thin Backend https://thin.dev/ https://thin.dev/ (https://github.com/digitallyinduced/thin-backend https://github.com/digitallyinduced/thin-backend)
Thin Backend takes a bit more of a higher level approach to database operations than services like GraphJin, but solves fundamentally the same problem. Doing things in a more structured way also allows us to do things like optimistic updates by default that require manual work with GraphQL tools.
To see some code examples, here's a small example project done with thin-backend: https://github.com/digitallyinduced/thin-backend-todo-app https://github.com/digitallyinduced/thin-backend-todo-app It's running on Vercel here: https://thin-backend-todo-app.vercel.app/ https://thin-backend-todo-app.vercel.app/
If you're interested in how building a small demo app with Thin looks like, check this video https://youtu.be/-jj19fpkd2c https://youtu.be/-jj19fpkd2c
- MarkMarine 4y ago> less boilerplate and complexity Kind of lame to pitch this in the comments on GraphJin. Make your own post and try to get on the front page on your own merits without bagging on this.
- _query 4y agoWe have a couple users recently that are switching from different GraphQL services, so I expect this to be relevant for people checking out GraphJin :) Thin was on the Frontpage of HN around a month ago: https://news.ycombinator.com/item?id=31164799 https://news.ycombinator.com/item?id=31164799
- verdverm 4y agoI tend to disagree. A lot of discovery happens on HN. Many posts will have alternatives posted in the comments. Often the creator is the best to provide links and describe the differences. My alternative is a generalized DSL to code framework powered by CUE. You can write directly in the output and later regen because it uses diff3. Generate all the things in any languages! https://docs.hofstadter.io https://docs.hofstadter.io
- gsvclass 4y agoHappy you're sharing this on here, glad to have more options on the table. However I will say GraphJin is not complex to use nor does it have any boilerplate. It's feature rich and hence has knobs to help you tune it to your needs. However it's defaults are well thought out and so should work out of the box in most cases. For example to use GraphJin as a library in your own code this is all it takes. Here's a quick example of using it as a library in your own code. https://gist.github.com/dosco/2422006fe322bd81c00988570f50a59c https://gist.github.com/dosco/2422006fe322bd81c00988570f50a5...