Skip to content

Replace unix-dgram to unix_dgram_rs#305

Open
hrhthegreat wants to merge 1 commit intobdeitte:mainfrom
hrhthegreat:hrh.unixdgramrs
Open

Replace unix-dgram to unix_dgram_rs#305
hrhthegreat wants to merge 1 commit intobdeitte:mainfrom
hrhthegreat:hrh.unixdgramrs

Conversation

@hrhthegreat
Copy link

@hrhthegreat hrhthegreat commented Feb 19, 2026

Hey! I recently rewrote the unix-dgram module using napi-rs and published it as a new package: https://github.com/hrhthegreat/unix_dgram_rs

This version no longer requires node-gyp during installation—prebuilt binaries are shipped with the package—and thanks to napi-rs, it’s compatible across Node.js versions without rebuilds.

The package currently supports Node.js ≥ 18. It’s published as 0.1.0-alpha.1, but it successfully passes the full test suite from the original unix-dgram. I’ve also tested it locally with hot-shots, and all tests are passing.

Would love your feedback!

@bdeitte
Copy link
Owner

bdeitte commented Feb 21, 2026

Thanks for the submission. This would need to pass all tests to be considered here- you mention it doesn't need to worry about Node versions but am noticing that Node 16 isn't working here. I do understand the version is EOL, so we could remove Node 16 but Windows is here as well. I'd also want to understand more the performance implications and see some stress testing done given how widely used uds is with this project. Likely if that was all set, we'd also want to consider this first under a feature gate before having it be the default. Let me know if you are considering all of this and want to discuss more how to figure this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants