pg-promise
next-auth-example
Our great sponsors
pg-promise | next-auth-example | |
---|---|---|
17 | 10 | |
3,410 | 3,277 | |
- | 3.4% | |
5.8 | 8.9 | |
7 days ago | 7 days ago | |
JavaScript | TypeScript | |
MIT License | ISC License |
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.
pg-promise
-
Ask HN: Why are so many PHP projects moving to Node?
I've always loved this project / product:
https://github.com/outline/outline
I think the guy who built it posts here. There's also pg-promise, a "Postgres interface for Node.js":
-
Which ORM do you prefer with nodejs/Typescript project and why ?
Raw pgPromise with string templating.
-
Is my health check endpoint good enough?
i do have a couple of them like websocket server using ws, bullmq for sending emails and postgres listen/notify to push data to websocket clients. Would you happen to have any ideas on how to go about these? I did some research
I use redis, sequelize and PG Listen/Notify via Robust Listeners with a websocket server coded in ws
-
What package do you guys use for postgres in node js?
Is there any difference to the named parameters already supported? https://github.com/vitaly-t/pg-promise#named-parameters
-
DenoDB
During my years as a dev i have really started to dislike ORMs. They always fail in the end. SQL is universal, and transfers between languages and tech fields. This is why im pro-sql, and always try to avoid unnecessary abstractions.
I have actually went back to writing pure SQL in files, and using those as params for whatever db engine i use, this makes it even possible to reuse the code in other projects (even its unlikely that you can use the exact same query, but just as a "it would work" in theory).
For node based projects i have used and would probably still choose pg-promise (https://github.com/vitaly-t/pg-promise).
-
How to use PostgreSQL with Node?
Since I'm decent at writing SQL queries and I don't want to learn additional syntax to work with ORMs/query builders, I stay as close as possible to the database driver. pg-promise is an excellent library built on top of the Node.js driver for PostgreSQL. It's built with promises in mind, it's well-tested and typed.
-
Building a SaaS in one week: How I built OnlineOrNot (Next.js/React, Tailwind, GraphQL, TypeScript)
I just used pg-promise - it handles the connections for you, up to you to write the SQL.
- Why are we still using ORMs?
-
How to manage database connections?
You can use pg-promise or Prisma to deal with your db. They are both able to manage and pool connections.
next-auth-example
-
NextAuth.js+App Router+Prisma
https://github.com/nextauthjs/next-auth-example https://next-auth.js.org/getting-started/example https://next-auth.js.org/configuration/initialization#route-handlers-app https://www.prisma.io/docs/getting-started/quickstart https://authjs.dev/reference/adapter/prisma
-
Why I choose T3 stack as the fullstack to build the react app
If you want a full-featured authentication system with built-in providers (Google, Facebook, GitHub…), JWT, JWE, email/password, magic links, and more… use [next-auth](https://github.com/nextauthjs/next-auth-example).
-
Building a SaaS in one week: How I built OnlineOrNot (Next.js/React, Tailwind, GraphQL, TypeScript)
The gist of it is actually covered by the next-auth example app: https://github.com/nextauthjs/next-auth-example/blob/main/pages/api/examples/protected.js
What are some alternatives?
Knex - A query builder for PostgreSQL, MySQL, CockroachDB, SQL Server, SQLite3 and Oracle, designed to be flexible, portable, and fun to use.
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.
Sequelize - Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.
postgres - Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare
slonik - A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.
Mongoose - MongoDB object modeling designed to work in an asynchronous environment.
Massive
SheetJS js-xlsx - 📗 SheetJS Spreadsheet Data Toolkit -- New home https://git.sheetjs.com/SheetJS/sheetjs
Objection.js - An SQL-friendly ORM for Node.js
graphql-code-generator - A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
trpc - 🧙♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.
nodejs-postgresql-azure - Repositório responsável pela série de artigos sobre Node.js com PostgreSQL