trpc
pg-promise
trpc | pg-promise | |
---|---|---|
35 | 18 | |
32,919 | 3,423 | |
1.8% | - | |
9.8 | 7.2 | |
4 days ago | about 1 month ago | |
TypeScript | JavaScript | |
MIT License | MIT 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.
trpc
-
Key differences between GraphQL and RESTful API
RESTful API: RESTful API does not have machine-readable metadata cacheable, and query validation is not available.(There are some libraraies tried to solve this issue like TRPC)
-
Implementing Authorization with Clerk in a tRPC app running on a Cloudflare Worker
tRPC + Cloudflare Workers Example
- how to improve UX of checking changes in ONE file though git history
-
trpc + nextjs app dir + fetchRequestHandler
Hi I'm working with trpc + nextjs app dir (unsupported by trpc currently) and trpc context
-
TRPC invalidation app directory
I'm using TRPC with Next13 App directory and I can't manage to invalidate queries. Seing from their example there is a way to do it https://github.com/trpc/trpc/blob/96956e790e6862bcc6dcc4622edc8e48da0adbcb/examples/.experimental/next-app-dir/src/app/post-example/page.tsx
-
tRPC โ Move Fast and Break Nothing. End-to-end typesafe APIs made easy
It is. But RSC make many library authors and maintainers question whether their library is still needed in a RSC world and if so how they can support it. Same story with tRPC https://github.com/trpc/trpc/issues/3297
-
trpc VS prim-rpc - a user suggested alternative
2 projects | 23 Jul 2023
-
T3\tRPC - How do you change the cache?
Also, while trying to debug this, and this is way outside my league but I noticed this: Is there possibly an error in the Updater TS-definitions in https://github.com/trpc/trpc/blob/main/packages/react-query/src/shared/proxy/utilsProxy.ts at lines 155+156 & 167+168 because they are duplicate-lines and seems to be where my issues are coming from.
-
SPARTAN. Type-safe Angular full-stack development powered by Analog.
Unfortunately, tRPC and NestJs do not play well together by default, and the tRPC team does not intend to integrate the two through an official plugin for the time being.
-
GitHub Accelerator: our first cohort and what's next
- https://github.com/trpc/trpc: End-to-end typesafe APIs made easy. Never write another API contract again.
pg-promise
-
Planning projects ? Looking for help
Personally with more time I would also use JavaScript so I can improve it. Last time I wrote something with Express and a database connection is a long time ago and not for work, only for my personal testing. But for JavaScript database connection to PostgreSQL I recommend pg-promise. That works like a charm.
-
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":
https://github.com/vitaly-t/pg-promise
-
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
-
Help seeding a database with PG
Yes. You can also take at the pg-promise library. https://github.com/vitaly-t/pg-promise
-
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.
-
5 reasons to use MongoDB as a bootstrapper
dont believe me? look at how many open issues they have https://github.com/vitaly-t/pg-promise/issues
-
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.
What are some alternatives?
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript ๐
Knex - A query builder for PostgreSQL, MySQL, CockroachDB, SQL Server, SQLite3 and Oracle, designed to be flexible, portable, and fun to use.
domain-functions - Decouple your business logic from your framework. With first-class type inference from end to end. [Moved to: https://github.com/seasonedcc/domain-functions]
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.
graphql-zeus - GraphQL client and GraphQL code generator with GraphQL autocomplete library generation โกโกโก for browser,nodejs and react native ( apollo compatible )
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.
denodb - MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
postgres - Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare
MySQL - A pure node.js JavaScript Client implementing the MySQL protocol.
slonik - A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.
strapi-mongo-next - NextJs frontend, Strapi backend API, and MongoDb. A full-stack sample business website styled with the latest Material-Ui.
Mongoose - MongoDB object modeling designed to work in an asynchronous environment.