The ns-3 project uses the GitLab.com cloud service to host various Git repositories that contain the ns-3 source code. The main development tree can be easily browsed online.

Older Mercurial repositories from the project (2018 and earlier) can be browsed here.