pkg
ncc
Our great sponsors
pkg | ncc | |
---|---|---|
77 | 15 | |
22,711 | 7,457 | |
1.0% | 1.1% | |
7.6 | 8.7 | |
17 days ago | 6 days 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.
ncc
-
So you're using a weird language
You could use ncc to compile a binary:
-
Contributors to AWS Lambda container cold starts
This appears to be caused by lazy loading of image layer data, particularly during container initialization, and latency introduced by the read operations. In general, you want to access as few files and as little data as possible during the initialization of your functions. For example, we've seen improvement when using ncc to bundle Node.js applications.
-
Tools of the Trade: Dyte CLI
What we do however, is bundle all these dependencies, and our own code into a single JS file using the nifty ncc tool (thanks Vercel!)
-
Label automation at your fingertips
Vercel's ncc compiler
-
Managing JavaScript GitHub Action ncc packing
The most unclear and confusing part is packing the code using ncc. The necessity of this step is caused by GitHub’s approach to running your Action.
-
Ask HN: How do you (security) audit external software using NPM packages?
This may be slightly tangential but I recently discovered ncc[1] from vercel which can take a single node project and compile it and all dependencies to a single file.
As an added benefit it also collapses all contained dependencies license files into a single licenses.txt file too!
-
Compiling a Apollo Federated Graph with esBuild 🚀
The current process of building a package locally is by running through a gulp task, using ttypescript to compile the TS and @vercel/ncc to build the binary:
-
I launched Autobundle project which automatic bundle your dependency, ideally from Bundlephobia, powered by esbuild
- "introduce bugs": I dont' think so, my product is running like this, bundling every commit but I didn't see any problem. For bigger app: vercel using this way to delivery they's serverless application with https://github.com/vercel/ncc.
-
Solution to serverless function getting too big?
Here is link number 1 - Previous text "ncc"
What are some alternatives?
nexe - 🎉 create a single executable out of your node.js apps
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.
esbuild - An extremely fast bundler for the web
oclif - Node.js Open CLI Framework. Built by Salesforce.
parcel - The zero configuration build tool for the web. 📦🚀
bytenode - A minimalist bytecode compiler for Node.js
gulp - A toolkit to automate & enhance your workflow
deno - A modern runtime for JavaScript and TypeScript.
Next.js - The React Framework
Rollup - Next-generation ES module bundler
InversifyJS - A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.