Merge existing prototype into this repo

Extracted from gaia