AI Trends

Jiangshan Shixu Developers Review Using AI to Create a Map of Two Thousand Years of Chinese History

SSPAIUpdated Nov 26 13:04

AI summary

The developers of Jiangshan Shixu used AI to create a map of Chinese history with a draggable timeline, making more than 200 code commits in two and a half weeks. The map lets users explore how cities evolved and trace the journeys of historical figures, and it includes AI skills that can be invoked through natural language. The project received about 1,400 stars on GitHub, as well as community contributions including performance optimizations, GeoJSON export, and a Traditional Chinese version.

Why read this

AI score 64

From a single prompt to an interactive historical map, the article presents the complete process of AI-assisted development, historical-source verification, and community collaboration.

Topics

Tags

Body · AI translation

Click the button below to copy the link. Disclosure of interests: The author has a direct financial interest in the product discussed in this article (as its developer, as an in-house product, etc.).

Early on the morning of October 21, I woke up and casually checked GitHub. I discovered that Jiangshan Timeline, which had only had a few dozen stars a few days earlier, had gained more than a hundred overnight. Over the next few days, that number climbed all the way to 1,400.

Jiangshan Timeline’s GitHub star curve

Even now, it still feels a little unreal, so I wanted to write something about why I decided to build a website like this.

Illustrations in history textbooks

I was a science-track student, but I have loved history and maps since childhood. At school, I often got the highest marks in the class in history and geography, and for a while I really wanted to choose the humanities track. Unfortunately, I was terrible at politics, and essay questions gave me a headache as soon as I saw them. So I reluctantly studied science and later naturally became a programmer. But my love of human geography never changed.

At school, my favorite things to pore over were the maps in middle- and high-school history textbooks. Looking at a map of the Tang dynasty’s territory, I would imagine the flourishing eras of Zhenguan and Kaiyuan. When I turned to the Song dynasty, I would quietly sigh over the loss of the Sixteen Prefectures of Yanyun. Seeing the Ming restore the realm and then turning to the “begonia leaf” shape of China at the Qing dynasty’s height would always excite me for ages. I often placed maps from different dynasties side by side to compare how they changed, then located the places on maps of modern cities. Every time, I discovered something new. Later, as I studied more classical Chinese prose and poetry, whenever I encountered a place name in a poem or essay, I made a habit of finding where it would be today.

Even then, I thought how amazing it would be to have a map containing every dynastic transition in Chinese history, where you could simply drag a control to watch the changes unfold.

After I started working, I continued reading many history books. The ones that left the deepest impression were Bohai Xiaoli’s Tragic Songs of the Two Jin Dynasties and The Reunification of North and South. Whenever I read about the Sixteen Kingdoms of the Five Barbarians and saw that bewildering tangle of regimes succeeding one another, I would try to assemble a map in my mind, but could never make it clear.

From an abandoned game to the first block-color map

This idea stayed with me for many years, but I never considered building it myself. It was only as Vibe Coding gradually became popular that I first felt I might actually be able to bring the image in my mind to life.

In July this year, I tried building a prototype. At the time, I wanted to make a historical geography game, but halfway through I realized that what I really wanted to see was the map itself, not a game. The prototype was not particularly impressive either, so I set it aside.

By October, model capabilities had advanced another level, so I picked the project up again. This time, I focused solely on the map. It began with one very simple prompt:

Build me a map of Chinese history with a draggable timeline.

It did not take AI long to produce the first version. There were no mountains or rivers, only a few crude colored blocks. The dynasties were divided very roughly, and all the borders were straight lines and jagged edges. But when I dragged the timeline at the bottom and watched those colored blocks expand and contract as the years changed, I was still blown away.

Challenging myself—and challenging history

From that day on, the project became difficult to put down. Over two and a half weeks, I made more than 200 code commits, most of them late at night or on weekends.

After creating the horizontal axis of time, I wondered whether I could start from each city and explore the vertical axis of geography. So I added “Trace a Place,” which lets you click any city to see the names it has had and the major events that occurred there over more than two millennia. With the horizontal and vertical axes in place—heaven and earth accounted for—could people, the protagonists of history, also naturally enter this map? That led to “Trace a Person,” which plots the lifetime journeys of figures such as Zhang Qian, Xuanzang, and Su Shi on the map.

