Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Standalone noobaa-core

noobaa-core provides a standalone program that packages multiple core commands. Each command exposes a different core capability from the project. This form of packaging is meant for portability and ease of use during dev/test. Perhaps in the future this will become useful for deploying data services in production too.


  • noobaa-core help is the entrypoint of the program - see src/core/index.js.
  • noobaa-core nsfs is a command to expose a local filesystem as S3 - see src/core/nsfs.js.
  • noobaa-core nscache is a command to expose a remote bucket with local caching (WIP) - see src/core/nscache.js.

Build from source


  • node.js - should follow the same version (at least major version) as specified in .nvmrc
  • requirements of node-gyp: python, make, gcc(linux) / xcode(mac) (no need to install node-gyp itself)
  • nasm (linux) / yasm (mac)

Build commands:

npm install
npm run build:native
npm run build:core


  • ./build/noobaa-core-linux
  • ./build/noobaa-core-mac
  • ./build/noobaa-core-win.exe


  • The builder container image is still not being used to build the standalone program so for now there are some requirements from the machine that is used to run the build.
  • While the binary itself is cross-packaged to different OS’s, the native addon library will not allow true cross-compilation and will require building on the same machine type as the target runtime machine.


Start the standalone nsfs program exposing a folder from the filesystem:

noobaa-core nsfs .

Then use S3 http access to the standalone endpoint (no authentication is needed).

List buckets (dirs under .)

curl -s 'http://localhost:6001'

Get object (read file)

$ curl -s 'http://localhost:6001/src/core/index.js' | head -1
/* Copyright (C) 2020 NooBaa */

Put object (write file)

$ echo "world" | curl -X PUT -d @- 'http://localhost:6001/src/hello'
$ cat src/hello
$ curl -X DELETE 'http://localhost:6001/src/hello'

List objects from the “src” dir with a prefix “core/”

$ curl -s 'http://localhost:6001/src?delimiter=/&prefix=core/' | xmllint --format -
<?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult xmlns="">