HakoniwaKit

平安京 Heian-kyo

Walk the capital of the year 900 in your browser

Tenjin — the god students pray to before exams. That god was once a man: by learning alone, he rose to minister. And soon, he will lose everything. You are a small robot sent from the 21st century to Heian-kyo in the year 900. Walk the city and ask its people, surveying its buildings and daily life, and find out what happened to the Minister of the Right, Sugawara no Michizane, who will be driven from the capital within a year. Why did it happen? Find out — and if it can be stopped, stop it. What you see and hear is kept in your Notebook; there is no winning or losing.

At that time the Fujiwara, who had made their daughters empresses for generations, stood at the centre of government. The former sovereign, Retired Emperor Uda, raised Sugawara no Michizane, a man of a scholars' house, to minister. The present emperor is only sixteen, and government is entrusted to two men: Fujiwara no Tokihira, Minister of the Left, and Michizane, Minister of the Right.

Heian-kyo is the city that became today's Kyoto.

Choose a robot and enter ↓

Press it and the city starts loading in a new tab. When it is ready, you appear in the sky above the capital (with music; turn it off with “Music” inside). The first visit downloads about 32 MB and takes one to three minutes. Runs in desktop and mobile browsers.

First steps

Once inside, try these first; the rest you will pick up as you walk. You can see them again under “How to play” in ☰ at the top right.

To doDesktopPhone
WalkClick the ground to walk there. The farther you click, the faster you goTap the ground to walk there
Look aroundDrag with the left button. WASD also moves youDrag on the screen
TalkWalk up to someone and press ETap a speech bubble or the “Talk” tag
GesturesB bow · G wave · Y flute · Q dance (people answer back)From “Actions” below
Famous placesPick one from the place list or a map marker at the top left, then choose “Walk there” or “Go now”
MoreT Trace (timeline) · N Notebook · ☰ night, music and star map. Stuck? Press “Wander” (O) and your robot strolls on its own

Ways to use it

The robot is sent from the 21st century to survey Heian-kyo. The aim of the survey is to find out what the capital of a thousand years ago was like, how its people worked, what they enjoyed and how they lived, and to pass that on to the 21st century. To do so, you walk every corner of the city, photograph its buildings and scenery, listen to its people, and put together the report for the 21st century in your Notebook.

The survey has a second mission. On the 25th day of the first month of 901, the Minister of the Right, Sugawara no Michizane, will be driven from the capital. Ask the people of the city why it happens, and afterwards tell the storyteller Furumaru your answer. The clues you gather are listed on the “Inquiry” page of your Notebook. An explanation backed by two clues is marked “certain”; with only one, it is a “rumour”. Furumaru passes on a certain explanation as a reliable account. That is the result of your survey. History does not change. What changes is the mood of the city (the “Mood of the City” page) and the fate of people whose names were never recorded.

Besides playing it as a game, you can use it in these ways.

Heian-kyo in the year 900

Emperor Kanmu moved the capital to Heian-kyo in 794. The robot arrives about a hundred years later, in the year 900 (the third year of the Shotai era), under Emperor Daigo. Fujiwara no Tokihira is Minister of the Left and Sugawara no Michizane is Minister of the Right. In the first month of the following year, Michizane is demoted to a post in distant Dazaifu and leaves the capital. It is a time when Rajomon Gate, the Great Hall of State, the palace and the Toji and Saiji temples all stood together.

The grid of streets was never filled with houses, and parts of the western half were already turning into farmland. Those open lots and marshes are still there inside the city.

The buildings in the year 900

Research note on the history of the buildings, 794–900 (Japanese) (opens in a new tab)

What you can do

The whole of Heian-kyo with the northern mountains behind it. The street grid and the Kamo and Katsura rivers are visible

Fly over the city

The drone tour flies through 19 places, from Rajomon Gate along Suzaku Avenue to the palace and Toji Temple. Drag and scroll to look from just above the ground to straight overhead. The grid, about 5.2 km north to south and 4.5 km east to west, sits in its real landscape of mountains and rivers.

The robot walking along Nijo Avenue past townspeople with speech bubbles, Suzakumon Gate on the far left

Walk the streets

