The core WebExtension code lives in the same repository as the Firefox browser. If you've never hacked on Firefox before, there is a [http://areweeveryoneyet.org/onramp/desktop.html quick guide to getting started], which will show you how to check out the code and do your first build.