by _query · 4y ago · 0 comments
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 It's running on Vercel here: 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
Here's a quick example of using it as a library in your own code.
https://gist.github.com/dosco/2422006fe322bd81c00988570f50a5...
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.
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!
Thin was on the Frontpage of HN around a month ago: https://news.ycombinator.com/item?id=31164799