pgx VS Typesense

Compare pgx vs Typesense and see what are their differences.

pgx

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

Typesense

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences (by typesense)
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
pgx Typesense
19 131
2,376 18,107
- 3.4%
9.6 9.8
about 1 year ago 1 day ago
Rust C++
MIT License GNU General Public License v3.0 only
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.

pgx

Posts with mentions or reviews of pgx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-05.
  • Write Postgres functions in Rust
    3 projects | /r/rust | 5 Apr 2023
    It uses pgx (https://github.com/tcdi/pgx) which is our more generalized framework for developing Postgres extensions with Rust.
  • Why not Rust for Omnigres?
    2 projects | dev.to | 6 Jan 2023
    It's a great question, considering I've been using Rust for a number of years now, and I generally advocate its use for its rich ecosystem, safety and tooling. I actively contribute to pgx, a library for building Postgres extensions in Rust. Yet, Omnigres appears to be all done in C.
  • Supabase Wrappers: A Framework for Building Postgres Foreign Data Wrappers
    14 projects | news.ycombinator.com | 15 Dec 2022
    Our release today is a framework which extends this functionality to other databases/systems. If you’re familiar with Multicorn[1] or Steampipe[2], then it’s very similar. The framework is written in Rust, using the excellent pgx[3].

    We have developed FDWs for Stripe, Firebase, BigQuery, Clickhouse, and Airtable (all in various “pre-release” states). The plan is to focus on the tools we’re using internally while we stabalize the framework.

    There’s a lot in the blog post into our goals for this release. It’s early, but one of the things I’m most excited about.

    [0] Postgres FDW: [https://www.postgresql.org/docs/current/sql-createforeigndat...

    [1] Multicorn: https://multicorn.org/

    [2] Steampipe: https://steampipe.io/

    [2] pgx: [https://github.com/tcdi/pgx](https://github.com/tcdi/pgx)

  • Apache Age, a PostgreSQL Extension with Graph Database Functionality
    3 projects | news.ycombinator.com | 2 Nov 2022
  • Postgres FTS vs the new wave of search engines
    3 projects | /r/PostgreSQL | 14 Oct 2022
    BTW one nice easter egg is that with pgx there is actually no reason that we can't build even better search solutions inside the database itself.
  • Postgres Full Text Search vs. the Rest
    21 projects | news.ycombinator.com | 14 Oct 2022
    > That thread led me to a project/product idea where you take an existing Postgres instance used for normal products or whatever, replicate it to various read only clusters with a custom search extension loaded and some orchestrator sitting on top (I’ve written most of one in rust that uses 0mq to communicate with it’s nodes) and create drop in search from existing databases with a nice guided web gui for automatic tuning suitable for most business use cases.

    Very interesting idea -- just want to add one thing, write it in rust (with pgx?[0]) :)

    [0]: https://github.com/tcdi/pgx

  • Show HN: pg_idkit, a Postgres extension for generating exotic UUIDs
    3 projects | news.ycombinator.com | 11 Sep 2022
    Hey HN,

    It turns out choosing a good database-optimized UUID (and deciding whether to use serial, etc) isn't quite so simple, and I finally got a chance to do some exploration, write about it[0].

    One of the reasons Postgres is the best open source database out there is it's extensibility -- so I hacked up a small extension for generating some of the more exotic (but crucially, lexicograhically sortable) UUID generation mechanisms:

    https://github.com/t3hmrman/pg_idkit

    This idea has been bumbling around my head for a while, but I finally got a chance to build it while working with Supabase on a post about IDs[0]!

    Most of the heavy lifting is done by pgx[1] which is an amazing framework for building Postgres extensions in Rust. I think we are very early to the trend of amazing postgres extensions built in Rust, and it's yet another reason that it's an exciting time to be all-in on Postgres.

    [0]: https://supabase.com/blog/choosing-a-postgres-primary-key

    [1]: https://github.com/tcdi/pgx

    [0]: https://supabase.com/blog/choosing-a-postgres-primary-key

  • Introducing pg_idkit: an extension for generating lexicographically sortable UUIDs (UUIDv6-8, CUID, Timeflake) in Postgres
    2 projects | /r/PostgreSQL | 9 Sep 2022
    The extension is still WIP but for those of ya'll that like Rust it's built on pgx which has excellent DX. The rust involved isn't complicated -- I'm basically laundering the functionality from other crates that are listed in the README.md.
  • GitHub - supabase/pg_jsonschema: PostgreSQL extension providing JSON Schema validation
    2 projects | /r/PostgreSQL | 23 Jul 2022
    Seems to be using this: https://github.com/tcdi/pgx
  • Show HN: Pg_jsonschema – A Postgres extension for JSON validation
    8 projects | news.ycombinator.com | 21 Jul 2022
    - https://github.com/furstenheim/is_jsonb_valid

    pgx[0] is going to be pretty revolutionary for the postgres ecosystem I think -- there is so much functionality that can be utilized at the database level and I can't think of a language I want to do it with more than Rust.

    [0]: https://github.com/tcdi/pgx

Typesense

Posts with mentions or reviews of Typesense. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-03.
  • FlowDiver: The Road to SSR - Part 1
    3 projects | dev.to | 3 May 2024
    Disregarding props-drilling technique in favor of a more reliable and elegant solution we looked for inspiration elsewhere. Another project of ours .find was using Typesense/Algolia components, which looked a bit like black-box/magic, but at the same time provided a clean approach to build complex and highly customizable solutions.
  • Release Radar · April 2024 Edition: Major updates from the open source community
    12 projects | dev.to | 3 May 2024
    Have you ever tried to look up something, only to realise your search engine doesn't recognise your typos? Typesense to the rescue! It's a fast, typo-tolerant search engine built for an easier browsing experience. The latest version comes with new features such as built-in conversational search, image search, voice search, analytics, and more. Dive into the release notes for the full list of changes and enhancements.
  • Website Search Hurts My Feelings
    2 projects | news.ycombinator.com | 26 Dec 2023
    There are actually plenty of non-ES products that are way easier to integrate and tune (and get better results with less effort).

    - Typesense (https://github.com/typesense/typesense)

    - Algolia

    - Google Programmable Search Engine (https://programmablesearchengine.google.com/about/)

  • Remote Machine Learning and Searching on a Raspberry Pi 5
    2 projects | /r/immich | 11 Dec 2023
  • Open Source alternatives to tools you Pay for
    21 projects | dev.to | 8 Dec 2023
    Typesense - Open Source Alternative to Algolia
  • DNS record "hn.algolia.com" is gone
    3 projects | news.ycombinator.com | 9 Oct 2023
    If you like your penny take a look at Typesense https://typesense.org/ - nothing to complain here. Especially nothing complain about pricing.
  • Vector databases: analyzing the trade-offs
    5 projects | news.ycombinator.com | 20 Aug 2023
    I work on Typesense [1] (historically considered an open source alternative to Algolia).

    We then launched vector search in Jan 2023, and just last week we launched the ability to generate embeddings from within Typesense.

    You'd just need to send JSON data, and Typesense can generate embeddings for your data using OpenAI, PaLM API, or built-in models like S-BERT, E-5, etc (running on a GPU if you prefer) [2]

    You can then do a hybrid (keyword + semantic) search by just sending the search keywords to Typesense, and Typesense will automatically generate embeddings for you internally and return a ranked list of keyword results weaved with semantic results (using Rank Fusion).

    You can also combine filtering, faceting, typo tolerance, etc - the things Typesense already had.

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

    [2] https://typesense.org/docs/0.25.0/api/vector-search.html

  • Creating an advanced search engine with PostgreSQL
    9 projects | news.ycombinator.com | 12 Jul 2023
    For something small with a minimal footprint, I'd recommend Typesense. https://github.com/typesense/typesense
  • Obsidian Publish full text search
    1 project | /r/ObsidianMD | 28 Jun 2023
    I haven’t used Publish, but I’d assume you could use something like https://typesense.org/ to index and search the vault.
  • DynamoDB search options
    1 project | /r/aws | 18 May 2023
    A cheaper option would be to use https://typesense.org. You can use DynamoDb streams to automatically load records. It has worked well for me.

What are some alternatives?

When comparing pgx and Typesense you can also consider the following projects:

tauri - Build smaller, faster, and more secure desktop applications with a web frontend.

MeiliSearch - A lightning-fast search API that fits effortlessly into your apps, websites, and workflow

code - Source code for the book Rust in Action

Elasticsearch - Free and Open, Distributed, RESTful Search Engine

bevy - A refreshingly simple data-driven game engine built in Rust

Apache Solr - Apache Lucene and Solr open-source search software

postgrest - REST API for any Postgres database

meilisearch-laravel-scout - MeiliSearch integration for Laravel Scout

supabase-graphql-example - A HackerNews-like clone built with Supabase and pg_graphql

loki - Like Prometheus, but for logs.

feophant - A PostgreSQL inspired SQL database written in Rust.

sonic - 🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.