-
Couldn't load subscription status.
- Fork 23
Migrate from NAN -> NAPI #281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey @cowboyd, thanks for the PR!
I've not tested it yet, but eventually replacing NAN with N-API makes sense. We'll probably do this with a major version release though, not immediately, I'll discuss this internally.
@milindl Thanks! I'm sure that it's broken in a number of ways, but my goal was to get most of the grunt work out of the way. I'd be happy to help you all push further with this as I think it would be killer to get this working on Deno and Bun.
Let me know!
tmm1
commented
Oct 12, 2025
Would be really useful to have bun support!
Uh oh!
There was an error while loading. Please reload this page.
What
N-API is a forward ABI compatible API that is supported by Node, Deno, and Bun. By using N-API instead of NAN,
@confluent/kafka-javascriptwill be able to run on all those runtimes as well as any other runtime that comes along that supports N-API.Checklist
References
JIRA:
Test & Review
Open questions / Follow-ups