ElectronCGI – Cross Platform .Net Core GUIs with Electron
ElectronCGI – Cross Platform .Net Core GUIs with Electron
ElectronCGI is a library that enables making requests from a NodeJs application that are served by a .Net application. It uses the standard in/out streams for communication. To use it install the electron-cgi npm package on you node application and the ElectronCgi.DotNet nuget package on your .Net console app. Here's an example: In NodeJs/Electron: const { ConnectionBuilder } = require('electron-cgi'); const connection = new ConnectionBuilder() .connectTo('dotnet', 'run', '--project', 'DotNetConsoleProjectWithElectronCgiDotNetNugetPackage') .build(); connection.onDisconnect = () => { console.log('Lost connection to the .Net process'); }; connection.send('greeting', 'John', theGreeting => { console.log(theGreeting); // will print "Hello John!" }); connection.close(); And in the .Net Console Application: using ElectronCgi.DotNet; //... static void Main(string[] args) { var connection = new ConnectionBuilder() .WithLogging() .Build(); // expects a request named "greeting" with a string argument and returns a string connection.On<string, string>("greeting", name => { return $"Hello {name}!"; }); // wait for incoming requests connection.Listen(); } [Blog post with extra information about ElectronCGI]( https://www.blinkingcaret.com/2019/02/27/electron-cgi/ )
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
A cross platform COM interop library for .NET core
Huxley 2 – .NET Core cross-platform GB rail live SOAP to JSON proxy
A cross platform .Net library for pinboard.in
Htop 2.0 released, now cross-platform
A cross-platform implementation of beep
A cross-platform JWT Debugger
3DGS.cpp – performant, cross platform Gaussian Splatting with Vulkan
Hadouken – a cross-platform, extensible BitTorrent daemon
Flutter_rust_bridge – cross-platform, hot-reload UI, performant core
I built a cross-platform Metronome