code: function main(sources) {
      const intents = intent(sources)
      const state$ = model(intents.inputValue$, intents.messages$)
      return {
        // Send the virtual tree to the real DOM
        DOM: view(state$),
        // Send our messages to the horizon server
        horizon: intents.writeOps$$,
      }
    }
docs: In main we just wire everything together