What is the best PostgreSQL library for Node.js / JavaScript?

This page summarizes the projects mentioned and recommended in the original post on /r/learnjavascript

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.io
featured
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
  • PostgreSQL

    PostgreSQL client for node.js.

  • Then you should look at https://www.npmjs.com/package/pg. If you want to write raw queries this will do the job for you !

  • TypeORM

    ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.

  • don't use TypOrm, since its future and funding are unclear and has over 1,5k open issues on github.

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

    A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.

  • slonik is great because it lets you write plain sql queries, while preventing sql injections. It also has good transaction and TypeScript support

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

  • Slonik: A PostgreSQL client with strict types, detailed logging, and assertions

    8 projects | news.ycombinator.com | 10 Mar 2021
  • Drizzle is just as unready for prime-time as Prisma, what else is there?

    12 projects | /r/reactjs | 6 Dec 2023
  • An effective way to build a heavy CRUD Rest API?

    2 projects | /r/node | 29 Nov 2023
  • Authentication part 3 using NestJS and Postgres database neon.tech

    4 projects | dev.to | 25 Oct 2023
  • PostgresJs: The Fastest full featured PostgreSQL client for Node.js and Deno

    16 projects | news.ycombinator.com | 14 Oct 2023