Learn the Niobium DSL
Build an installer that deploys a README.txt, change its configuration, and update it to a second release. Then extend the same example to learn the language and compilation model.
The tutorial uses the runnable DSL example. It assumes basic programming experience and familiarity with shell commands. You do not need prior Starlark or Wasm experience.
Learning path
Section titled “Learning path”Part I follows a product from its author source to installed files. Read these chapters in order and keep the same shell open:
- Prepare the tools and project: build the SDK and create a working copy of the example.
- Build your first installer: write a product, compile it, and inspect its installed file.
- Configure, update, and remove: change an installation input, build a second release, and uninstall.
Part II explains how the declarations produce the compiled product:
- Syntax and build-time execution: use ordinary Starlark variables, collections, conditions, and loops.
- Values, bindings, and inputs: distinguish author values from values resolved during installation.
- Content, authority, and calls: connect content and capability libraries with explicit grants.
- Functions and modules: organize a product with functions and
load. - Compilation and diagnostics: inspect build outputs and fix author and input errors.
Source, installer, and installation
Section titled “Source, installer, and installation”An author program is a .star file containing Starlark code and Niobium declarations. The Starlark worker executes it at build time and emits a typed product model. The compiler packages that model with a precompiled native runtime, fixed capability libraries, and content.
product.star + loaded modules + build arguments | Starlark worker (build time) | typed product + source map | compiler + locked runtime, libraries, content | setup | install / reconfigure / update / uninstall | installation root/current/The delivered setup executes the compiled product’s capability calls. It does not execute the author program. A capability library is a Wasm Component that computes desired installation resources; the content container holds the files to deploy.
The product names a logical root, application. An invocation binds it to a physical directory. A grant bounds the content and access that a library may request there. The runtime validates those requests before publishing files.
Tutorial profile
Section titled “Tutorial profile”These chapters use the current experimental Component-v2 profile: a command-line installer, user-scope roots, and the official files capability library. The example uses one root and one content container.
The commands use a POSIX shell on macOS arm64. Mach-O assembly uses the SDK’s locked ad-hoc signer. Production publisher identity, Gatekeeper, and notarization require separate qualification; see the runtime assembly workflow.
Start with Prepare the tools and project.