You may find the Federalist Papers interesting. From google:
"In Federalist No. 68, Alexander Hamilton argues that the Electoral College is an "excellent" system that balances democratic representation with necessary security. He outlines four main defenses of the system:
Informed Deliberation: The system ensures the president is chosen by capable, deliberative citizens rather than a general public susceptible to temporary passions or "mob rule".
Prevention of Corruption: By having electors vote in their respective states rather than in one national convention, the framers minimized the risk of foreign interference, bribery, and mob violence.
Independence of Electors: Electors are chosen specifically for this single purpose and cannot hold federal office, ensuring they are independent and not beholden to existing power structures.
Broad National Support: The system requires a candidate to gain broad, nationwide consent rather than just winning a concentrated plurality of the population
Federalist No. 10 (James Madison)
Fear of Factions: Madison warns against "factions," which are groups of citizens united by a common passion detrimental to the rights of others.
Filter for Passion: He argues that a representative republic, rather than a direct democracy, is needed to "refine and enlarge the public views" through a chosen body of citizens.
Large Republic Advantage: He states that a larger territory with more representatives makes it harder for a single, malicious faction to gain a majority.
Federalist No. 51 (James Madison)
Checks and Balances: Madison explains that the government must be structured so that its various parts keep each other in check.
Ambition Countering Ambition: The Electoral College aligns with this by preventing the legislative branch from choosing the president, keeping the executive completely independent.
Federalist No. 39 (James Madison)
The "Compound" Republic: Madison defines the U.S. Constitution as neither strictly national (focused on the people as a whole) nor strictly federal (focused on the states as individual units), but a mixture of both.
State Representation: The Electoral College reflects this compound structure by giving states a distinct, sovereign voice in choosing the executive leader.