This initial implementation has now been archived - please refer to the phenopacket-schema repository for the current implementation.
JavaScript API for working with Phenopackets
Initial implementation here: https://github.com/monarch-initiative/monarch-app/blob/master/lib/monarch/phenopacket.js