pgrx VS json-api

Compare pgrx vs json-api and see what are their differences.

pgrx

Build Postgres Extensions with Rust! (by pgcentralfoundation)

json-api

A specification for building JSON APIs (by json-api)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
pgrx json-api
13 59
3,245 7,327
3.3% 0.3%
9.5 5.2
6 days ago 10 days ago
Rust CSS
GNU General Public License v3.0 or later Creative Commons Zero v1.0 Universal
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

pgrx

Posts with mentions or reviews of pgrx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-08.
  • Building a Managed Postgres Service in Rust
    5 projects | news.ycombinator.com | 8 Apr 2024
    Consider also the companies and work behind pgrx [0] and pgzx [1]:

    [0] https://github.com/pgcentralfoundation/pgrx

    [1] https://github.com/xataio/pgzx

  • UUIDv7 is coming in PostgreSQL 17
    5 projects | news.ycombinator.com | 5 Feb 2024
    If you like this (I do very much), you might also like pg_idkit[0] which is a little extension with a bunch of other kinds of IDs that you can generate inside PG, thanks to the seriously awesome pgrx[1] and Rust.

    [0]: https://github.com/VADOSWARE/pg_idkit

    [1]: https://github.com/pgcentralfoundation/pgrx

  • 90x Faster Than Pgvector – Lantern's HNSW Index Creation Time
    7 projects | news.ycombinator.com | 2 Jan 2024
    (disclosure, i work at supabase and have been developing TLEs with the RDS team)

    Trusted Language Extensions refer to an extension written in any trusted language. In this case Rust, but it also includes: plpgsql, plv8, etc. See [0]

    > PL/Rust is a more performant and more feature-rich alternative to PL/pgSQL

    This is only partially true. plpgsql has bindings to low-level Postgres APIs, so in some cases it is just as fast (or faster) than Rust.

    > Building a vector index (or any index for that matter) inside Postgres is a more involved process and can not be done via the UDF interface, be it Rust, C or PL/pgSQL

    Most PG Rust extensions are written with the excellent pgrx framework [1]. While it doesn't have index bindings right now, I can certainly imagine a future where this is possible[2].

    All that said - I think there are a lot of hoops to jump through right now and I doubt it's worth it for the Latern team. I think they are right to focus on developing a separate C extension

    [0] TLE: https://supabase.com/blog/pg-tle

    [1] pgrx: https://github.com/pgcentralfoundation/pgrx

    [2] https://github.com/pgcentralfoundation/pgrx/issues/190#issue...

  • SQL as API
    7 projects | news.ycombinator.com | 25 Dec 2023
    I’m currently playing with PostgreSQL, foreign data wrappers, and pgrx rust extensions. My development experience has been surprisingly smooth and enjoyable.

    My main issue is that joins will be processed locally, so all the foreign data will be fetched before the join happens. But otherwise basic CRUD is easy.

    https://wiki.postgresql.org/wiki/Foreign_data_wrappers

    https://github.com/pgcentralfoundation/pgrx

    https://github.com/supabase/wrappers

  • Postgres: The Next Generation
    4 projects | news.ycombinator.com | 10 Oct 2023
    I think maybe what you’re really looking for are the files here: https://github.com/pgcentralfoundation/pgrx/tree/c2eac033856...

    Those are the internals we currently expose as unsafe “sys” bindings.

    As we/contributors identify more that are desired we add them.

    pgrx’ focus is on providing safe wrappers and general interfaces to the Postgres internals, which is the bulk of our work and is what will take many years.

    As unsafe bindings go, we could just expose everything, and likely eventually will. There’s just some practical management concerns around doing that without a better namespace organization —- something we’ve been working.

    The Postgres sources are not small. They are very complex, inconsistent in places, and often follow patterns that are specific to Postgres and not easy to generalize.

    If you’ve never built an extension with pgrx, give it a shot one afternoon. It’s very exciting to see your own code running in your database.

  • Pgrx – Build Postgres Extensions with Rust
    1 project | news.ycombinator.com | 8 Oct 2023
  • Pg_bm25: Elastic-Quality Full Text Search Inside Postgres
    6 projects | news.ycombinator.com | 8 Oct 2023
    pgrx is one of the greatest enabling innovations in the PG ecosystem in a long time.

    Awesome to see so many high quality extensions come out of it.

    https://github.com/pgcentralfoundation/pgrx

  • PGRX v0.9.7
    1 project | /r/rust | 29 Jun 2023
  • Let's make PostgreSQL multi-threaded (pgsql-hackers)
    1 project | /r/PostgreSQL | 18 Jun 2023
  • Build high-performance functions in Rust on Amazon RDS for PostgreSQL
    2 projects | /r/rust | 24 May 2023
    If you're interested in what my Threadripper 3970X does with it, there's some numbers in this PR: https://github.com/tcdi/pgrx/pull/1147

