kaabalah
Version:
The de-facto library for any esoteric calculations and tooling
89 lines (60 loc) • 2.23 kB
Markdown
A comprehensive TypeScript library for numerology, astrology, kaabalah, and tarot calculations and interpretations.
- **Numerology**: Calculate life path numbers and other numerological values
- **Astrology**: Generate birth charts and planetary positions using Swiss Ephemeris
- **Kaabalah**: Hebrew gematria calculations and mystical interpretations
- **Tarot**: Card meanings, spreads, and interpretations
```bash
npm install kaabalah
```
```typescript
import * as Kaabalah from 'kaabalah';
// Calculate life path number
const lifePath = Kaabalah.calculateLifePath(new Date('1990-01-15'));
console.log(`Life Path Number: ${lifePath}`);
// Get a random tarot spread
const spread = Kaabalah.getRandomSpread(3);
console.log('Tarot Spread:', spread);
```
```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('שלום');
// 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](https://www.astro.com/swisseph/) for providing the astronomical calculation library
- [Astro.com](https://www.astro.com/) for the Swiss Ephemeris data