nscale-compiler is a deployment compiler for nearForm's nscale system, used to compile system definitions into deployable artifacts. Version 0.17.0 is the latest stable release. The package has no active release cadence, appearing to be in maintenance mode. It converts nscale container/service definitions into a normalized format for deployment. Key differentiator: part of the nscale toolchain, not widely used outside that ecosystem. Minimal dependencies; primarily uses async and lodash.
npm install nscale-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a simple nscale system definition with one container and logs the result.
Consider migrating to a more modern deployment tool like Docker Compose or Kubernetes.
Validate your system definition against the nscale schema before compilation.
Update your code to handle the new output structure; see changelog.
Always check the error parameter in the callback; consider wrapping with try-catch or using promisify.
Pin lodash to a compatible version (e.g., 4.17.x) if you experience issues.
Use require('nscale-compiler').compile or const compiler = require('nscale-compiler'); compiler.compile(...)Ensure the system definition includes a 'containers' object (and optionally 'services').
Pass a function as the second argument: compile(def, (err, result) => {...})Run 'npm install nscale-compiler' in your project directory.