Structured app for use as an npm module