Patent applications are generally published 18 months after they are filed. At that point, they are available for the public to search and view even if no patent has yet been granted. Inventors may file a Non-publication Request which, if granted, keeps the application and communications with the USPTO confidential until a patent is granted.
Provisional patent applications are not published, as they are not examined and are valid for just one year.