The reference code for Facets can be found at the following GitHub repo:
https://github.com/PAIR-code/facets