agracio/edge-js ? reverse-engineered prompt

Reverse engineered prompt

Build me a library that lets a Node.js app run .NET code in the same process on Windows, macOS, and Linux, and also lets .NET call back into Node.js.

I want it to feel easy to use from JavaScript, where I can pass in a small C# function or compiled DLL, call it asynchronously, and get normal values back without having to worry about threading or data conversion. It should also support running on modern .NET Core, and keep working with current Node versions. If you need to check the latest docs for Node native modules or .NET hosting, go ahead and look them up online.

Please include a few simple examples and tests, like calling C# from Node, calling Node from .NET, and a CPU heavy task to show it does not block the event loop. Make sure it builds cleanly on the main desktop platforms and is packaged like a real npm and NuGet project.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab