Cut Out the Middle Tier: Generating JSON Directly from Postgres

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. htmx

    </> htmx - high power tools for HTML

    > Too often, web tiers are full of boilerplate that does nothing except convert a result set into JSON.

    Yeah. This is the problem: we've abandoned the hypermedia architecture of the web for a dumb-data, RPC model. I suppose if you are going to go that direction and things are simple enough, you can jam it in the DB and get smoking perf.

    But as things get more complicated, where does the business logic live? Maybe in the database as stored procedures? It's less crazy than it sounds.

    An alternative is to cut out the other middle man: JSON, ditch heavy front-end javascript and return HTML instead, going back to the hypermedia approach. The big problem with that is a step back in UX functionality, but there are tools[1][2][3] for addressing that.

    [1] - https://htmx.org (my library)

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. hotwire-rails

    Discontinued Use Hotwire in your Ruby on Rails app

  4. fquery

    A graph query engine (by adsharma)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Ask HN: Do we need JavaScript web frameworks?

    3 projects | news.ycombinator.com | 17 Dec 2021
  • Ask HN: Modern Alternatives to Spas

    2 projects | news.ycombinator.com | 10 Nov 2021
  • Ask HN: Why aren’t frameworks like htmx more popular?

    2 projects | news.ycombinator.com | 10 Oct 2021
  • Using npm libraries with Hunchentoot

    3 projects | /r/lisp | 25 May 2022
  • Your API Doesn’t Always Need to Be a Product

    1 project | dev.to | 14 Jan 2025

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?