Any good multiplayer frameworks?
Reddit | node.js
by /u/tojzl
3m ago
I’m making a 2D turn-based strategy game and i’m using react and phaser for frontend and express, socketio for backend. I’ve currently only set up the board generation, and now have to set up the multiplayer features. I want most of, if not all of the important code back end. I need stuff like state management and multiplayer features like gamerooms etc. i could probably make all of this from scratch, but there is probably something i can use thats way quicker. I tried boardgame.io, but couldnt quite wrap my head around it. I’ve heard things about frameworks like colyseus and nakama, would th ..read more
Visit website
How to analyze Node.js Garbage Collection traces?
Reddit | node.js
by /u/mike_jack
1h ago
submitted by /u/mike_jack [visit reddit] [comments ..read more
Visit website
Livestream Upload
Reddit | node.js
by /u/steve_335
3h ago
Hi guys. I have a burning question to ask. Are ICE/STUN/NAT/SDP protocols necessary to successfully implement RTC-related livestreaming? Can we just upload packets of the data ourselves to the server and route to where we want (by ourselves) instead of going through ICE/NAT resolution? Also, is HLS basic in the sense that bare http client-server connections are all that is required? I want to implement a quick solution while learning some of the underlying processes involved in successfully implementing livestream. Thank you! submitted by /u/steve_335 [visit reddit] [comments ..read more
Visit website
Nativescript keeps failing to install
Reddit | node.js
by /u/SoMir0
3h ago
I didn't know exactly where to post this. I'm trying to install nativescript with sudo npm i -g nativescript Here's what I get: https://pastebin.com/QMYRUsRw I'm running Arch linux, up to date. ❯ nvm -v 0.39.7 ❯ npm -v 10.6.0 ❯ node -v v22.0.0 Installing regular packages and global packages works fine. submitted by /u/SoMir0 [visit reddit] [comments ..read more
Visit website
I made an OIDC authentication library that supports self hosting and has complete test cases
Reddit | node.js
by /u/ccmjga
4h ago
https://github.com/chuck1in/nw-auth Made an identity authentication library based on the OIDC process, which supports third-party platforms such as GitHub, WeChat, Google, Twitter, Feishu, and Sina. In theory, it also supports self-deployed OIDC authentication servers. Since it has not been advertised, I don't know if any users are using it. ? The features of this library are as follows: ? Small code size ? Few exposed interfaces ? No runtime dependencies Recently, I used my spare time to add a self-test page to this library, which is convenient for everyone to confirm whether the three-par ..read more
Visit website
Incrementally upload zip data from memory to a single file on AWS S3 bucket using Node.js streams
Reddit | node.js
by /u/revyth
5h ago
I have a ReadableStream of uncompressed text data that I need to store on a single zip-compressed file on S3. What I don't want to do: Load all the data into memory. Write the data on local disk. What I would like to do: Incrementally read the data from the input stream, zip-compress it and upload to S3 directly (chunk by chunk). The result should be a single zip file. What I have tried so far: ```ts import {S3} from 'aws-sdk'; import {PassThrough} from 'stream'; import archiver from 'archiver'; const s3 = new S3({region: 'us-east-1'}); (async () => { const stream = new PassThrough ..read more
Visit website
Using SvelteKit for both web and a mobile API
Reddit | node.js
by /u/Endless_Shift
8h ago
Hi all, i'm working on picking my architecture for a new web + mobile app i'm writing. For some context i'm migrating from using a Spring + Java app handling API requests and a native mobile iOS app. Going forward I want to support web as well and figured this might be a good time time dabble in some JS/TS backend frameworks. Basically im looking at bundling the web + API server into SvelteKit and having it serve both web and mobile (native Swift app) but im wondering if this crazy and I should instead opt for something like an express/fastify API server and then only using SvelteKit for the ..read more
Visit website
AWS EC2 question
Reddit | node.js
by /u/Sad_Replacement9764
9h ago
Can I set up an AWS EC2 instance on windows to deploy my node js application? submitted by /u/Sad_Replacement9764 [visit reddit] [comments ..read more
Visit website
How to dedupe/remove duplicate packages in an app?
Reddit | node.js
by /u/BellyFullOfMochi
9h ago
Hey all, I am working on some upgrades. I upgraded to the newest version of a library I need to use in a project and it pulled in a bunch of dev and peer dependencies that are now duplicated and blowing up the bundle size of my app. What is the simplest way to handle this situation? I am thinking perhaps my package.json needs to match the versions being pulled in by the upgraded library? Is this naive? ​ Thanks! ​ submitted by /u/BellyFullOfMochi [visit reddit] [comments ..read more
Visit website
What's some TURN servers that actually work
Reddit | node.js
by /u/AgreeableEstate2083
14h ago
I tried using some from the GitHub link that first pops up when u search for stun servers list , I used the Google ones , but I am getting not valid error submitted by /u/AgreeableEstate2083 [visit reddit] [comments ..read more
Visit website

Follow Reddit | node.js on FeedSpot

Continue with Google
Continue with Apple
OR