GraphQL is now available on Supabase

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

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • supabase-graphql-example

    A HackerNews-like clone built with Supabase and pg_graphql

  • agreed :) if you want to see the demo that The Guild [0] built using pg_graphql, see here: https://supabase-graphql-example.vercel.app/

    Also congrats for their own launch today - GraphQL Yoga 2.0: https://www.the-guild.dev/blog/announcing-graphql-yoga-2

    [0] The Guild: https://www.the-guild.dev/

  • supabase

    The open source Firebase alternative.

  • > entire solution from docker

    We PR'd this into our docker-compose today [0]. We're always a bit slammed during Launch Week, so if you spot any problems let use know and we'll patch it up asap.

    The extension is also deployed directly into our PG bundle [1] which is available in docker [2]

    > The Gui for adding roles and tying them to postgres access is very slick with hasura. Is this done manually via SQL commands with supabase?

    I haven't tried Hasura so I don't know if this is a direct comparison. pg_graphql works with Postgres Row Level Security - we provide a GUI for this in our Dashboard, but they are also just native PG Policies, so you can write them in raw SQL

    [0] https://github.com/supabase/supabase/pull/6138/files#diff-41...

    [1] https://github.com/supabase/postgres

    [2] https://hub.docker.com/r/supabase/postgres

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • pg_graphql

    GraphQL support for PostgreSQL

  • hey HN, supabase ceo here. I'm really excited about this release.

    Our GraphQL implementation is built on top of pg_graphql[0], a PostgreSQL extension we open-sourced a few months ago. The implementation works with a lot of native PG functionality (like Row Level Security). You can also do a some neat things with PG GRANTS, enabling/disabling access to different tables/columns to effectively serve a different GraphQL API depending who is "logged in".

    On Supabase, the extension is served via PostgREST[1] using the public PostgreSQL function exposed by pg_graphql. PostgREST exposes PG functions as RPC routes (in our case we also map /rest/v1/rpc/graphql => /graphql/v1)

    I'll ping the main dev (@oli_rice) and make sure he is here to answer any technical questions. This is just one of the exciting features we're launching this week. Stay tuned for one of our most-requested features later this week.

    [0] pg_graphql: https://github.com/supabase/pg_graphql

    [1] PostgREST: https://postgrest.org/

  • postgrest

    REST API for any Postgres database

  • hey HN, supabase ceo here. I'm really excited about this release.

    Our GraphQL implementation is built on top of pg_graphql[0], a PostgreSQL extension we open-sourced a few months ago. The implementation works with a lot of native PG functionality (like Row Level Security). You can also do a some neat things with PG GRANTS, enabling/disabling access to different tables/columns to effectively serve a different GraphQL API depending who is "logged in".

    On Supabase, the extension is served via PostgREST[1] using the public PostgreSQL function exposed by pg_graphql. PostgREST exposes PG functions as RPC routes (in our case we also map /rest/v1/rpc/graphql => /graphql/v1)

    I'll ping the main dev (@oli_rice) and make sure he is here to answer any technical questions. This is just one of the exciting features we're launching this week. Stay tuned for one of our most-requested features later this week.

    [0] pg_graphql: https://github.com/supabase/pg_graphql

    [1] PostgREST: https://postgrest.org/

  • Had a lot of fun collaborating with you on the supabase pg_graphql example, which of course is a HackerNews clone! https://github.com/supabase-community/supabase-graphql-examp...

  • postgres

    Unmodified Postgres with some useful plugins (by supabase)

  • > entire solution from docker

    We PR'd this into our docker-compose today [0]. We're always a bit slammed during Launch Week, so if you spot any problems let use know and we'll patch it up asap.

    The extension is also deployed directly into our PG bundle [1] which is available in docker [2]

    > The Gui for adding roles and tying them to postgres access is very slick with hasura. Is this done manually via SQL commands with supabase?

    I haven't tried Hasura so I don't know if this is a direct comparison. pg_graphql works with Postgres Row Level Security - we provide a GUI for this in our Dashboard, but they are also just native PG Policies, so you can write them in raw SQL

    [0] https://github.com/supabase/supabase/pull/6138/files#diff-41...

    [1] https://github.com/supabase/postgres

    [2] https://hub.docker.com/r/supabase/postgres

  • http-proxy

    A full-featured http proxy for node.js

  • There's several ways to have a blog path contain a separate setup from the marketing/product routes.

    One is to run a reverse proxy on the root domain to pull in separate routes for various services.

    https://github.com/http-party/node-http-proxy

    You can do rewrites at the server level for the root domain

    Or if the app on the root domain can do the routing for you (have done this before with a Rails app)

  • 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.

    InfluxDB logo
  • edgedb

    A graph-relational database with declarative schema, built-in migration system, and a next-generation query language

  • EdgeDB [1] has indeed a rich GraphQL layer, but it's a very different project.

    While it also builds on top of Postgres, EdgeDB replaces the entire relational database front-end. EdgeDB features a SQL replacement language called EdgeQL (analytical capabilities of SQL married with deep-fetching in GraphQL), a higher-level data model (tables -> object types), integrated migrations engine, a custom protocol with great performance & great client APIs, and many other things. Read more here [2].

    (disclaimer: I'm EdgeDB co-founder)

    [1] https://github.com/edgedb/edgedb

    [2] https://www.edgedb.com/blog/edgedb-1-0

  • crystal

    🔮 Graphile's Crystal Monorepo; home to Grafast, PostGraphile, pg-introspection, pg-sql2 and much more! (by graphile)

  • Hi all, this sounds very cool. How does pg_graphql compare to Postgraphile? https://github.com/graphile/postgraphile (besides I guess running in the DB with PLpgSQL instead of as a NodeJS server)

    Did you think about integrating Postgraphile with the Supabase ecosystem or have specific limitations with it?

    Thanks!

  • graphjin

    GraphJin - Build NodeJS / GO APIs in 5 minutes not weeks

  • Also checkout GraphJin an automatic GraphQL to SQL service in Go. It's packed with features including support for GraphQL subscriptions, etc and can be used as a standalone service or a library. Also it's a pure OSS project not a startup. https://github.com/dosco/graphjin

  • nhost

    The Open Source Firebase Alternative with GraphQL.

  • Congratulations on the GraphQL launch. I think it is a step in the right direction :)

    I see a lot of mentions of Hasura in the comments.

    If you'd like what Supabase is building but prefer using Hasura you might want to check out what we're building at Nhost (http://nhost.io/). We use Hasura's GraphQL Engine for the API layer while also providing Postgres, Auth, Storage and Serverless Functions.

    (CEO of Nhost)

  • pgx

    Discontinued Build Postgres Extensions with Rust! [Moved to: https://github.com/tcdi/pgrx] (by tcdi)

  • Yes! We've been exploring https://github.com/tcdi/pgx internally so we'd be able to re-work the hotspots in rust.

    We haven't decided to go that route yet but its been incredibly easy to work with & I'm psyched about what options it could open up like:

    - Stateless requests (no schema cache)

    - Subscriptions (via a background worker)

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