Initial version of the previewer and realtime api