An interactive web application designed to help users learn the foundational concepts of Chinese metaphysics. This project serves as a learning tool for the Qimen / FengShui Foundations course.
Live Demos:
- Main App (Qimen / FengShui Foundations): https://limcheekin.github.io/qishui/
- Qimen Flashcards: https://limcheekin.github.io/qishui/flashcard/qimen.html
- Overview
- Key Features
- Screenshots
- Technology Stack
- Project Structure
- Usage
- Development
- Deployment
- License
The project encompasses two main web-based learning tools:
- Qimen / FengShui Foundations App (
index.html): An interactive application focusing on:- 后天八卦 (Hòutiān Bāguà - Later Heaven Ba Gua) / 九宫 (Jiǔ Gōng Gé - Nine Palaces)
- 五行 (Wǔ Xíng - Five Elements) theory and interactions.
- Basic concepts of 奇门遁甲 (Qímén Dùnjiǎ), including the Eight Gates (八门 - Bā Mén) and their home palaces, and the Twenty-Four Mountains (二十四山 - Èrshísì Shān).
- This main application was created based on concepts introduced in the YouTube video 《水到奇成》说明会 to prepare the author for attending the offline class on 17 May 2025.
- Qimen Flashcard App (
flashcard/qimen.html): A supplementary tool for learning and searching key Qimen Dunjia terminology.
Both applications are designed to be intuitive, responsive, and bilingual (Simplified Chinese and English), providing a solid foundation for students of the "水到奇成" course.
- Interactive Ba Gua Grid: A visual 3x3 grid representing the Houtian Ba Gua / Jiu Gong Ge. Users can click on each of the 8 outer palaces to view detailed information.
- Qimen Eight Gates Overlay: Toggleable overlay to display the original Eight Gates (八门) within their respective Ba Gua palaces.
- 24 Mountains Overlay: Toggleable overlay to subdivide each Ba Gua palace into its three corresponding 24 Mountains segments, each clickable for more details.
- Detailed Information Panel: A dynamic panel displaying comprehensive information about the selected palace or mountain, including:
- Trigram details, direction, and element.
- Wu Xing (Five Elements) interactions (generating, controlling cycles).
- Qimen Gate properties and conceptual explanations (when Gate overlay is active).
- 24 Mountains specifics, degree ranges, and Feng Shui implications (when Mountain overlay is active).
- Bilingual Support: Full localization for Simplified Chinese (default) and English, with an easy-to-use language switcher. Language preference is saved in
localStorage. - Static Informational Sections: Collapsible sections providing essential background knowledge:
- How to Use This App
- About Wu Xing (The Five Elements) - with SVG diagrams
- About Directions, Luopan & 24 Mountains - with an SVG diagram
- About this App & Course Next Steps
- Glossary of Terms
- Responsive Design: Adapts to various screen sizes for optimal viewing on desktop, tablet, and mobile devices.
- SVG Diagrams: Dynamically generated SVG visuals for Wu Xing (Five Elements) cycles and Luopan subdivision for better understanding.
- Accessibility: Designed with keyboard navigation and ARIA attributes for improved accessibility.
- Comprehensive Qimen Dunjia Vocabulary: A collection of key terms and their definitions related to Qimen Dunjia.
- Search Functionality: Allows users to quickly search for specific terms or keywords within definitions.
- Bilingual Support: Full localization for Simplified Chinese (default) and English, with a language switcher.
- Responsive Design: Clean and readable interface on all devices.
- Dynamic Card Display: Flashcards are dynamically rendered based on the selected language and search query.
- HTML5
- CSS3
- Vanilla JavaScript (ES6+)
- No external JavaScript or CSS libraries are used. Both applications are self-contained single HTML files.
└── qishui/
├── README.md # This file
├── index.html # Main Qimen / FengShui Foundations application
├── LICENSE # MIT License
├── spec.md # Specifications for index.html
├── flashcard/
│ ├── qimen.html # Qimen Dunjia Flashcard application
│ └── qimen_spec.md # Specifications for flashcard/qimen.html
└── .github/
└── workflows/
└── deploy.yaml # GitHub Actions workflow for deployment
- Main App (Qimen / FengShui Foundations): Open index.html
- Qimen Flashcards: Open flashcard/qimen.html
- Language Selection: Use the language switcher in the header to toggle between Chinese (中文) and English (EN).
- Interacting with the Grid: Click on any of the 8 outer Ba Gua palaces.
- Information Panel: Information about the selected palace will appear in a panel. Click the '×' button, press the 'Escape' key, or click outside the panel to close it.
- Toggling Overlays:
- Click "Show Qimen Gates" (显示奇门八门) to overlay Qimen Gate information on the grid and in the info panel. Click again to hide.
- Click "Show 24 Mountains" (显示二十四山) to subdivide palaces into 24 Mountain segments. Click on a segment for details. Click again to hide.
- Both overlays can be active simultaneously.
- Static Information: Expand the sections below the grid (e.g., "How to Use This App", "About Wu Xing (Five Elements)") to read more.
- Language Selection: Use the language buttons (中文 / English) to switch the language of terms and definitions.
- Search: Type keywords into the search bar to filter the flashcards by term or definition.
- Browse: Scroll through the displayed flashcards.
To run the applications locally:
- Clone the repository:
git clone https://github.com/limcheekin/qishui.git
- Navigate to the project directory:
cd qishui - Open the HTML files in your web browser:
- For the main application: Open
index.html - For the flashcard application: Open
flashcard/qimen.html
- For the main application: Open
All code (HTML, CSS, JavaScript) is inline within these respective files.
This project is automatically deployed to GitHub Pages via a GitHub Actions workflow (.github/workflows/deploy.yaml). Any push to the main branch will trigger a deployment to the gh-pages branch, updating the live demos.
This project is licensed under the MIT License. See the LICENSE file for details.

