Fully featured Repository Pattern with Typescript and native PostgreSQL driver

This page summarizes the projects mentioned and recommended in the original post on dev.to

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. repository-pattern-example

    All source code can be found here. Also for fans of functional programming, which I am, I prepared my own version in folders/files with the prefix fp.

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. node-pg-migrate

    Node.js database migration management for PostgreSQL

    Why PG? For the clarity of the article to a large circle of developers, the entire explanation will be built by PostgreSQL and PG package. And in a real project, the database schema will change over time, and in order to be able to perform migrations, we will use Node PG migrate.

  4. fastify

    Fast and low overhead web framework, for Node.js

    I suggest to start explain how it is work in real project from main.ts file. For routing I like to use fastify. But for example we will use architecture with repositories > handlers layers. For real project you need to use repositories > services > handlers layers for easier code maintainability in future. All repository calls need to be proxied by services, no direct calls repositories in handlers must not be.

  5. PostgreSQL

    PostgreSQL client for node.js.

    Why PG? For the clarity of the article to a large circle of developers, the entire explanation will be built by PostgreSQL and PG package. And in a real project, the database schema will change over time, and in order to be able to perform migrations, we will use Node PG migrate.

  6. Apache HBase

    Apache HBase

    For this type of systems PostgreSQL not best solution, and for a number of reasons like lack of replication out of the box. And we strictly must not have «Vendor lock», and therefore also did not take modern SQL databases like Amazon Aurora. And end of the ends the choice was made in favor Cassandra, for this article where we will talking about low-lever implementation of Repository Pattern it is not important, in your case it can be any unpopular database like HBase for example.

  7. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
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

  • Is the MERN stack still worth learning?

    4 projects | /r/webdev | 2 May 2023
  • What is the best way to connect react native mobile app with SQL server database?

    3 projects | /r/reactnative | 27 Jun 2022
  • You don’t need 20 tools. Just use Postgres (seriously!)

    6 projects | dev.to | 28 Aug 2025
  • Database Setup for Smart Village Project: A Complete Windows Guide

    1 project | dev.to | 16 Aug 2025
  • Writing a storage engine for Postgres: an in-memory Table Access Method

    1 project | news.ycombinator.com | 7 Aug 2025