Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

docs: add NAPI-RS reference to the Node-API doc#59498

Closed
Brooooooklyn wants to merge 2 commits intonodejs:mainnodejs/node:mainfrom
Brooooooklyn:add-napi-rs-to-docsBrooooooklyn/node:add-napi-rs-to-docsCopy head branch name to clipboard
Closed

docs: add NAPI-RS reference to the Node-API doc#59498
Brooooooklyn wants to merge 2 commits intonodejs:mainnodejs/node:mainfrom
Brooooooklyn:add-napi-rs-to-docsBrooooooklyn/node:add-napi-rs-to-docsCopy head branch name to clipboard

Conversation

@Brooooooklyn
Copy link

@Brooooooklyn Brooooooklyn commented Aug 17, 2025

NAPI-RS has been widely used, hope it can be mentioned in the official documentation

Blocked by nodejs/remark-preset-lint-node#633

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/node-api

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. node-api Issues and PRs related to the Node-API. labels Aug 17, 2025
@KevinEady
Copy link
Contributor

I am not a fan of this addition, but I am interested to see what the other team members say. Other bindings and engines are just listed on https://github.com/nodejs/abi-stable-node/blob/doc/node-api-engine-bindings.md for reference.

I feel like adding this to our Node-API documentation would possibly give users the impression that we support / back the binding, or favor one binding over the other (as there are multiple Rust bindings).

What if the implementation changes for this napi-rs binding? Even if this scenario is unlikely, we'd need to ensure that now that this documentation stays up-to-date. This adds a dependency for us to maintain / monitor in our documentation.

A quick web search for "node-api rust" would provide people with the required information to find Rust bindings, alleviating us from needing to include it in official Node.js documentation.

Copy link
Member

@himself65 himself65 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commit message should be: doc: ...

@himself65
Copy link
Member

I am not a fan of this addition, but I am interested to see what the other team members say. Other bindings and engines are just listed on https://github.com/nodejs/abi-stable-node/blob/doc/node-api-engine-bindings.md for reference.

I feel like adding this to our Node-API documentation would possibly give users the impression that we support / back the binding, or favor one binding over the other (as there are multiple Rust bindings).

What if the implementation changes for this napi-rs binding? Even if this scenario is unlikely, we'd need to ensure that now that this documentation stays up-to-date. This adds a dependency for us to maintain / monitor in our documentation.

A quick web search for "node-api rust" would provide people with the required information to find Rust bindings, alleviating us from needing to include it in official Node.js documentation.

I used napi-rs many times, and it's quite ergonomic for developing Rust for Node.js.

(as there are multiple Rust bindings).

Right now, there are only two binding libraries, I think? napi-rsand neon-rs, or just use webassembly from built-in rust feature. And napi-rs is the best of them, I believe.

What if the implementation changes for this napi-rs binding? Even if this scenario is unlikely, we'd need to ensure that now that this documentation stays up-to-date. This adds a dependency for us to maintain / monitor in our documentation.

It's the same situation for TypeScript support in Node.js, right? It uses swc, which is our downstream.

Anyway, I +1 on this change, but yeah, we might need basic test cases for this?

@vmoroz
Copy link
Member

vmoroz commented Aug 18, 2025

I would second @KevinEady opinion.
We can probably add a set of links to other language bindings for better visibility, but having a screen sized description per each 3rd party language binding seems to be a bit excessive.

Copy link
Member

@legendecas legendecas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the API doc should be impartial on community packages. We should link to https://github.com/nodejs/abi-stable-node/blob/doc/node-api-engine-bindings.md instead.

@Brooooooklyn
Copy link
Author

I think the API doc should be impartial on community packages. We should link to https://github.com/nodejs/abi-stable-node/blob/doc/node-api-engine-bindings.md instead.

Fair enough, I'll close this since you've created a PR to link the community package links

@github-project-automation github-project-automation bot moved this from Need Triage to Done in Node-API Team Project Aug 18, 2025
nodejs-github-bot pushed a commit that referenced this pull request Aug 22, 2025
PR-URL: #59516
Refs: #59498
Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
targos pushed a commit that referenced this pull request Aug 25, 2025
PR-URL: #59516
Refs: #59498
Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
richardlau pushed a commit that referenced this pull request Sep 20, 2025
PR-URL: #59516
Refs: #59498
Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. node-api Issues and PRs related to the Node-API.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.