Hmm, I need to write a style guide. All the Cap'n Proto and Sandstorm code follows a consistent style, it just isn't documented.

Braces should look like this:

    if (...) {
      ...
    } else {
      ...
    }

Also, always use braces unless you're putting the if and its contents on one line, that is:

    if (...) ...;  // OK
    if (...)
      ...;  // bad
    if (...) {
      ...;  // OK
    }