pkg
bytenode
Our great sponsors
pkg | bytenode | |
---|---|---|
77 | 10 | |
22,711 | 1,977 | |
1.0% | 1.4% | |
7.6 | 3.4 | |
17 days ago | 2 months ago | |
JavaScript | JavaScript | |
MIT License | 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.
pkg
- Russhian Roulette: 1/6 chance of posting your SSH private key on pastebin
-
From Ruby to Node: Overhauling Shopify’s CLI for a Better Developer Experience
You don't even need that: https://github.com/vercel/pkg.
I think there are equivalents in the Python ecosystem.
- Valetudo – Free your vacuum cleaner from the cloud
-
Exploring competitive features in Node.js v18 and v19
Another exciting feature is the ability to build a single-executable Node.js binary. Before Node.js v18, the only way to build a Node.js binary was to use a third-party package, like pkg.
-
Docker's technical preview of WASM with Rust
As a comparison I am using https://github.com/vercel/pkg to package my Node.js app into an exe file. Vercel-pkg allows me to build different images for different platforms like Windows, Linux, Mac. It would be nice if it could produce a single .exe that worked on all platforms. But I guess such an exe would have to be bigger. It is not too cumbersome to produce one exe per platform that my users need.
-
Tauri + NodeJS: Alternative to Electron
To run NodeJS as a sidecar we need to pack it into binary. Taurine is bundling your server code and preparing it for packing into a single binary. Using Vercel’s pkg CLI tool we can compile it into a single executable binary. That binary is running with the Tauri application.
-
nodeMyAdmin: The alternative to phpMyAdmin written with node.JS
What if you packaged the whole thing into one executable using pkg?
-
How to run code without node?
In addition to the other responses, there are node packages like pkg and nexe that you can use to package the node executable and your code into a single executable.
-
Memories: Edinburgh ML to Standard ML
Not really, at last check it just bundles the entire .Net runtime with the compiled image. It's basically the equivalent of https://github.com/vercel/pkg or similar tools.
-
Command line applications
You can even pack your terminal application in a single binary that does not require separate NodeJS installed via pkg.
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.
What are some alternatives?
nexe - 🎉 create a single executable out of your node.js apps
ncc - Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.
electron-bytenode-example - A basic Hello World boilerplate using Webpack to convert Electron Javascript code to binary using Bytenode and the Bytenode Webpack Plugin
asarmor - Protect asar archive files from extraction
reverse-engineering - List of awesome reverse engineering resources
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
pkg - Package your Node.js project into an executable [Moved to: https://github.com/vercel/pkg]
oclif - Node.js Open CLI Framework. Built by Salesforce.
parcel - The zero configuration build tool for the web. 📦🚀
gulp - A toolkit to automate & enhance your workflow
deno - A modern runtime for JavaScript and TypeScript.
Rollup - Next-generation ES module bundler