One codebase, offline and online