{"id":21298735,"url":"https://github.com/spaceagetv/electron-bytenode-example","last_synced_at":"2025-07-06T20:05:02.466Z","repository":{"id":37776991,"uuid":"341293631","full_name":"spaceagetv/electron-bytenode-example","owner":"spaceagetv","description":"A basic Hello World boilerplate using Webpack to convert Electron Javascript code to binary using Bytenode and the Bytenode Webpack Plugin ","archived":false,"fork":false,"pushed_at":"2023-11-15T16:22:46.000Z","size":2111,"stargazers_count":59,"open_issues_count":2,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-22T05:14:09.228Z","etag":null,"topics":["bytenode","bytenode-webpack-plugin","electron","webpack"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spaceagetv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-22T18:13:48.000Z","updated_at":"2024-04-01T20:53:34.000Z","dependencies_parsed_at":"2023-02-06T10:00:22.127Z","dependency_job_id":null,"html_url":"https://github.com/spaceagetv/electron-bytenode-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaceagetv%2Felectron-bytenode-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaceagetv%2Felectron-bytenode-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaceagetv%2Felectron-bytenode-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaceagetv%2Felectron-bytenode-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spaceagetv","download_url":"https://codeload.github.com/spaceagetv/electron-bytenode-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225750180,"owners_count":17518315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bytenode","bytenode-webpack-plugin","electron","webpack"],"created_at":"2024-11-21T14:57:01.522Z","updated_at":"2024-11-21T14:57:02.902Z","avatar_url":"https://github.com/spaceagetv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-bytenode-example\n\nExample code using [Bytenode](https://github.com/OsamaAbbas/bytenode) + [Bytenode Webpack Plugin](https://github.com/herberttn/bytenode-webpack-plugin) to compile both the render and main processes in an Electron app.\n\nAt the command line:\n\n```bash\ngit clone https://github.com/spaceagetv/electron-bytenode-example.git\ncd electron-bytenode-example\nnpm install\nnpm start\n```\n\nThis example uses Herbert Treis Neto's [Bytenode Webpack Plugin](https://github.com/herberttn/bytenode-webpack-plugin) along with Webpack 5 (via [Electron Forge](https://www.electronforge.io)) to bundle and package the application.\n\nElectron gets pointed at small \"loader\" files which use Bytenode in order to load the binary `.jsc` files containing the original application code (compiled for the V8 engine).\n\n**NOTES!**\n\n1. You must enable `nodeIntegration` in your BrowserWindow `webPreferences` for Bytenode to work in the rendering process. Alternately, you could put your renderer's Javascript code into a preload script, where Node will be available automatically. This is more secure and generally better practice. (Hint: Use `window.addEventListener('DOMContentLoaded', init)` to wait for the DOM to be available to your preload script.)\n\n### Links \u0026 Related\n\n- [Bytenode](https://github.com/OsamaAbbas/bytenode)\n- [Bytenode Webpack Plugin](https://github.com/herberttn/bytenode-webpack-plugin)\n- [Creating Javascript Binaries For Electron](https://www.jjeff.com/blog/2021/4/27/creating-javascript-binaries-for-electron)\n- [Electron React Bytenode Quickstart](https://github.com/MetaiR/electronforge_react_bytenode_quickstart)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaceagetv%2Felectron-bytenode-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspaceagetv%2Felectron-bytenode-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaceagetv%2Felectron-bytenode-example/lists"}