Complete map of the flourishing Tang dynasty in the 29th year of the Kaiyuan era

Later, inspiration struck and I gave it an AI Skill, allowing anyone to control the map using natural language. Casually quote, “Snow chokes Blue Pass; my horse refuses to go,” and it will jump to the year when Han Yu was exiled to Chaozhou and reined in his horse at Blue Pass, then mark the pass on the map. Ask, “You ask what I achieved in this life: Huangzhou, Huizhou, Danzhou,” and it will connect and display the route of Su Dongpo’s successive exiles.

Trace a Person · Su Shi’s official career and journeys of exile

As the map grew more detailed, I found more and more things to obsess over. AI and I searched online through various open-source datasets, then painstakingly corrected errors by cross-checking the Comprehensive Mirror in Aid of Governance and the official histories of each dynasty. Once, I zoomed in and discovered that Shangjing, the Liao dynasty’s capital, had somehow been drawn outside Liao territory. I had to go back and gradually fill in northern Liao territory and the Shangjing Circuit. On another occasion, the Mongol Empire, which stretched across Eurasia, inexplicably had a hole near Lop Nur. It took a great deal of research to patch it.

Once I had fixed the section on the Sixteen Kingdoms of the Five Barbarians, I opened Tragic Songs of the Two Jin Dynasties and reread it alongside my map. At last, I could clearly distinguish Former Qin, Later Qin, and Western Qin, which I had never been able to keep straight before.

From hitting walls everywhere to finally being noticed

Once the map had taken shape, I first shared it in my coworkers’ group chat and on WeChat Moments. Quite a few friends who enjoy history offered suggestions, and some colleagues were inspired to create spin-off versions. Some made historical maps of their hometowns, while others used the map to memorize Tang poetry. When I first put it on GitHub, hardly anyone looked at it, and I even shamelessly posted on WeChat Moments asking friends to help by giving it a star.

To help more people discover it, I added an English version and posted it on LinkedIn and Reddit. It made no splash at all on LinkedIn, but the response on Reddit was quite good. One Chinese user living abroad commented that he used the map to teach his child Chinese history, and the child absolutely loved it.

But back on Chinese-language platforms, I hit a wall nearly everywhere I tried: posts I made on Xiaohongshu and Zhihu had their reach restricted, and when I submitted the project to several well-known Chinese GitHub recommendation communities on the off chance they might pick it up, nothing much happened either.

It was not until “Knowledge Sharing Officer” reposted my website on X that Jiangshan Shixu truly entered the public eye for the first time, gaining more than 1,000 stars within a few days. Amusingly, my own Xiaohongshu posts had been throttled, but after the project went viral, quite a few people reposted my map on Xiaohongshu and WeChat public accounts—and they ended up getting plenty of traffic.

As I scrolled through the comments on X, I saw one person say, “Finally, I don’t have to keep looking up what a place is called today while reading history.” Someone else wondered, “With data this granular, how much hair must the people cleaning it have lost?” And one comment held my gaze for a long time:

The moment you drag the timeline, dynasties cease to be terms in a textbook and become the mountains and rivers beneath your feet, which you can travel back and forth across again and again. A good tool gives memory coordinates.

As more people began following the project, it also welcomed its first external contributors: some helped me optimize rendering performance, some added GeoJSON export to facilitate further development, and some turned it into an app that could be installed on a phone’s home screen. Friends in Taiwan helped me add a Traditional Chinese version, and I also received many encouraging private messages. One GitHub reply contained just a single sentence:

This website has had my son completely hooked for days.

During the days I spent making this map, I reviewed those dynasties over and over, often sitting there until midnight. I, too, was that completely hooked child.

Who says tech guys don’t understand romance? To place more than 2,000 years of mountains and rivers, cities, and paths traveled by people of the past onto a single map—and to see so many people sharing the same passion with me—is surely its own kind of happiness.

I hope this map can accompany more people on a journey across the vast realm preserved in old books and papers.

> Download the SSPAI app and follow SSPAI’s WeChat public account to discover more cool new things 🆒

> Special offers and useful hardware products are all available from the official SSPAI store 🛒 Artificial Intelligence Editor:

English text is being prepared.

57 SSPAI members have tipped

Source

SSPAI