ws
pg-promise
Our great sponsors
ws | pg-promise | |
---|---|---|
27 | 17 | |
20,914 | 3,410 | |
0.9% | - | |
7.7 | 5.8 | |
13 days ago | 8 days ago | |
JavaScript | 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.
ws
-
8 Best WebSocket Libraries For Node
WS has a user base of 17.7 million people and over 20,000 forks. It also has clear and concise documentation, with examples and API references, to help developers understand how to integrate it into their projects.
-
WebSockets 101
In order to implement websockets, you can use a nodejs library named ws. It provides a fast and simple way to establish a websocket connection.
-
Is there anyway to auto reload the browser page when using express?
Next, you can use a library like chokidar to listen for changes in your source directory. Create a ws server, and whenever a file changes, send a message.
-
Is my health check endpoint good enough?
I use redis, sequelize and PG Listen/Notify via Robust Listeners with a websocket server coded in ws
-
7 Useful JavaScript Libraries To Build a Real-Time Web App
With over 19k stars on GitHub and about 60 million weekly downloads on npm, ws is one of the most popular open-source libraries for real-time web application development
-
Nest JS Websockets - Basics
Nest supports 2 websocket platforms - socket.io and ws. We're going to be using socket.io.
-
5 enhancements that will boost your Node.js app
Making use of Web Sockets to improve server communication.
-
Socket IO driving me insane.
Also I'd recommend against socket.io for many reasons. ws is a simple websocket server and the browser already has a WebSocket client built right in.
-
Immersive Web, Docker and problem with sym-linked SSL certs (hardcore_nash).
Despite the complexity of the research, my web application called "Interactive Wall" is designed for a multi-device experience with blazing fast animation purposes WebGL canvas (PixiJS). Depending on the provided parameters there are two types of UIs: 1) for kids and 2) the teacher(s). The first one is displayed on the wall via projector, the second can be opened via QR code on the mobile device, wearable or any other desktop running Chromium-based browsers. Realtime communication between both interfaces is established via WebSocket server.
-
Top WebSocket libraries for Node.js in 2022
With over 17.5k stars on GitHub and about 35 million weekly downloads on npm, ws is one of the most popular Node.js WebSocket libraries available.
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.
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.
fastify-websocket - basic websocket support for fastify
uWebSockets.js - μWebSockets for Node.js back-ends :metal:
Socket.io - Realtime application framework (Node.JS server)
redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development
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.
graphql-ws - Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.
Mongoose - MongoDB object modeling designed to work in an asynchronous environment.
Massive