# Tx elm > Subbit.xyz tx builder using elm-cardano ## Setup This repo is using nix flakes. The "right" way to package elm with nix is not known to the author. - Maybe [elm2nix](https://github.com/cachix/elm2nix) ## CLi The way elm works seems to be rather sneaky. It adds `Elm` to the global js scope. In typical use this is then picked up by some script embedded in the page : ```js var app = Elm.Main.init({ node: document.getElementById("elm"), flags : ... }); ``` Instead we want to call it with node. Appending the output file with ```js this.Elm.Cli.init({ flags: process.argv }); ``` Does the job. But there must be a better way ...