kaabalah 0.2.0 → 1.0.1

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.
package/README.md CHANGED
@@ -4,9 +4,10 @@ A comprehensive TypeScript library for numerology, astrology, kaabalah, and taro
4
4
 
5
5
  ## Features
6
6
 
7
+ - **Tree of Life**: A modular and performant tree of life system to help you build correspondences across different systems
7
8
  - **Numerology**: Calculate life path numbers and other numerological values
8
9
  - **Astrology**: Generate birth charts and planetary positions using Swiss Ephemeris
9
- - **Kaabalah**: Hebrew gematria calculations and mystical interpretations
10
+ - **Gematria**: Gematria (text numerology) calculations
10
11
  - **Tarot**: Card meanings, spreads, and interpretations
11
12
 
12
13
  ## Installation
@@ -17,18 +18,19 @@ npm install kaabalah
17
18
 
18
19
  ## Usage Examples
19
20
 
20
- ### Full Library
21
+ ### Core Library
21
22
 
22
23
  ```typescript
23
- import * as Kaabalah from 'kaabalah';
24
+ import { createTree } from 'kaabalah/core';
24
25
 
25
- // Calculate life path number
26
- const lifePath = Kaabalah.calculateLifePath(new Date('1990-01-15'));
27
- console.log(`Life Path Number: ${lifePath}`);
26
+ const tree = createTree({
27
+ system: 'kaabalah',
28
+ parts: ['westernAstrology', 'tarot'],
29
+ });
30
+
31
+ const gematriaResult = calculateGematria('kaabalah', tree);
28
32
 
29
- // Get a random tarot spread
30
- const spread = Kaabalah.getRandomSpread(3);
31
- console.log('Tarot Spread:', spread);
33
+ console.log(gematriaResult);
32
34
  ```
33
35
 
34
36
  ### Direct Module Imports (Tree-Shakable)
@@ -52,7 +54,7 @@ const birthChart = getBirthChart({
52
54
  });
53
55
 
54
56
  // Calculate Hebrew gematria
55
- const gematriaValue = calculateGematria('שלום');
57
+ const gematriaValue = calculateGematria('kaabalah');
56
58
 
57
59
  // Get a tarot spread
58
60
  const spread = getRandomSpread(3, true);
@@ -0,0 +1,15 @@
1
+ import { t as SystemKey, u as PartKey, w as TreeOfLife } from '../registry-Cz3t3ylv.mjs';
2
+ export { B as Bridge, C as ColorData, F as FOUR_WORLDS, m as HEBREW_LETTERS, n as HEBREW_LETTERS_DATA, H as HebrewLetterData, l as LATIN_LETTERS, L as LURIANIC_PATHS, v as Loader, k as MELKITZEDEKI_PATHS, M as MusicalNoteData, c as Node, b as NodeData, N as NodeId, a as NodeType, g as PLANETS, P as PathData, e as SPHERES, f as SPHERE_DATA, s as SYSTEMS, S as SphereData, r as System, p as TAROT_ARKANNUS, q as TAROT_ARKANNUS_DATA, o as TAROT_SUITS, T as TarotArkAnnuData, U as Unloader, i as WESTERN_ELEMENTS, h as WESTERN_ZODIAC_SIGNS, j as WESTERN_ZODIAC_SIGNS_DATA, d as WesternZodiacSignData, W as WorldData } from '../registry-Cz3t3ylv.mjs';
3
+
4
+ interface TreeOptions {
5
+ system: SystemKey;
6
+ parts?: Exclude<PartKey, "base">[];
7
+ }
8
+ /**
9
+ * Creates a new Tree of Life instance with optional system loaders
10
+ * @param opts Configuration options for which systems to load
11
+ * @returns A new TreeOfLife instance with the requested systems loaded
12
+ */
13
+ declare function createTree(opts?: TreeOptions): TreeOfLife;
14
+
15
+ export { PartKey, SystemKey, TreeOfLife, type TreeOptions, createTree };
@@ -0,0 +1,15 @@
1
+ import { t as SystemKey, u as PartKey, w as TreeOfLife } from '../registry-Cz3t3ylv.js';
2
+ export { B as Bridge, C as ColorData, F as FOUR_WORLDS, m as HEBREW_LETTERS, n as HEBREW_LETTERS_DATA, H as HebrewLetterData, l as LATIN_LETTERS, L as LURIANIC_PATHS, v as Loader, k as MELKITZEDEKI_PATHS, M as MusicalNoteData, c as Node, b as NodeData, N as NodeId, a as NodeType, g as PLANETS, P as PathData, e as SPHERES, f as SPHERE_DATA, s as SYSTEMS, S as SphereData, r as System, p as TAROT_ARKANNUS, q as TAROT_ARKANNUS_DATA, o as TAROT_SUITS, T as TarotArkAnnuData, U as Unloader, i as WESTERN_ELEMENTS, h as WESTERN_ZODIAC_SIGNS, j as WESTERN_ZODIAC_SIGNS_DATA, d as WesternZodiacSignData, W as WorldData } from '../registry-Cz3t3ylv.js';
3
+
4
+ interface TreeOptions {
5
+ system: SystemKey;
6
+ parts?: Exclude<PartKey, "base">[];
7
+ }
8
+ /**
9
+ * Creates a new Tree of Life instance with optional system loaders
10
+ * @param opts Configuration options for which systems to load
11
+ * @returns A new TreeOfLife instance with the requested systems loaded
12
+ */
13
+ declare function createTree(opts?: TreeOptions): TreeOfLife;
14
+
15
+ export { PartKey, SystemKey, TreeOfLife, type TreeOptions, createTree };