Start from any of 51 places and click the ground (tap on a phone) to walk. You can also go inside some of the buildings. The townspeople's chatter appears in speech bubbles as you pass.

Visit the landmarks

Rajomon Gate at the southern edge of the city and the buildings of Toji Temple
Rajomon GateThe main gate of the capital, with Toji and Saiji temples facing each other on either side.
The five-storey pagoda, main hall, lecture hall and cloister of Toji Temple
Toji TempleThe pagoda, main hall and lecture hall inside a cloister and an earthen wall.
The pond, island and pavilions of the Shinsen-en garden
Shinsen-enThe imperial garden south-east of the palace, with halls and corridors along its pond.
Suzakumon Gate seen at an angle, a two-storey gate with vermilion pillars and white walls
Suzakumon GateThe main gate of the palace precinct, at the northern end of Suzaku Avenue.
The palace precinct from the air: the green-tiled Chodoin halls, walled government offices, and the imperial palace beyond
The palace precinctAround the green-tiled halls of the Chodoin, each ministry and bureau has its own walled compound.
Halls with cypress-bark roofs inside the cloister of the imperial palace
The imperial palaceThe Shishinden, the Seiryoden and the halls of the empresses and court ladies, roofed with cypress bark.

Talk with the townspeople

The game has about 4,900 townspeople, and what they say changes with the place, the hour, the season and the weather. Rank, household and whether they side with the Minister of the Left or the Minister of the Right shape how they talk. Ask about their life and they tell you which province they came from, the family back home, how they used to live and what worries them now. Neighbours who live together speak as one household. Earlier events such as the Otenmon Incident and the demon of the Pine Grove of the Banquet come up as rumours. What you hear is kept in your notebook, and each day is written up in a diary. Every line of dialogue is available in English.

An ox cart and a mounted party on willow-lined Suzaku Avenue

A calendar that moves

Days pass from the 25th day of the second month of the year 900 to the year 922, following the lunar calendar of the time, including long and short months and leap months. Once you pass the Shotai Incident on the 25th day of the first month of 901, Michizane's ox cart no longer appears, and the townspeople change what they say and where they go. The nobles' ox carts leave their mansions for the palace on schedule. The seasons turn: plum, cherry, new leaves, autumn colour and bare branches, with sunrise and sunset moving through the year. Each day is clear, cloudy or rainy. The East and West Markets open in alternate halves of the month. At night only bonfires and oil lamps break the darkness, as they did then.

Otenmon Gate photographed in gekiga style, drawn with ink lines and screentone

Take photos and share them

Photo mode saves the view as an image. Each photo goes into your Notebook automatically, together with the names of the buildings and streets in it, and you can pin the ones you want to keep. A caption with the date, weather and place is added, and the share button posts it straight to social media. You can hide the robot to capture just the streets, or shoot in a black-and-white gekiga (dramatic manga) style with ink lines and screentone. Your photos can also serve as backgrounds for your own manga, illustrations and videos (see the questions below for the conditions).

The night sky above the Great Hall of State, labelled with Polaris, Kochab (the Emperor star) and the Northern Dipper

The night sky of the time

The stars are placed where they stood around the year 901, worked back from a modern star catalogue by calculating the precession of the Earth's axis. Polaris, today's pole star, was about 7° from the celestial pole then, so it does not stay fixed in the north. The moon waxes and wanes, and the planets follow the calendar. You can show the lines and names of the Chinese constellations used at the time, and on clear nights townspeople tell stories about the stars.

The robot at the doorway of a government office where officials sit on the floor writing, one speaking in a bubble

Requests

Find a lost child, deliver a love letter, catch a thief of dried fish, look into the pillars of Rajomon Gate, and more. These quest-like requests deepen your ties with the townspeople, bring new stories, and open the way into the palace and the mansions of the nobility.

Choose your robot

You explore Heian-kyo as one of three small robots, sent back from the 21st century to survey the city in the year 900. They look and move differently, so pick whichever you like. You can switch any time from the ☰ menu (“Robot”).

Tsuchigumo, a low yellow-and-cream robot with six legs and six wheels

Tsuchigumo

Six-legged robot, named for a spider monster of old tales

  • Six legs & wheels
  • About 92 km/h
  • Rooftops

