brew is the core command for the Homebrew project. Homebrew installs the stuff you need that Apple didn't. Homebrew typically deals with command line software (not graphical GUI applications). Most of the software is distributed under an open source licence.