The de-facto library for any esoteric calculations and tooling
npm install kaabalahA comprehensive TypeScript library for numerology, astrology, kaabalah, and tarot calculations and interpretations.
- Tree of Life: A modular and performant tree of life system to help you build correspondences across different systems
- Numerology: Calculate life path numbers and other numerological values
- Astrology: Generate birth charts and planetary positions using Swiss Ephemeris
- Gematria: Gematria (text numerology) calculations
- Tarot: Card meanings, spreads, and interpretations
``bash`
npm install kaabalah
`typescript
import { createTree } from 'kaabalah/core';
const tree = createTree({
system: 'kaabalah',
parts: ['westernAstrology', 'tarot'],
});
const gematriaResult = calculateGematria('kaabalah', tree);
console.log(gematriaResult);
`
`typescript
// Only import what you need
import { calculateLifePath } from 'kaabalah/numerology';
import { getBirthChart } from 'kaabalah/astrology';
import { calculateGematria } from 'kaabalah/kaabalah';
import { getRandomSpread } from 'kaabalah/tarot';
// Calculate life path number
const lifePath = calculateLifePath(new Date('1990-01-15'));
// Generate a birth chart (with Swiss Ephemeris)
const birthChart = getBirthChart({
date: new Date('1990-01-15T12:30:00Z'),
latitude: 40.7128,
longitude: -74.0060,
timezone: -5
});
// Calculate Hebrew gematria
const gematriaValue = calculateGematria('kaabalah');
// Get a tarot spread
const spread = getRandomSpread(3, true);
`
This project uses TypeScript and WebAssembly for the Swiss Ephemeris calculations.
`bash`
npm run build
`bash``
npm run dev
The astrological calculations use the Swiss Ephemeris library, compiled to WebAssembly for use in both Node.js and browser environments.
This project is licensed under the AGPL-3.0 license. See the LICENSE file for details.
- Swiss Ephemeris for providing the astronomical calculation library
- Astro.com for the Swiss Ephemeris data