Eiheiji (永平寺) is a small town in Fukui prefecture famous for its impressive temple of the same name.
The main attraction in the town is Eiheiji Temple, which was established in 1244 by Zen Master Dogen and is the head temple of the Soto Zen school.
A famous poem by Dogen:
Eiheiji is located about 15 km from Fukui City; either take a direct bus from Fukui Station (4 daily, 30 min, 720¥) or a train to Eiheiji-Guchi (25min, 440¥) and then a connecting bus (15min, 410¥). It's possible to leave Kanazawa (north) or Kyoto (southwest) in the early morning by train and get to the temple by noon. Ask the bus driver to notify you when you arrive; there are several stops called "Eiheiji-something", which can be confusing.
Anything of interest to travelers is within walking distance of the monastery.
It is important to note that unless you are admitted to the meditation programs, the only parts of the temple complex open to tourists are the Treasure Hall (a small museum containing scrolls and statues), and the entrance hall containing the information centre. There is also a graveyard outside the walls. The main buildings of the temple complex and Eiheiji temple itself are not open to the public.