json-api

Posts with mentions or reviews of json-api. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-22.
  • Hatchify: The Fastest Way to Build JSON: APIs
    2 projects | dev.to | 22 Mar 2024
    In addition to saving you time on boilerplate, the API provided by Hatchify fully implements the JSON: API specification, which stipulates solid standards to define the peculiarities of CRUD REST APIs. Get back all the time spent bike-shedding how to implement standard API features like filtering, pagination, including related data, etc. JSON: API offers consistent practices for frontend and backend developers to agree on how resources are fetched and returned. Since Hatchify provides the core of your API for you, you can count on it’s standardized functionality to give your API a consistent start.
  • SQL as API
    7 projects | news.ycombinator.com | 25 Dec 2023
  • Show HN: Sunnybox – An Email API for Effortless IMAP Integration
    2 projects | news.ycombinator.com | 21 Dec 2023
    -JSON:API format responses (https://jsonapi.org) for better standardization.

    Built using Ruby on Rails, Sunnybox is designed to offer a powerful yet easy-to-use solution for developers managing email systems.

    I'd really appreciate your feedback on:

    - The API's user-friendliness and efficiency.

  • What if an SQL Statement Returned a Database?
    4 projects | news.ycombinator.com | 12 Dec 2023
    https://github.com/json-api/json-api/issues/795

    There is an atomic operations extension:

  • A View on Functional Software Architecture
    5 projects | dev.to | 10 Dec 2023
    JSON:API to format each message
  • Custom Fields: Give Your Customers the Fields They Need
    1 project | dev.to | 6 Dec 2023
    As we’re building a RESTful API that’s formatted by the JSON:API specification and store our data in a MySQL8 relational database, a few things were pretty straightforward – we need a new model and we’ll name it Custom Field (naming wasn’t an issue here 🥲).
  • How to (and how not to) design REST APIs
    3 projects | news.ycombinator.com | 1 Nov 2023
    I found json api spec[1] recently. This kind of is better standard for REST APIs. It is bit rough to handle client side but once you get the hang of it, it is breeze to use

    [1] https://jsonapi.org/

  • Building a Secure RESTful API Using NestJS and Prisma With Minimum Code
    5 projects | dev.to | 6 Sep 2023
    That's it! Now we have a complete set of RESTful CRUD APIs at "/api/zen" that conforms to the JSON:API specification, and the access policies fully protect the APIs. The API provides rich filtering and relation-fetching capabilities. The following are some examples; you can find more details here.
  • JSON Schema Store
    5 projects | news.ycombinator.com | 20 Aug 2023
    Does this have any relation to https://jsonapi.org/ ?
  • An Introduction to APIs
    2 projects | news.ycombinator.com | 30 Jul 2023
    Basic REST and JSON RPC are very simple to start with, but have common problems when application gets bigger. How do you represent relations, pagination, filtering etc? My go-to specification for structuring JSON documents is https://jsonapi.org/ It covers most basic needs of a standard API.

What are some alternatives?

When comparing pgrx and json-api you can also consider the following projects:

api - 🚀 Core REST API & Gateway for Zaun

NSwag - The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.

plrust - A Rust procedural language handler for PostgreSQL

api-guidelines - Microsoft REST API Guidelines

readyset - Readyset is a MySQL and Postgres wire-compatible caching layer that sits in front of existing databases to speed up queries and horizontally scale read throughput. Under the hood, ReadySet caches the results of cached select statements and incrementally updates these results over time as the underlying data changes.

laravel-json-api - JSON API (jsonapi.org) package for Laravel applications.

mimir - ⚡ Supercharged Flutter/Dart Database

apollo - 🚀 Apollo/GraphQL integration for VueJS

paradedb - Postgres for Search and Analytics

grpcurl - Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers

influxdb_iox - Pronounced (influxdb eye-ox), short for iron oxide. This is the new core of InfluxDB written in Rust on top of Apache Arrow.

grpc-swift - The Swift language implementation of gRPC.