bytenode
electron-bytenode-example
Our great sponsors
bytenode | electron-bytenode-example | |
---|---|---|
10 | 2 | |
2,029 | 43 | |
2.8% | - | |
1.7 | 0.0 | |
4 days ago | 3 months ago | |
JavaScript | TypeScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bytenode
-
electron-vite: Easy way to protect your Electron source code
electron-vite inspired by bytenode, the specific implementation:
- Delivering an application in CL w.o. source
- How to secure an Electron app with a license key
-
Compile your JS code: New Bytenode support for Electron
It doesn't appear that there is any performance penalty to using Bytenode. There are some benchmark functions in the repository, but certainly more work could be done to test. My gut feeling is that the minor overhead of loading the binary is balanced out by the minor speed increase by giving V8 a pre-compiled file.
-
Hide source code
There's an NPM package called bytenode which compiles your JavaScript to V8 bytecode.
electron-bytenode-example
- How to secure an Electron app with a license key
-
Compile your JS code: New Bytenode support for Electron
Take a look at the electron-bytenode-example repository - in particular the preload script. You can see the 'DOMContentLoaded' example there. You need to do that because preload runs before the DOM has been loaded. That example has both nodeIntegration: true and contextIsolation: false. However, the preload script should always have access to both Node and the DOM, so you should be able to set it up so that all of your scripting happens in preload.
What are some alternatives?
asarmor - Protect asar archive files from extraction
pkg - Package your Node.js project into an executable [Moved to: https://github.com/vercel/pkg]
pkg - Package your Node.js project into an executable
electron-typescript-react-mui - Lightweight, modern boilerplate built with electron, typescript, react, and material-ui.
angular-electron - Ultra-fast bootstrapping with Angular and Electron :speedboat:
Minecraft-Box-Launcher - Open source Minecraft Java Edition launcher built with ElectronJS
ngx-admin - Customizable admin dashboard template based on Angular 10+
storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.
thislang - A subset of javascript implemented in that subset of javascript. Yes, it can run itself.
electron-webpack - Scripts and configurations to compile Electron applications using webpack
wat-compiler - webassembly wat text format to binary compiler