Magento 2 uses Composer for the extensions management (the packages in the Composer terminology).
Packages are stored in the repositories.
Composer supports a lot of data sources for a repository (repository types in the Composer terminology): https://getcomposer.org/doc/05-repositories.md#types