A colleague brought to my attention a terrific online resource called A New Nation Votes. It is a searchable collection of election returns from 1787 to 1825. The collection is maintained by the American Antiquarian Society and Tufts University Digital Collections and Archives. Funding for the project was provided by the National Endowment for the Humanities.
The data available is very diverse. It involves all offices at the federal state and local levels, including presidential elections, town clerk elections, and every office in between.