This website can generate the history of a civilization. You can specify the duration of the historical timeline, though most generated civilizations last for less than 1000 years unless you boost their starting health and vitality to the max and lower their aggressiveness to the minimum. Alternatively, you can decide to opt to get rid of civilization-death in favor of a "Crisis" (one year of doom, then the sim resets stats and continue onward) or a "Dark Ages" (a timeskip of several years before the sim resumes).
The game also generates various other generated civilizations that your civilization can either trade with or make war with. These wars could impact the fate of the civilization, either making them more prosperous if they win, or leading to their possible destruction.
There's a lot of interesting stuff behind the hood (for example, building a library can impact the chances of other events), but there's also a few bugs (for example, the "Rebellion End" event can occur even though there is no "Rebellion" to begin with). Here's a link to
the source code, in PHP.
If you set a civilization to be magical, you can gain some new fantasy-inspired events, such as wizards establishing schools and then beating each other up. This might be useful if you are creating a fantasy setting.
I did not make this. It was made by kolvar in 2004, and I discovered it while looking for a History Generator because I was disenchanted with Cult and wanted something to help with easy worldbuilding.
This is the thread where I discovered it. I've since been trying to modify the source code, but it turns out that I'm terrible on PHP and I can't even get it to run on a server. So I'm making this post to ask for help. I think is is a great generator that needs some love.