Six legs and six wheels carry it across streets and rooftops. It jumps onto a roof in one move and lowers itself from the edge on a thread.

Start as Tsuchigumo (opens in a new tab)

Choose Iron Boy for strength, Balloon Girl for flight, or Tsuchigumo for speed across streets and rooftops.

Map of Heian-kyo

The capital seen from directly above inside the game. The numbers mark the places where you can start walking, in a city about 5.2 km north to south and 4.5 km east to west. North is up. Suzaku Avenue runs south from the palace precinct at the top to Rajomon Gate. East of it (right) is the Left Capital, and west of it (left) is the Right Capital. Much of the south-west of the Right Capital is still marsh and woodland. You can also start from two places in the outskirts, the top of Mount Funaoka to the north and Toba Port to the south. They are numbered as “Outskirts” in the bands above and below the map.

Map of Heian-kyo seen from directly above, with numbered markers for the 51 places where you can start walking. The outskirts are in the bands above and below 1. Daigokuden Hall1 2. Burakuden Hall2 3. Inner Palace (Dairi)3 4. Otenmon Gate4 5. Suzakumon Gate5 6. Bureau of Divination (Onmyo-ryo)6 7. Rajomon Gate7 8. Suzaku Avenue8 9. East Market9 10. West Market10 11. East Korokan11 12. West Korokan12 13. Horikawa Canal13 14. Ichijo Modoribashi Bridge14 15. To-ji Temple15 16. Sai-ji Temple16 17. Gojo Tenjin Shrine17 18. Ichihime Shrine18 19. Daishogun-do Hall19 20. Rokkakudo Hall20 21. Inabado Hall21 22. Shinsen-en Garden22 23. Suzaku-in23 24. Reizei-in24 25. Yozei-in25 26. Machijiri-dono26 27. Kaya-no-in27 28. Horikawa-in28 29. Kan-in29 30. Higashi-Sanjo-dono30 31. Nijo-no-miya31 32. Ko-Nijo-in32 33. Yamabuki-dono33 34. Sugawara-in34 35. Kobai-dono35 36. Hakubai-dono36 37. Teiji-no-in37 38. Kawara-no-in38 39. Academic quarter39 40. Aristocratic quarter40 41. Commoners' quarter41 42. Officials' quarter, northern Right Capital42 43. Green spaces of the Right Capital43 44. Carpenters' quarter (Bureau of Carpentry)44 45. Palace repair workers' quarter45 46. Craftsmen's quarter (Bureau of Crafts)46 47. Papermakers' and copyists' quarter (Bureau of Books)47 48. Kamiya-in Paper Mill48 49. Seyakuin Dispensary49 50. Mt. Funaoka Summit50Mt. Funaoka Summit, about 1.4 km north 51. Toba Port51Toba Port, about 2.6 km south

The palace precinct

  1. Daigokuden Hall
  2. Burakuden Hall
  3. Inner Palace (Dairi)
  4. Otenmon Gate
  5. Suzakumon Gate
  6. Bureau of Divination (Onmyo-ryo)

Gates, avenues and markets

  1. Rajomon Gate
  2. Suzaku Avenue
  3. East Market
  4. West Market
  5. East Korokan
  6. West Korokan
  7. Horikawa Canal
  8. Ichijo Modoribashi Bridge

Temples and shrines

  1. To-ji Temple
  2. Sai-ji Temple
  3. Gojo Tenjin Shrine
  4. Ichihime Shrine
  5. Daishogun-do Hall
  6. Rokkakudo Hall
  7. Inabado Hall

Residences, villas and gardens

  1. Shinsen-en Garden
  2. Suzaku-in
  3. Reizei-in
  4. Yozei-in
  5. Machijiri-dono
  6. Kaya-no-in
  7. Horikawa-in
  8. Kan-in
  9. Higashi-Sanjo-dono
  10. Nijo-no-miya
  11. Ko-Nijo-in
  12. Yamabuki-dono
  13. Sugawara-in
  14. Kobai-dono
  15. Hakubai-dono
  16. Teiji-no-in
  17. Kawara-no-in

