From the repo you linked:
> This repo is available under the MIT expat license, except for the ee directory (which has its license here) if applicable.
> Need absolutely 100% FOSS? Check out our posthog-foss repository, which is purged of all proprietary code and features.