The texts of primary sources are available online in two different ways:
Comprehensive list of library databases of primary sources in US History
Historical newspaper and magazine articles US History
Selected list of library databases of primary sources in European history
Historical newspaper and magazine articles, European history
Primary Sources by country or continent
Comprehensive list of library databases of primary sources worldwide.