neutralinojs | lightweight cross-platform desktop application development | Runtime Evironment library

 by   neutralinojs C++ Version: nightly License: Non-SPDX

kandi X-RAY | neutralinojs Summary

kandi X-RAY | neutralinojs Summary

neutralinojs is a C++ library typically used in Server, Runtime Evironment, Nodejs, Electron applications. neutralinojs has no bugs, it has no vulnerabilities and it has medium support. However neutralinojs has a Non-SPDX License. You can download it from GitHub.

In Electron and NWjs, you have to install NodeJs and hundreds of dependency libraries. Embedded Chromium and Node make simple apps bloaty. Neutralinojs offers a lightweight and portable SDK which is an alternative for Electron and NW.js. Neutralinojs doesn't bundle Chromium and uses the existing web browser library in the operating system (Eg: gtk-webkit2 on Linux). Neutralinojs implements a WebSocket connection for native operations and embeds a static web server to serve the web content. Also, it offers a built-in JavaScript client library for developers. Ask questions on StackOverflow using tag neutralinojs.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              neutralinojs has a medium active ecosystem.
              It has 6754 star(s) with 313 fork(s). There are 77 watchers for this library.
              There were 2 major release(s) in the last 12 months.
              There are 199 open issues and 555 have been closed. On average issues are closed in 265 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of neutralinojs is nightly

            kandi-Quality Quality

              neutralinojs has no bugs reported.

            kandi-Security Security

              neutralinojs has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              neutralinojs has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              neutralinojs releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of neutralinojs
            Get all kandi verified functions for this library.

            neutralinojs Key Features

            No Key Features are available at this moment for neutralinojs.

            neutralinojs Examples and Code Snippets

            No Code Snippets are available at this moment for neutralinojs.

            Community Discussions

            QUESTION

            Is there a way to create a NeutralinoJS project based on Svelte and Typescript?
            Asked 2022-Apr-05 at 11:23

            I need to create a neutralino+svelte+ts project, I've noted it was possible in old version (neutralino-cli@1.8.1) but nothing similar is described in newest version of neutralino. I've tried to run in latest neutralino version the same command described in version 1.8.1 (neu create myapp --template svelte) but I received the error:

            neu: ERROR Unable to download resources from internet. Please check your internet connection and template URLs.

            I've tried with different type of template (ts and js) and I had the same result.

            I've tried also by running the command neu create myapp --template neutralinojs/neutralinojs-svelte (same error).

            Any idea how to do it?

            ...

            ANSWER

            Answered 2022-Apr-02 at 07:35

            You can do it without any dedicated template, it's quite simple and easy.

            Basically, you need to create a Neutralino app and a Svelte app side by side in the same root folder, then a little config to make them work together.

            Detailed step by step :

            1. Create a Neutralino app, following Neutralino documentation : https://neutralino.js.org/docs/getting-started/your-first-neutralinojs-app. Ensure you can run and build as in the tutorial.

            2. In the root folder of your Neutralino application, rename .gitignore to .gitignore-neu and readme.md to readme-neu.md

            3. In the Svelte REPL, download the zip file you want to start from, for example https://svelte.dev/repl/hello-world (click the download button on right side of the toolbar)

            4. Copy the content of the zip file in your Neutralino root folder, so that Svelte public folder is at the same level as Neutralino resources folder

            5. Run npm install to setup the Svelte application. Ensure it works ok on its own by running npm run dev and npm run build

            Now you have two standalone applications side by side in the same root folder. Let’s make them work together.

            1. Merge Neutralino and Svelte .gitignore files by copying .gitignore-neu content into .gitignore

            2. Open the file /neutralino.config.json and change "documentRoot":"/resources/" to "documentRoot":"/public/" so that Neutralino can use the Svelte output

            3. Open two console windows : npm run dev for Svelte and neu run for Neutralino. You'll see a Neutralino native window displaying the Svelte home page.

            You’re done !

            Now you can code your Svelte web application in the /src folder as you would for any Svelte application, with hot-compiling by Svelte and hot-reloading by Neutralino.

            When your app is ready, build it with npm run build (Svelte part) followed by neu build (Neutralino).

            If you need to use Neutralino API from within your Svelte code :

            • Copy the file /resources/js/neutralino.js to the /public/ folder

            • add the line to the block of /public/index.html (right after the line )

            • Add Neutralino.init(); in Svelte main.js file (/src/main.js)

            If you need Typescript, install a Neutralino Typescript app at step 1, and run Svelte Typescript setup script after the step 5.

            Source https://stackoverflow.com/questions/71705998

            QUESTION

            Missing permission to execute the native method: filesystem.readFile
            Asked 2022-Mar-30 at 19:11

            I'm new in NeutralinoJS, I'm trying my first app and I need to read the content of a json file. I'm trying by using Neutralino.filesystem.readFile method, but it fails with error

            ...

            ANSWER

            Answered 2022-Mar-30 at 19:11

            I was actually just coming across this same problem. Make sure in your neutralino.config.json you have filesystem.* in your nativeAllowList section like so:

            Source https://stackoverflow.com/questions/71677910

            QUESTION

            neutralinojs workaround to HTML input attribute accept
            Asked 2022-Jan-23 at 15:39

            I have a neutralinojs app with an file input. It should only be possible to choose files from type ".csv" or ".xlsx". So I use the accept attribute.

            That works in browser mode but not in window mode.

            Is there a workaround to show only files with these filetypes in the file chooser?

            ...

            ANSWER

            Answered 2022-Jan-23 at 15:39

            You Need To Use Neutralino's API For Dialogs.

            So In Neutralino's OS API We Have Some Functions For save file, open file and open folder using which we can show dialogs to users.

            In your case you need to use open file dialog so you can use Neutralino.os.showOpenDialog, example:

            Source https://stackoverflow.com/questions/68680532

            QUESTION

            NeutralinoJS Open local html file in browser
            Asked 2021-Aug-02 at 11:58

            In my Neutralino app I have a navigation. When I click on a specific navigation item, I want a local html to open in the browser (or new window). The html file to open is in a subfolder of my app resources directory.

            My first approach was to call the relative URL in the main.js file via Neutralino.app.open (in my config.json "url" is set to "/resources/"), without success.

            ...

            ANSWER

            Answered 2021-Aug-02 at 11:58

            I have found an answer myself. In Neutralino there is a global variable NL_CWD that contains the app path. With that path I can directly open the local html file in browser via file:/// ...

            The solution:

            Source https://stackoverflow.com/questions/68620523

            QUESTION

            NeutralinoJS: error: missing required argument 'name'
            Asked 2021-Apr-07 at 15:48

            I tried to create my first NeutralinoJS app using neu-cli. I typed neu create --template hello-world command in Windows Command Prompt as in the doucmentation. But it gives me this error.

            error: missing required argument 'name'

            So I typed it again in git bash. But it gives the same error again. How to fix this ? Any idea ?

            ...

            ANSWER

            Answered 2021-Feb-19 at 16:20

            I found the solution. Command syntax is like this :

            Source https://stackoverflow.com/questions/66280998

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install neutralinojs

            You can download it from GitHub.

            Support

            Please check the contribution guide. We use GitHub Discussions, Slack, and Discord for quick discussions. Image created with contributors-img. Releases are powered by ReleaseZri.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link