A Nim library for making Electron-like HTML/JS GUI apps, with full access to Nim capabilities.
std/jsonutils
to programmatically handle the conversions.Some caveats:
Fixed time delay for shutting down server to 3 seconds on debug mode (10 seconds for release builds). This way developers can recompile their Neel apps much quicker and test changes. The large time delay is for edge cases when a user is spamming refresh or constantly switching pages for a prolonged period of time.
Neel cleanly stops and deallocates the server before exiting the application (server.close)
All chrome-related procedures have been place into its own module.
Added more verbose (helpful) logging for debug builds.
Enjoy a more robust version of Neel <3
release
builds embed frontend files from within the web directory. This way, developers can make changes to the frontend files in debug builds and see the changes reflect without recompiling. When release
is defined, frontend files within the web folder are embedded into the binary and the app will still work from any location.Enjoy a more robust version of Neel <3
Enjoy a more robust version of Neel <3
startApp
macro now takes an additional parameter, webDirPath, which is the path to the directory with all of the static frontend files.mummy
, an HTTP and WebSocket server for Nim that returns to the ancient ways of threads. Goodbye async and super long stack traces that are hard to debug.Enjoy a more robust version of Neel <3
Major Updates
neel build --app:"appname" --bin:"binaryname" --icon:"icon.extension"
startURL
or assetsDir
params. The start URL must be index.html
and the assets directory must be named assets
neel
commandThe neel build command currently works with Mac and Windows only, in a limited fashion. Your app must not have any external dependencies. Linux support coming soon.
Enjoy a more robust version of Neel <3
Updates:
Updates:
Major Updates:
callJs
macrocallJs
macro to be used outside of the calling moduleOption[JsonNode]
return type if using callJs
macroThe updates above will be reflected in the ReadMe. No changes were made to the API. Enjoy this more robust version of Neel.
Minor Updates:
added export of asyncdispatch module for neel.nim to mitigate some issues found during testing
Added non-blocking functionality for frontend/backend communication.