@aleph-ai/tinyaleph 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,471 @@
1
+
2
+ /**
3
+ * I Ching (Book of Changes) Symbol Definitions
4
+ *
5
+ * The 64 hexagrams representing all possible combinations of yin and yang
6
+ * lines in groups of six. Each hexagram encodes millennia of Chinese
7
+ * philosophical wisdom about change, relationships, and the nature of reality.
8
+ *
9
+ * Unicode range: U+4DC0 to U+4DFF (Yijing Hexagram Symbols)
10
+ */
11
+
12
+ const { SymbolCategory } = require('./base');
13
+
14
+ const ichingHexagrams = [
15
+ // ═══════════════════════════════════════════════════════════════════
16
+ // THE 64 HEXAGRAMS
17
+ // ═══════════════════════════════════════════════════════════════════
18
+
19
+ {
20
+ id: 'iching_01_qian',
21
+ unicode: '䷀',
22
+ category: SymbolCategory.ICHING_HEXAGRAMS,
23
+ meaning: 'Hexagram 1: Qián (乾) - The Creative/Heaven - Six unbroken yang lines representing pure creative power. The dragon rises through the clouds, embodying the active, initiating principle of the universe. This is the father, the sky, the unstoppable force of creation and initiative. Key message: Act with perseverance and integrity; the time is right for leadership and bold moves. The Superior Person acts with strength and tireless persistence.',
24
+ culturalTags: ['iching', 'divination', 'chinese', 'yang', 'heaven', 'creative', 'leadership']
25
+ },
26
+ {
27
+ id: 'iching_02_kun',
28
+ unicode: '䷁',
29
+ category: SymbolCategory.ICHING_HEXAGRAMS,
30
+ meaning: 'Hexagram 2: Kūn (坤) - The Receptive/Earth - Six broken yin lines representing pure receptive power. The mare moves with gentle strength across the earth, embodying the nurturing, responsive principle. This is the mother, the earth that receives and brings forth. Key message: Remain receptive to guidance; follow rather than lead. The Superior Person accepts fate with grace, carrying burdens without complaint.',
31
+ culturalTags: ['iching', 'divination', 'chinese', 'yin', 'earth', 'receptive', 'devotion']
32
+ },
33
+ {
34
+ id: 'iching_03_zhun',
35
+ unicode: '䷂',
36
+ category: SymbolCategory.ICHING_HEXAGRAMS,
37
+ meaning: 'Hexagram 3: Zhūn (屯) - Difficulty at the Beginning/Sprouting - Water above Thunder: the sprout pushing through frozen ground. Beginning is always difficult; the blade of grass must crack concrete to reach light. Chaos precedes order in creation. Key message: Persist through initial difficulties; seek help rather than forcing outcomes. The Superior Person brings order out of confusion by organizing helpers.',
38
+ culturalTags: ['iching', 'divination', 'chinese', 'difficulty', 'beginning', 'growth', 'perseverance']
39
+ },
40
+ {
41
+ id: 'iching_04_meng',
42
+ unicode: '䷃',
43
+ category: SymbolCategory.ICHING_HEXAGRAMS,
44
+ meaning: 'Hexagram 4: Méng (蒙) - Youthful Folly/Inexperience - Mountain above Water: the spring at the mountain\'s foot, unclear where to flow. The young student doesn\'t seek the teacher; the teacher awaits the sincere question. Ignorance is not stupidity but the opportunity for learning. Key message: Be humble in learning; don\'t ask the same question twice. The Superior Person nurtures character through clear thinking.',
45
+ culturalTags: ['iching', 'divination', 'chinese', 'learning', 'youth', 'education', 'humility']
46
+ },
47
+ {
48
+ id: 'iching_05_xu',
49
+ unicode: '䷄',
50
+ category: SymbolCategory.ICHING_HEXAGRAMS,
51
+ meaning: 'Hexagram 5: Xū (需) - Waiting/Nourishment - Water above Heaven: clouds gather, rain must come, but not yet. True waiting is not passive anxiety but active preparation and enjoyment of the present. The danger ahead requires resources gathered now. Key message: Wait with patience and confidence; strengthen yourself for what comes. The Superior Person eats, drinks, and is merry while waiting.',
52
+ culturalTags: ['iching', 'divination', 'chinese', 'patience', 'waiting', 'preparation', 'timing']
53
+ },
54
+ {
55
+ id: 'iching_06_song',
56
+ unicode: '䷅',
57
+ category: SymbolCategory.ICHING_HEXAGRAMS,
58
+ meaning: 'Hexagram 6: Sòng (訟) - Conflict/Lawsuit - Heaven above Water: movement in opposite directions, the structure of disagreement. When forces oppose, victory leaves bitter residue. Conflict expends the resources better used for creation. Key message: Avoid conflict if possible; if unavoidable, seek mediation. The Superior Person carefully considers beginning undertakings.',
59
+ culturalTags: ['iching', 'divination', 'chinese', 'conflict', 'dispute', 'caution', 'resolution']
60
+ },
61
+ {
62
+ id: 'iching_07_shi',
63
+ unicode: '䷆',
64
+ category: SymbolCategory.ICHING_HEXAGRAMS,
65
+ meaning: 'Hexagram 7: Shī (師) - The Army/Collective Force - Earth above Water: hidden force beneath the surface, like an army below ground level. Leadership of groups requires discipline, clear purpose, and moral authority. Power must serve, not dominate. Key message: Organize people under principled leadership; discipline with justice. The Superior Person increases followers by generosity.',
66
+ culturalTags: ['iching', 'divination', 'chinese', 'army', 'leadership', 'discipline', 'organization']
67
+ },
68
+ {
69
+ id: 'iching_08_bi',
70
+ unicode: '䷇',
71
+ category: SymbolCategory.ICHING_HEXAGRAMS,
72
+ meaning: 'Hexagram 8: Bǐ (比) - Holding Together/Union - Water above Earth: water on earth, finding its level, uniting in pools. Union comes from shared purpose and mutual benefit, not coercion. The right time to form alliances. Key message: Seek unity with like-minded others; examine motives for joining. The Superior Person builds relationships through reliability.',
73
+ culturalTags: ['iching', 'divination', 'chinese', 'union', 'alliance', 'cooperation', 'trust']
74
+ },
75
+ {
76
+ id: 'iching_09_xiaoxu',
77
+ unicode: '䷈',
78
+ category: SymbolCategory.ICHING_HEXAGRAMS,
79
+ meaning: 'Hexagram 9: Xiǎo Xù (小畜) - Small Taming/Restraint of the Small - Wind above Heaven: gentle wind restrains even heaven for a moment. Small forces can temporarily check large ones; patience accumulates power for later. Key message: Make gradual progress; restrain impulses with gentle persistence. The Superior Person refines cultural expression.',
80
+ culturalTags: ['iching', 'divination', 'chinese', 'restraint', 'patience', 'accumulation', 'gentleness']
81
+ },
82
+ {
83
+ id: 'iching_10_lu',
84
+ unicode: '䷉',
85
+ category: SymbolCategory.ICHING_HEXAGRAMS,
86
+ meaning: 'Hexagram 10: Lǚ (履) - Treading/Conduct - Heaven above Lake: walking on the tiger\'s tail—how you conduct yourself in dangerous situations. Proper conduct brings safety even in peril; awareness of one\'s place prevents offense. Key message: Tread carefully but confidently; maintain propriety in all dealings. The Superior Person distinguishes high and low, settling the hearts of people.',
87
+ culturalTags: ['iching', 'divination', 'chinese', 'conduct', 'caution', 'propriety', 'danger']
88
+ },
89
+ {
90
+ id: 'iching_11_tai',
91
+ unicode: '䷊',
92
+ category: SymbolCategory.ICHING_HEXAGRAMS,
93
+ meaning: 'Hexagram 11: Tài (泰) - Peace/Prosperity - Earth above Heaven: earth descending, heaven ascending, forces meeting in harmony. This is spring, new growth, abundance. Yin and yang in perfect balance create flourishing. Key message: Embrace this time of peace and growth; share prosperity generously. The Superior Person unites high and low in common enterprise.',
94
+ culturalTags: ['iching', 'divination', 'chinese', 'peace', 'prosperity', 'harmony', 'spring']
95
+ },
96
+ {
97
+ id: 'iching_12_pi',
98
+ unicode: '䷋',
99
+ category: SymbolCategory.ICHING_HEXAGRAMS,
100
+ meaning: 'Hexagram 12: Pǐ (否) - Standstill/Stagnation - Heaven above Earth: forces moving apart, communication blocked, stagnation and decline. Yet stagnation carries the seed of breakthrough; winter prepares spring. Key message: Withdraw from deteriorating conditions; preserve yourself for better times. The Superior Person avoids difficulties by restraining virtue within.',
101
+ culturalTags: ['iching', 'divination', 'chinese', 'stagnation', 'obstruction', 'decline', 'withdrawal']
102
+ },
103
+ {
104
+ id: 'iching_13_tongren',
105
+ unicode: '䷌',
106
+ category: SymbolCategory.ICHING_HEXAGRAMS,
107
+ meaning: 'Hexagram 13: Tóng Rén (同人) - Fellowship/Community - Heaven above Fire: fire rises to meet heaven, illuminating all equally. True community based on shared principles transcends personal interests. Unity comes from what we value together. Key message: Build alliances on principle, not convenience; openness brings unity. The Superior Person organizes clans and distinguishes things.',
108
+ culturalTags: ['iching', 'divination', 'chinese', 'fellowship', 'community', 'unity', 'openness']
109
+ },
110
+ {
111
+ id: 'iching_14_dayou',
112
+ unicode: '䷍',
113
+ category: SymbolCategory.ICHING_HEXAGRAMS,
114
+ meaning: 'Hexagram 14: Dà Yǒu (大有) - Great Possession/Abundance - Fire above Heaven: the sun at zenith illuminating all things. Supreme success, great power, abundant resources—but with wealth comes responsibility. Key message: Use abundance wisely and generously; avoid arrogance. The Superior Person suppresses evil and promotes good, fulfilling heaven\'s will.',
115
+ culturalTags: ['iching', 'divination', 'chinese', 'abundance', 'success', 'responsibility', 'generosity']
116
+ },
117
+ {
118
+ id: 'iching_15_qian',
119
+ unicode: '䷎',
120
+ category: SymbolCategory.ICHING_HEXAGRAMS,
121
+ meaning: 'Hexagram 15: Qiān (謙) - Modesty/Humility - Earth above Mountain: the mountain hidden beneath earth, great strength that doesn\'t display itself. Modesty is not weakness but wisdom—the full grain bows its head. Key message: Cultivate humility; let your work speak for itself. The Superior Person reduces excess and increases what is lacking, weighing things justly.',
122
+ culturalTags: ['iching', 'divination', 'chinese', 'modesty', 'humility', 'balance', 'wisdom']
123
+ },
124
+ {
125
+ id: 'iching_16_yu',
126
+ unicode: '䷏',
127
+ category: SymbolCategory.ICHING_HEXAGRAMS,
128
+ meaning: 'Hexagram 16: Yù (豫) - Enthusiasm/Delight - Thunder above Earth: thunder rising from the earth, stirring all creatures with energy. Enthusiasm moves people; joy opens possibilities. Music and celebration create harmony. Key message: Inspire through genuine enthusiasm; timing is right for action. The Superior Person makes music to honor virtue.',
129
+ culturalTags: ['iching', 'divination', 'chinese', 'enthusiasm', 'joy', 'inspiration', 'music']
130
+ },
131
+ {
132
+ id: 'iching_17_sui',
133
+ unicode: '䷐',
134
+ category: SymbolCategory.ICHING_HEXAGRAMS,
135
+ meaning: 'Hexagram 17: Suí (隨) - Following/Adaptation - Lake above Thunder: thunder resting beneath the lake, activity in repose. To lead, one must first learn to follow; to influence, one must adapt. Key message: Follow worthy leaders; know when to lead and when to follow. The Superior Person rests and recovers at nightfall.',
136
+ culturalTags: ['iching', 'divination', 'chinese', 'following', 'adaptation', 'service', 'rest']
137
+ },
138
+ {
139
+ id: 'iching_18_gu',
140
+ unicode: '䷑',
141
+ category: SymbolCategory.ICHING_HEXAGRAMS,
142
+ meaning: 'Hexagram 18: Gǔ (蠱) - Work on the Decayed/Repair - Mountain above Wind: stagnant wind beneath the mountain, decay requiring attention. What has been corrupted must be corrected; what ancestors neglected, descendants must repair. Key message: Address inherited problems; reform what has deteriorated. The Superior Person stirs up people and nourishes virtue.',
143
+ culturalTags: ['iching', 'divination', 'chinese', 'decay', 'repair', 'reform', 'correction']
144
+ },
145
+ {
146
+ id: 'iching_19_lin',
147
+ unicode: '䷒',
148
+ category: SymbolCategory.ICHING_HEXAGRAMS,
149
+ meaning: 'Hexagram 19: Lín (臨) - Approach/Advancing - Earth above Lake: earth approaching the lake, the great approaching the small. Those in power approach subjects with care; success comes from proper relationships. Key message: Approach others with sincerity; leadership requires genuine connection. The Superior Person teaches and nurtures inexhaustibly.',
150
+ culturalTags: ['iching', 'divination', 'chinese', 'approach', 'influence', 'leadership', 'sincerity']
151
+ },
152
+ {
153
+ id: 'iching_20_guan',
154
+ unicode: '䷓',
155
+ category: SymbolCategory.ICHING_HEXAGRAMS,
156
+ meaning: 'Hexagram 20: Guān (觀) - Contemplation/Observation - Wind above Earth: wind blowing over earth, seeing all. The ruler observes the people; the people observe the ruler. Clear seeing reveals truth on all levels. Key message: Observe carefully before acting; set examples worthy of observation. The Superior Person inspects all regions and observes the people.',
157
+ culturalTags: ['iching', 'divination', 'chinese', 'contemplation', 'observation', 'insight', 'example']
158
+ },
159
+ {
160
+ id: 'iching_21_shihe',
161
+ unicode: '䷔',
162
+ category: SymbolCategory.ICHING_HEXAGRAMS,
163
+ meaning: 'Hexagram 21: Shì Kè (噬嗑) - Biting Through/Decisive Action - Fire above Thunder: lightning and thunder together, decisive force. Something obstructs union; it must be bitten through. Justice requires punishment; obstacles require force. Key message: Remove obstacles decisively; apply justice firmly and fairly. The Superior Person clarifies punishments and enforces laws.',
164
+ culturalTags: ['iching', 'divination', 'chinese', 'decisiveness', 'justice', 'obstacles', 'action']
165
+ },
166
+ {
167
+ id: 'iching_22_bi',
168
+ unicode: '䷕',
169
+ category: SymbolCategory.ICHING_HEXAGRAMS,
170
+ meaning: 'Hexagram 22: Bì (賁) - Grace/Adornment - Mountain above Fire: fire at the foot of the mountain, illuminating beauty. Form enhances content; beauty reveals truth. But adornment alone is empty—substance must precede style. Key message: Cultivate both inner substance and outer grace; beauty serves deeper purpose. The Superior Person illuminates all affairs without daring to decide legal disputes.',
171
+ culturalTags: ['iching', 'divination', 'chinese', 'grace', 'beauty', 'adornment', 'culture']
172
+ },
173
+ {
174
+ id: 'iching_23_bo',
175
+ unicode: '䷖',
176
+ category: SymbolCategory.ICHING_HEXAGRAMS,
177
+ meaning: 'Hexagram 23: Bō (剝) - Splitting Apart/Erosion - Mountain above Earth: the mountain erodes from below. Dark forces undermine foundations; what seemed solid crumbles. This is autumn, the decline before winter. Key message: Accept necessary losses; preserve what matters most. The Superior Person strengthens foundations through generosity below.',
178
+ culturalTags: ['iching', 'divination', 'chinese', 'decline', 'erosion', 'loss', 'acceptance']
179
+ },
180
+ {
181
+ id: 'iching_24_fu',
182
+ unicode: '䷗',
183
+ category: SymbolCategory.ICHING_HEXAGRAMS,
184
+ meaning: 'Hexagram 24: Fù (復) - Return/Turning Point - Earth above Thunder: thunder in the earth, the first yang returning after yin\'s dominance. Winter solstice—the darkest night begins the return to light. Renewal emerges from the depths. Key message: Allow natural recovery; don\'t force what will come naturally. The Superior Person rests during the solstice, not traveling.',
185
+ culturalTags: ['iching', 'divination', 'chinese', 'return', 'renewal', 'turning', 'solstice']
186
+ },
187
+ {
188
+ id: 'iching_25_wuwang',
189
+ unicode: '䷘',
190
+ category: SymbolCategory.ICHING_HEXAGRAMS,
191
+ meaning: 'Hexagram 25: Wú Wàng (無妄) - Innocence/The Unexpected - Heaven above Thunder: thunder under heaven, energy moving naturally without ulterior motive. True innocence acts spontaneously from natural goodness. Unexpected events test and reveal character. Key message: Act from pure motives; accept what comes without trying to manipulate. The Superior Person nurtures all beings in accord with heaven.',
192
+ culturalTags: ['iching', 'divination', 'chinese', 'innocence', 'spontaneity', 'purity', 'unexpected']
193
+ },
194
+ {
195
+ id: 'iching_26_daxu',
196
+ unicode: '䷙',
197
+ category: SymbolCategory.ICHING_HEXAGRAMS,
198
+ meaning: 'Hexagram 26: Dà Xù (大畜) - Great Taming/Accumulation - Mountain above Heaven: heaven\'s energy contained by the mountain, great power held in check. Resources accumulate; restraint builds strength. Past wisdom serves present needs. Key message: Gather resources and study the past; restrain power until the right moment. The Superior Person studies words and deeds of the past.',
199
+ culturalTags: ['iching', 'divination', 'chinese', 'accumulation', 'restraint', 'resources', 'wisdom']
200
+ },
201
+ {
202
+ id: 'iching_27_yi',
203
+ unicode: '䷚',
204
+ category: SymbolCategory.ICHING_HEXAGRAMS,
205
+ meaning: 'Hexagram 27: Yí (頤) - Nourishment/Jaws - Mountain above Thunder: the mouth that nourishes—what we take in and what we put out. Physical food and spiritual food alike require discernment. You become what you consume. Key message: Be careful what you feed body and mind; speak only what nourishes. The Superior Person is careful in speech and moderate in eating.',
206
+ culturalTags: ['iching', 'divination', 'chinese', 'nourishment', 'speech', 'consumption', 'discernment']
207
+ },
208
+ {
209
+ id: 'iching_28_daguo',
210
+ unicode: '䷛',
211
+ category: SymbolCategory.ICHING_HEXAGRAMS,
212
+ meaning: 'Hexagram 28: Dà Guò (大過) - Great Exceeding/Critical Mass - Lake above Wind: the beam sagging under excessive weight, the situation about to collapse. Something must give; extraordinary measures are needed for extraordinary times. Key message: Act independently in crisis; the ordinary rules don\'t apply. The Superior Person stands alone without fear, withdraws from the world without regret.',
213
+ culturalTags: ['iching', 'divination', 'chinese', 'excess', 'crisis', 'pressure', 'extraordinary']
214
+ },
215
+ {
216
+ id: 'iching_29_kan',
217
+ unicode: '䷜',
218
+ category: SymbolCategory.ICHING_HEXAGRAMS,
219
+ meaning: 'Hexagram 29: Kǎn (坎) - The Abysmal/Water - Water doubled: danger upon danger, the pit within the pit. Like water, one must flow through danger, not fight it. Sincerity and consistency carry one through. Key message: Maintain integrity in danger; flow like water around obstacles. The Superior Person consistently practices virtue and teaches.',
220
+ culturalTags: ['iching', 'divination', 'chinese', 'danger', 'water', 'abyss', 'sincerity']
221
+ },
222
+ {
223
+ id: 'iching_30_li',
224
+ unicode: '䷝',
225
+ category: SymbolCategory.ICHING_HEXAGRAMS,
226
+ meaning: 'Hexagram 30: Lí (離) - The Clinging/Fire - Fire doubled: radiance that depends on fuel, clarity that depends on what it illuminates. Fire clings to wood; consciousness clings to its objects. Brightness requires something to shine upon. Key message: Recognize your dependencies; let clarity illuminate rather than consume. The Superior Person perpetuates brightness, illuminating the four directions.',
227
+ culturalTags: ['iching', 'divination', 'chinese', 'fire', 'clarity', 'dependence', 'illumination']
228
+ },
229
+ {
230
+ id: 'iching_31_xian',
231
+ unicode: '䷞',
232
+ category: SymbolCategory.ICHING_HEXAGRAMS,
233
+ meaning: 'Hexagram 31: Xián (咸) - Influence/Wooing - Lake above Mountain: the mountain drawing moisture upward, mutual attraction. The youngest son courts the youngest daughter; mutual influence through openness. Key message: Remain receptive to influence; genuine attraction requires vulnerability. The Superior Person accepts others with openness.',
234
+ culturalTags: ['iching', 'divination', 'chinese', 'influence', 'attraction', 'courtship', 'receptivity']
235
+ },
236
+ {
237
+ id: 'iching_32_heng',
238
+ unicode: '䷟',
239
+ category: SymbolCategory.ICHING_HEXAGRAMS,
240
+ meaning: 'Hexagram 32: Héng (恆) - Duration/Constancy - Thunder above Wind: thunder and wind reinforce each other, movement within gentleness. Enduring relationships and institutions require consistent principles, not rigid rules. Key message: Maintain constancy without stagnation; adapt means while preserving ends. The Superior Person stands firm without changing direction.',
241
+ culturalTags: ['iching', 'divination', 'chinese', 'duration', 'constancy', 'endurance', 'marriage']
242
+ },
243
+ {
244
+ id: 'iching_33_dun',
245
+ unicode: '䷠',
246
+ category: SymbolCategory.ICHING_HEXAGRAMS,
247
+ meaning: 'Hexagram 33: Dùn (遯) - Retreat/Withdrawal - Heaven above Mountain: heaven withdrawing from the mountain, strategic retreat. When dark forces advance, wisdom lies in timely withdrawal—not defeat but reposition. Key message: Retreat with dignity when necessary; preserve strength for better times. The Superior Person keeps small people distant—not with hatred but with reserve.',
248
+ culturalTags: ['iching', 'divination', 'chinese', 'retreat', 'withdrawal', 'strategy', 'preservation']
249
+ },
250
+ {
251
+ id: 'iching_34_dazhuang',
252
+ unicode: '䷡',
253
+ category: SymbolCategory.ICHING_HEXAGRAMS,
254
+ meaning: 'Hexagram 34: Dà Zhuàng (大壯) - Great Power/Strength - Thunder above Heaven: thunder in the sky, the display of great force. Power is rising; but great power requires great restraint. The ram butts against the hedge—strength without wisdom injures itself. Key message: Use power responsibly; strength restrained is strength preserved. The Superior Person avoids improper paths.',
255
+ culturalTags: ['iching', 'divination', 'chinese', 'power', 'strength', 'restraint', 'responsibility']
256
+ },
257
+ {
258
+ id: 'iching_35_jin',
259
+ unicode: '䷢',
260
+ category: SymbolCategory.ICHING_HEXAGRAMS,
261
+ meaning: 'Hexagram 35: Jìn (晉) - Progress/Advancement - Fire above Earth: the sun rising over earth, bright advance. This is the time of increasing influence and recognition; obstacles clear and opportunities appear. Key message: Advance confidently; accept recognition gracefully. The Superior Person brightens their brilliant virtue.',
262
+ culturalTags: ['iching', 'divination', 'chinese', 'progress', 'advancement', 'sunrise', 'recognition']
263
+ },
264
+ {
265
+ id: 'iching_36_mingyi',
266
+ unicode: '䷣',
267
+ category: SymbolCategory.ICHING_HEXAGRAMS,
268
+ meaning: 'Hexagram 36: Míng Yí (明夷) - Darkening of the Light - Earth above Fire: the sun sinking below earth, light obscured. In times of darkness, the wise person dims their light to survive—concealing virtue, not abandoning it. Key message: Protect yourself in dark times; hide your light but don\'t extinguish it. The Superior Person rules the masses—veiling brightness, yet still shining.',
269
+ culturalTags: ['iching', 'divination', 'chinese', 'darkness', 'concealment', 'adversity', 'survival']
270
+ },
271
+ {
272
+ id: 'iching_37_jiaren',
273
+ unicode: '䷤',
274
+ category: SymbolCategory.ICHING_HEXAGRAMS,
275
+ meaning: 'Hexagram 37: Jiā Rén (家人) - The Family/Household - Wind above Fire: wind born from fire, influence spreading outward from a central source. Order begins at home; the family is the training ground for society. Key message: Cultivate harmony at home; proper roles create proper relationships. The Superior Person speaks with substance and acts with consistency.',
276
+ culturalTags: ['iching', 'divination', 'chinese', 'family', 'household', 'order', 'relationships']
277
+ },
278
+ {
279
+ id: 'iching_38_kui',
280
+ unicode: '䷥',
281
+ category: SymbolCategory.ICHING_HEXAGRAMS,
282
+ meaning: 'Hexagram 38: Kuí (睽) - Opposition/Divergence - Fire above Lake: fire rises, water falls—natural opposition. Yet even opposing forces can cooperate for greater purposes; diversity can serve unity. Key message: Find common ground despite differences; small successes prepare great ones. The Superior Person maintains individuality within community.',
283
+ culturalTags: ['iching', 'divination', 'chinese', 'opposition', 'diversity', 'estrangement', 'reconciliation']
284
+ },
285
+ {
286
+ id: 'iching_39_jian',
287
+ unicode: '䷦',
288
+ category: SymbolCategory.ICHING_HEXAGRAMS,
289
+ meaning: 'Hexagram 39: Jiǎn (蹇) - Obstruction/Difficulty - Water above Mountain: dangerous water before, steep mountain behind—nowhere easy to go. When every path is blocked, look inward and improve yourself. Key message: When external progress is blocked, develop internal resources. The Superior Person turns inward to cultivate virtue.',
290
+ culturalTags: ['iching', 'divination', 'chinese', 'obstruction', 'difficulty', 'introspection', 'development']
291
+ },
292
+ {
293
+ id: 'iching_40_jie',
294
+ unicode: '䷧',
295
+ category: SymbolCategory.ICHING_HEXAGRAMS,
296
+ meaning: 'Hexagram 40: Jiě (解) - Deliverance/Liberation - Thunder above Water: spring thunder releases winter\'s tension, the storm clears and liberation comes. After struggle, relief; after obstruction, release. Key message: When freed, act quickly to consolidate gains; forgive and move forward. The Superior Person forgives errors and pardons crimes.',
297
+ culturalTags: ['iching', 'divination', 'chinese', 'liberation', 'release', 'forgiveness', 'relief']
298
+ },
299
+ {
300
+ id: 'iching_41_sun',
301
+ unicode: '䷨',
302
+ category: SymbolCategory.ICHING_HEXAGRAMS,
303
+ meaning: 'Hexagram 41: Sǔn (損) - Decrease/Reduction - Mountain above Lake: the mountain increases by the lake\'s decrease; resources flow to where they\'re needed. Voluntary sacrifice for higher purposes creates abundance elsewhere. Key message: Reduce excess to strengthen foundations; sacrifice brings gain. The Superior Person restrains anger and blocks desires.',
304
+ culturalTags: ['iching', 'divination', 'chinese', 'decrease', 'sacrifice', 'simplicity', 'restraint']
305
+ },
306
+ {
307
+ id: 'iching_42_yi',
308
+ unicode: '䷩',
309
+ category: SymbolCategory.ICHING_HEXAGRAMS,
310
+ meaning: 'Hexagram 42: Yì (益) - Increase/Benefit - Wind above Thunder: wind and thunder increase each other, mutual benefit. Those above benefit those below; the benefit returns magnified. This is the time to undertake great projects. Key message: Be generous when increasing; use surplus for worthy purposes. The Superior Person improves by seeing good, corrects by seeing errors.',
311
+ culturalTags: ['iching', 'divination', 'chinese', 'increase', 'benefit', 'generosity', 'growth']
312
+ },
313
+ {
314
+ id: 'iching_43_guai',
315
+ unicode: '䷪',
316
+ category: SymbolCategory.ICHING_HEXAGRAMS,
317
+ meaning: 'Hexagram 43: Guài (夬) - Breakthrough/Resolution - Lake above Heaven: waters breaking through the dam, decisive resolution. One dark line remains at the top—the final obstacle must be resolved, but carefully. Key message: Complete what\'s begun, but don\'t become what you oppose. The Superior Person distributes gifts below and dwells in virtue.',
318
+ culturalTags: ['iching', 'divination', 'chinese', 'breakthrough', 'resolution', 'decisiveness', 'completion']
319
+ },
320
+ {
321
+ id: 'iching_44_gou',
322
+ unicode: '䷫',
323
+ category: SymbolCategory.ICHING_HEXAGRAMS,
324
+ meaning: 'Hexagram 44: Gòu (姤) - Coming to Meet/Encounter - Heaven above Wind: wind beneath heaven, the unexpected meeting. One yin line enters from below—something dark approaches the light. Temptation comes disguised as opportunity. Key message: Be wary of seemingly innocent attractions; don\'t let small influences grow. The Superior Person proclaims mandates to the four quarters.',
325
+ culturalTags: ['iching', 'divination', 'chinese', 'encounter', 'temptation', 'caution', 'awareness']
326
+ },
327
+ {
328
+ id: 'iching_45_cui',
329
+ unicode: '䷬',
330
+ category: SymbolCategory.ICHING_HEXAGRAMS,
331
+ meaning: 'Hexagram 45: Cuì (萃) - Gathering/Massing - Lake above Earth: water gathering in low places, people gathering for common purpose. Great gatherings require great leadership and proper sacrifice. Key message: Unite people through shared values and rituals; prepare for what large gatherings attract. The Superior Person renews weapons to meet the unexpected.',
332
+ culturalTags: ['iching', 'divination', 'chinese', 'gathering', 'community', 'leadership', 'ritual']
333
+ },
334
+ {
335
+ id: 'iching_46_sheng',
336
+ unicode: '䷭',
337
+ category: SymbolCategory.ICHING_HEXAGRAMS,
338
+ meaning: 'Hexagram 46: Shēng (升) - Pushing Upward/Ascending - Earth above Wind: plants pushing up through earth, gentle but persistent growth. Progress through steady effort, not sudden leaps. The southern direction is favorable. Key message: Advance steadily; seek guidance from those above. The Superior Person accumulates small steps to climb high.',
339
+ culturalTags: ['iching', 'divination', 'chinese', 'ascending', 'growth', 'persistence', 'effort']
340
+ },
341
+ {
342
+ id: 'iching_47_kun',
343
+ unicode: '䷮',
344
+ category: SymbolCategory.ICHING_HEXAGRAMS,
345
+ meaning: 'Hexagram 47: Kùn (困) - Oppression/Exhaustion - Lake above Water: water draining from the lake, resources depleted. Words are not believed; silence serves better than speech. Adversity tests character and reveals depth. Key message: Maintain cheerfulness in adversity; words won\'t help—only steadfast action. The Superior Person stakes their life on following their will.',
346
+ culturalTags: ['iching', 'divination', 'chinese', 'oppression', 'exhaustion', 'adversity', 'endurance']
347
+ },
348
+ {
349
+ id: 'iching_48_jing',
350
+ unicode: '䷯',
351
+ category: SymbolCategory.ICHING_HEXAGRAMS,
352
+ meaning: 'Hexagram 48: Jǐng (井) - The Well - Water above Wind: water drawn up by wood, the unchanging well that serves all. The town may move, but the well stays; the well doesn\'t change, but ropes may be too short. Access to depth requires proper tools. Key message: Maintain access to inner resources; serve the community consistently. The Superior Person encourages people and urges mutual assistance.',
353
+ culturalTags: ['iching', 'divination', 'chinese', 'well', 'depth', 'service', 'constancy']
354
+ },
355
+ {
356
+ id: 'iching_49_ge',
357
+ unicode: '䷰',
358
+ category: SymbolCategory.ICHING_HEXAGRAMS,
359
+ meaning: 'Hexagram 49: Gé (革) - Revolution/Transformation - Lake above Fire: fire beneath the lake, evaporation and fundamental change. When the old order can no longer serve, revolution becomes necessary. But revolution requires the right time and right person. Key message: Transform only when the time is ripe; afterward, regret disappears. The Superior Person orders the calendar and clarifies the seasons.',
360
+ culturalTags: ['iching', 'divination', 'chinese', 'revolution', 'transformation', 'change', 'timing']
361
+ },
362
+ {
363
+ id: 'iching_50_ding',
364
+ unicode: '䷱',
365
+ category: SymbolCategory.ICHING_HEXAGRAMS,
366
+ meaning: 'Hexagram 50: Dǐng (鼎) - The Cauldron/Vessel - Fire above Wind: fire cooking food in a vessel, transformation through the proper medium. The cauldron is civilization itself—the vessel that transforms raw into refined. Key message: Use the right vessel for transformation; form enables content. The Superior Person solidifies fate by correcting position.',
367
+ culturalTags: ['iching', 'divination', 'chinese', 'cauldron', 'vessel', 'culture', 'nourishment']
368
+ },
369
+ {
370
+ id: 'iching_51_zhen',
371
+ unicode: '䷲',
372
+ category: SymbolCategory.ICHING_HEXAGRAMS,
373
+ meaning: 'Hexagram 51: Zhèn (震) - The Arousing/Thunder - Thunder doubled: shock upon shock, the earthquake of sudden change. Terrifying but clarifying—after the thunder, laughter and relief. Those who prepare survive what destroys the careless. Key message: Let shock awaken without destroying; use fear for vigilance. The Superior Person trembles with fear and cultivates virtue.',
374
+ culturalTags: ['iching', 'divination', 'chinese', 'thunder', 'shock', 'awakening', 'vigilance']
375
+ },
376
+ {
377
+ id: 'iching_52_gen',
378
+ unicode: '䷳',
379
+ category: SymbolCategory.ICHING_HEXAGRAMS,
380
+ meaning: 'Hexagram 52: Gèn (艮) - Keeping Still/Mountain - Mountain doubled: stillness upon stillness, meditation and rest. Movement stops at the right point; the back is kept still so the body forgets itself. Tranquility reveals truth that motion obscures. Key message: Know when to stop; stillness restores what activity depletes. The Superior Person thinks not beyond their position.',
381
+ culturalTags: ['iching', 'divination', 'chinese', 'mountain', 'stillness', 'meditation', 'rest']
382
+ },
383
+ {
384
+ id: 'iching_53_jian',
385
+ unicode: '䷴',
386
+ category: SymbolCategory.ICHING_HEXAGRAMS,
387
+ meaning: 'Hexagram 53: Jiàn (漸) - Development/Gradual Progress - Wind above Mountain: the tree growing slowly on the mountain. The wild goose approaches the shore gradually, safely. Marriage proceeds through proper stages—nothing rushed. Key message: Advance step by step; proper sequence ensures proper outcome. The Superior Person abides in dignity and virtue.',
388
+ culturalTags: ['iching', 'divination', 'chinese', 'gradual', 'development', 'progress', 'marriage']
389
+ },
390
+ {
391
+ id: 'iching_54_guimei',
392
+ unicode: '䷵',
393
+ category: SymbolCategory.ICHING_HEXAGRAMS,
394
+ meaning: 'Hexagram 54: Guī Mèi (歸妹) - The Marrying Maiden - Thunder above Lake: the younger sister marrying, following strong external movement. Subordinate position requires adaptability; second place is not defeat. Key message: Accept your current position; influence through service rather than control. The Superior Person understands decline through eternity.',
395
+ culturalTags: ['iching', 'divination', 'chinese', 'marriage', 'subordination', 'adaptation', 'service']
396
+ },
397
+ {
398
+ id: 'iching_55_feng',
399
+ unicode: '䷶',
400
+ category: SymbolCategory.ICHING_HEXAGRAMS,
401
+ meaning: 'Hexagram 55: Fēng (豐) - Abundance/Fullness - Thunder above Fire: thunder and lightning together, maximum brilliance and power. Abundance cannot last; the sun at noon begins to set. Use this time wisely—it will not come again. Key message: Act boldly at the peak; don\'t grieve when fullness naturally decreases. The Superior Person decides lawsuits and carries out punishments.',
402
+ culturalTags: ['iching', 'divination', 'chinese', 'abundance', 'fullness', 'peak', 'impermanence']
403
+ },
404
+ {
405
+ id: 'iching_56_lu',
406
+ unicode: '䷷',
407
+ category: SymbolCategory.ICHING_HEXAGRAMS,
408
+ meaning: 'Hexagram 56: Lǚ (旅) - The Wanderer/Traveling - Fire above Mountain: fire moving over the mountain, the traveler who doesn\'t stay. When away from home, propriety protects; small successes come through modesty. The stranger must adapt to local ways. Key message: Travel light; cultivate flexibility and politeness abroad. The Superior Person applies punishments with clarity and doesn\'t prolong litigation.',
409
+ culturalTags: ['iching', 'divination', 'chinese', 'travel', 'wandering', 'stranger', 'adaptation']
410
+ },
411
+ {
412
+ id: 'iching_57_xun',
413
+ unicode: '䷸',
414
+ category: SymbolCategory.ICHING_HEXAGRAMS,
415
+ meaning: 'Hexagram 57: Xùn (巽) - The Gentle/Wind - Wind doubled: penetrating influence, persistence that achieves by repetition. The gentle wind erodes mountains; constant influence changes minds that force cannot move. Key message: Gentle persistence succeeds where force fails; clarity of purpose enables yielding methods. The Superior Person announces mandates and carries out affairs.',
416
+ culturalTags: ['iching', 'divination', 'chinese', 'wind', 'gentleness', 'penetration', 'persistence']
417
+ },
418
+ {
419
+ id: 'iching_58_dui',
420
+ unicode: '䷹',
421
+ category: SymbolCategory.ICHING_HEXAGRAMS,
422
+ meaning: 'Hexagram 58: Duì (兌) - The Joyous/Lake - Lake doubled: lakes joined, friends discussing, mutual joy and exchange. True joy comes from inner strength expressed outwardly; forced gaiety exhausts. Key message: Cultivate genuine joy; share pleasures with others. The Superior Person joins with friends for discussion and practice.',
423
+ culturalTags: ['iching', 'divination', 'chinese', 'joy', 'lake', 'friendship', 'pleasure']
424
+ },
425
+ {
426
+ id: 'iching_59_huan',
427
+ unicode: '䷺',
428
+ category: SymbolCategory.ICHING_HEXAGRAMS,
429
+ meaning: 'Hexagram 59: Huàn (渙) - Dispersion/Dissolution - Wind above Water: wind scattering water, dissolving what has hardened. Religious ceremonies reunite scattered people; shared meaning overcomes separation. Key message: Dissolve rigidity through spiritual practice; use ritual to unite the scattered. The Superior Person makes offerings to the Supreme Lord and establishes temples.',
430
+ culturalTags: ['iching', 'divination', 'chinese', 'dispersion', 'dissolution', 'unity', 'ritual']
431
+ },
432
+ {
433
+ id: 'iching_60_jie',
434
+ unicode: '䷻',
435
+ category: SymbolCategory.ICHING_HEXAGRAMS,
436
+ meaning: 'Hexagram 60: Jié (節) - Limitation/Restraint - Water above Lake: water collected in the lake, limited but life-giving. Limits enable freedom; without banks, the river becomes swamp. But bitter limitation goes too far. Key message: Set appropriate limits; moderation enables accomplishment. The Superior Person creates number and measure and examines virtue and conduct.',
437
+ culturalTags: ['iching', 'divination', 'chinese', 'limitation', 'restraint', 'moderation', 'boundaries']
438
+ },
439
+ {
440
+ id: 'iching_61_zhongfu',
441
+ unicode: '䷼',
442
+ category: SymbolCategory.ICHING_HEXAGRAMS,
443
+ meaning: 'Hexagram 61: Zhōng Fú (中孚) - Inner Truth/Sincerity - Wind above Lake: wind over the lake, truth that moves hearts. The empty center of the hexagram represents openness; sincerity crosses barriers that cleverness cannot. Key message: Act from genuine inner truth; sincerity moves even pigs and fishes. The Superior Person discusses criminal cases to delay executions.',
444
+ culturalTags: ['iching', 'divination', 'chinese', 'sincerity', 'truth', 'trust', 'influence']
445
+ },
446
+ {
447
+ id: 'iching_62_xiaoguo',
448
+ unicode: '䷽',
449
+ category: SymbolCategory.ICHING_HEXAGRAMS,
450
+ meaning: 'Hexagram 62: Xiǎo Guò (小過) - Small Exceeding/Preponderance of Small - Thunder above Mountain: the bird flying low, attention to small matters. Great deeds are not the moment; focus on details, on what\'s achievable. The flying bird leaves its song. Key message: Focus on small steps; this is not the time for grand actions. The Superior Person favors reverence over luxury, grief over ceremony.',
451
+ culturalTags: ['iching', 'divination', 'chinese', 'small', 'detail', 'modesty', 'care']
452
+ },
453
+ {
454
+ id: 'iching_63_jiji',
455
+ unicode: '䷾',
456
+ category: SymbolCategory.ICHING_HEXAGRAMS,
457
+ meaning: 'Hexagram 63: Jì Jì (既濟) - After Completion/Already Crossing - Water above Fire: water and fire in their proper places, everything in order—for now. Completion is always temporary; the moment of success is the beginning of decline. Key message: Remain vigilant after success; don\'t assume completion lasts. The Superior Person reflects on troubles and prepares against them.',
458
+ culturalTags: ['iching', 'divination', 'chinese', 'completion', 'order', 'transition', 'vigilance']
459
+ },
460
+ {
461
+ id: 'iching_64_weiji',
462
+ unicode: '䷿',
463
+ category: SymbolCategory.ICHING_HEXAGRAMS,
464
+ meaning: 'Hexagram 64: Wèi Jì (未濟) - Before Completion/Not Yet Crossing - Fire above Water: fire and water not in their places, nothing complete—but full of potential. Like spring before it blooms, the young fox almost across. Everything is becoming. Key message: Recognize that nothing is finished; remain hopeful and careful before the goal. The Superior Person carefully discriminates things and dwells in the proper places.',
465
+ culturalTags: ['iching', 'divination', 'chinese', 'incompletion', 'potential', 'becoming', 'hope']
466
+ }
467
+ ];
468
+
469
+ module.exports = {
470
+ ichingHexagrams
471
+ };
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Symbol Database Index
3
+ *
4
+ * Loads all symbol definition files and creates the unified SymbolDatabase
5
+ * instance. This modular structure makes it easy to add new symbol collections
6
+ * by simply creating new files and importing them here.
7
+ */
8
+
9
+ const { SymbolDatabase, SymbolCategory, PrimeGenerator } = require('./base');
10
+
11
+ // Import all symbol definition files
12
+ const { archetypeSymbols } = require('./archetypes');
13
+ const { tarotSymbols } = require('./tarot');
14
+ const { ichingHexagrams } = require('./iching');
15
+ const { egyptianHieroglyphs } = require('./hieroglyphs');
16
+ const { allElementSymbols } = require('./elements');
17
+
18
+ // ═══════════════════════════════════════════════════════════════════
19
+ // Create and populate the singleton database
20
+ // ═══════════════════════════════════════════════════════════════════
21
+
22
+ let symbolDatabaseInstance = null;
23
+
24
+ function createSymbolDatabase() {
25
+ if (symbolDatabaseInstance) {
26
+ return symbolDatabaseInstance;
27
+ }
28
+
29
+ const db = new SymbolDatabase();
30
+
31
+ // Register all symbol collections in order
32
+ // Order matters for prime assignment consistency
33
+
34
+ // Register all symbol collections in order
35
+ // Order matters for prime assignment consistency
36
+ db.registerSymbols(archetypeSymbols);
37
+ db.registerSymbols(tarotSymbols);
38
+ db.registerSymbols(ichingHexagrams);
39
+ db.registerSymbols(egyptianHieroglyphs);
40
+ db.registerSymbols(allElementSymbols);
41
+
42
+ symbolDatabaseInstance = db;
43
+ return db;
44
+ }
45
+
46
+ // Create instance on module load
47
+ const symbolDatabase = createSymbolDatabase();
48
+
49
+ // ═══════════════════════════════════════════════════════════════════
50
+ // Convenience exports
51
+ // ═══════════════════════════════════════════════════════════════════
52
+
53
+ module.exports = {
54
+ // Database instance and class
55
+ symbolDatabase,
56
+ SymbolDatabase,
57
+ SymbolCategory,
58
+ PrimeGenerator,
59
+
60
+ // Raw symbol collections (for reference/extension)
61
+ archetypeSymbols,
62
+ tarotSymbols,
63
+ ichingHexagrams,
64
+ egyptianHieroglyphs,
65
+ allElementSymbols,
66
+
67
+ // Convenience functions
68
+ getSymbol: (id) => symbolDatabase.getSymbol(id),
69
+ getSymbolByPrime: (prime) => symbolDatabase.getSymbolByPrime(prime),
70
+ getSymbolsByCategory: (category) => symbolDatabase.getSymbolsByCategory(category),
71
+ getSymbolsByTag: (tag) => symbolDatabase.getSymbolsByTag(tag),
72
+ search: (query) => symbolDatabase.search(query),
73
+ encode: (ids) => symbolDatabase.encode(ids),
74
+ decode: (sig) => symbolDatabase.decode(sig),
75
+ getAllSymbols: () => symbolDatabase.getAllSymbols(),
76
+ getStats: () => symbolDatabase.getStats()
77
+ };