A portable TREEbook runtime