Workshops, offices and neighbourhoods

  1. Academic quarter
  2. Aristocratic quarter
  3. Commoners' quarter
  4. Officials' quarter, northern Right Capital
  5. Green spaces of the Right Capital
  6. Carpenters' quarter (Bureau of Carpentry)
  7. Palace repair workers' quarter
  8. Craftsmen's quarter (Bureau of Crafts)
  9. Papermakers' and copyists' quarter (Bureau of Books)
  10. Kamiya-in Paper Mill
  11. Seyakuin Dispensary

Outskirts

  1. Mt. Funaoka Summit
  2. Toba Port

Reading the screen

The image below is the screen while you walk. Each round number in the image matches the same number in the table under it. A short "How to play" guide also appears the first time you open the game, and you can open it again from the ☰ menu at the top right.

The screen while walking: the map at the top left, the button bar at the top right, the clock at the bottom right, gesture buttons along the bottom and the place description at the bottom left 1 2 3 4 5 6 7 8 9 10 11 12
No.NameWhat it does
1Map and destinationsChoose from the list or a marker on the map to go there. The blue marker shows where you are and which way you face. While walking, only places you have visited or heard about are shown.
2WalkStarts walking on the ground. It reads "Walking" while you walk.
3ViewThe drone tour, back to the overview, photo mode, and fixed viewpoints such as the busy market, the court of the Chodoin and the front of Suzakumon Gate.
4Timeline (T)A timeline of the capital. You can move time forward to turning points such as the Shotai Incident.
5Notebook (N)What you have heard, and a diary of each day.
6☰ menuMusic, time settings, light and shadow, gekiga style, constellations and dialogue on or off, plus the language switch and How to play.
7Name tagThe name of a building or gate.
8Speech bubbleWhat a townsperson is saying.
9TalkAppears when someone nearby can be spoken to. Press E or click the tag.
10ClockThe date and hour, which market is open and the phase of the moon. Drag the slider to change the hour, or play and speed up time.
11GesturesJump, dance, pray, bow, wave, lift, sit and follow. The key is shown on each button.
12About this placeThe name and description of where you are.
PC (walking)Click the ground to walk there / left-drag to look around / WASD to move / E to talk / Shift to skip ahead / Esc to stop walking / H to hide the on-screen prompts
PC (from the air)Drag to turn / scroll to move closer or farther
PhoneDrag to look around / tap the ground to walk there / pinch to move closer or farther

The research behind it

The capital in the game is Heian-kyo about a century after it was laid out, rebuilt on the national elevation data of Japan. Buildings, streets and daily life were reconstructed by comparing city plans, recorded street dimensions, excavation reports and court diaries. The research notes separate what the sources confirm from what is estimated. All 27 research notes are published, in Japanese, as a companion to the reconstruction.

Read the research notes (Japanese) (opens in a new tab)

What is HakoniwaKit?

HakoniwaKit is a project to recreate towns, castles and regions, historical or imagined, as miniature worlds (hakoniwa) you can walk in your browser. Heian-kyo is the first. More are planned.

Questions

Why the year 900?
The planned buildings all stood together at this time, and in the first month of the next year the Shotai Incident drove the Minister of the Right, Sugawara no Michizane, out of the capital. As the calendar moves on you reach that incident, the change of era to Engi (901) and the death of Fujiwara no Tokihira (909).
Is it free?
Yes. No sign-up is needed. It runs when you open it in a browser.
Does it work on a phone?
Yes. Drag to look around and tap the ground to move. The first download is large, so Wi-Fi is recommended.
How accurate is it?
The terrain uses the elevation model of the Geospatial Information Authority of Japan, and the streets are laid out from dimensions recorded in historical texts. Where direct evidence is scarce, such as building details and commoners' houses, the reconstruction is an estimate, and the research notes (opens in a new tab) (Japanese) state how certain each part is.
Can I use my photos in my own work?
You can use them as backgrounds in personal works such as manga, illustrations and videos. When you publish, please credit "HakoniwaKit Heian-kyo". For commercial use, please get in touch.
Is my progress saved?
The date, what you have heard and your photos are kept in your browser, and the next visit continues from there. Nothing is sent anywhere.

To the capital of a thousand years ago

Start in front of Rajomon Gate and walk north along Suzaku Avenue.

Go to Heian-kyo (with sound) (opens in a new tab)