Which options do I have to hide/obfuscate/bytecode my main source code but not the renderer? Angular inside.

This page summarizes the projects mentioned and recommended in the original post on /r/electronjs

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • webpack-obfuscator

    javascript-obfuscator plugin for Webpack

  • I guess the easiest to setup would be to use an obfuscator on the bundled code (what is in your dist folder). There are a bunch of them, like https://github.com/javascript-obfuscator/javascript-obfuscator

  • electron-bytenode-example

    A basic Hello World boilerplate using Webpack to convert Electron Javascript code to binary using Bytenode and the Bytenode Webpack Plugin

  • Have a look at bytenode.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • javascript-obfuscator

    A powerful obfuscator for JavaScript and Node.js

  • What I ended up doing is having two build steps, one for renderer and other for the main process, in the main process build I use https://github.com/javascript-obfuscator/javascript-obfuscator. Works pretty fine.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts