thoth-cli 0.1.1 → 0.2.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.
- package/README.md +286 -5
- package/dist/bin.js +367 -125
- package/dist/chunk-NEQKNEBO.js +1211 -0
- package/dist/index.d.ts +447 -6
- package/dist/index.js +33 -1
- package/package.json +1 -1
- package/dist/chunk-NYXKYHNK.js +0 -576
package/README.md
CHANGED
|
@@ -1,25 +1,306 @@
|
|
|
1
1
|
# 𓅝 thoth-cli
|
|
2
2
|
|
|
3
|
-
Hermetic astrology from the command line
|
|
3
|
+
**Hermetic astrology from the command line.**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
A powerful astrological calculation CLI built on [Kerykeion](https://github.com/g-battaglia/kerykeion) and Swiss Ephemeris. Designed for AI agents, developers, and modern practitioners who need precise calculations with clean output.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- **Natal Charts** — Full birth charts with planets, houses, aspects, and balances
|
|
10
|
+
- **Transits** — Current planetary positions relative to your natal chart
|
|
11
|
+
- **Moon Phases** — Current lunar phase and position
|
|
12
|
+
- **Ephemeris** — Position of any celestial body on any date
|
|
13
|
+
- **Symbol Reference** — Complete guide to astrological symbols and meanings
|
|
14
|
+
- **Kabbalistic Colors** — Sephirotic color correspondences throughout
|
|
15
|
+
- **JSON Output** — Machine-readable output for AI/automation
|
|
16
|
+
- **City Geocoding** — Use city names instead of coordinates
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
8
19
|
|
|
9
20
|
```bash
|
|
10
21
|
npm install -g thoth-cli
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**Requirements:**
|
|
25
|
+
- Node.js 18+
|
|
26
|
+
- Python 3.10+
|
|
27
|
+
|
|
28
|
+
The Python core (Kerykeion) installs automatically.
|
|
29
|
+
|
|
30
|
+
## Quick Start
|
|
11
31
|
|
|
32
|
+
```bash
|
|
33
|
+
# Calculate a natal chart
|
|
12
34
|
thoth chart --date 1879-03-14 --time 11:30 --city "Ulm" --nation "DE" --name "Einstein"
|
|
35
|
+
|
|
36
|
+
# Get current transits to a natal chart
|
|
13
37
|
thoth transit --natal-date 1879-03-14 --natal-time 11:30 --city "Ulm" --nation "DE"
|
|
38
|
+
|
|
39
|
+
# Current moon phase
|
|
14
40
|
thoth moon
|
|
41
|
+
|
|
42
|
+
# Where is Pluto right now?
|
|
15
43
|
thoth ephemeris --body pluto
|
|
44
|
+
|
|
45
|
+
# Symbol reference guide
|
|
16
46
|
thoth key
|
|
17
47
|
```
|
|
18
48
|
|
|
49
|
+
## Commands
|
|
50
|
+
|
|
51
|
+
### `thoth chart`
|
|
52
|
+
|
|
53
|
+
Calculate a natal chart.
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
thoth chart --date 1879-03-14 --time 11:30 --city "Ulm" --nation "DE" --name "Einstein"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Options:**
|
|
60
|
+
| Flag | Description | Required |
|
|
61
|
+
|------|-------------|----------|
|
|
62
|
+
| `--date` | Birth date (YYYY-MM-DD) | Yes |
|
|
63
|
+
| `--time` | Birth time (HH:MM) | Yes |
|
|
64
|
+
| `--city` | City name | Yes* |
|
|
65
|
+
| `--nation` | Country code (US, UK, DE, etc.) | No (default: US) |
|
|
66
|
+
| `--lat` | Latitude | Yes* |
|
|
67
|
+
| `--lng` | Longitude | Yes* |
|
|
68
|
+
| `--name` | Name for the chart | No |
|
|
69
|
+
| `--json` | Output raw JSON | No |
|
|
70
|
+
|
|
71
|
+
*Either `--city` or both `--lat` and `--lng` required.
|
|
72
|
+
|
|
73
|
+
**Output includes:**
|
|
74
|
+
- Ascendant and Midheaven
|
|
75
|
+
- All 10 planets + Chiron, Lilith, Nodes
|
|
76
|
+
- House placements
|
|
77
|
+
- All 12 house cusps
|
|
78
|
+
- Element balance (Fire/Earth/Air/Water)
|
|
79
|
+
- Modality balance (Cardinal/Fixed/Mutable)
|
|
80
|
+
- Top 15 natal aspects
|
|
81
|
+
- Lunar phase at birth
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
### `thoth transit`
|
|
86
|
+
|
|
87
|
+
Calculate current transits to a natal chart.
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
thoth transit --natal-date 1879-03-14 --natal-time 11:30 --city "Ulm" --nation "DE"
|
|
91
|
+
thoth transit --natal-date 1879-03-14 --natal-time 11:30 --city "Ulm" --nation "DE" --orb 1
|
|
92
|
+
thoth transit --natal-date 1879-03-14 --natal-time 11:30 --city "Ulm" --nation "DE" --transit-date 2027-01-15
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Options:**
|
|
96
|
+
| Flag | Description | Required |
|
|
97
|
+
|------|-------------|----------|
|
|
98
|
+
| `--natal-date` | Birth date (YYYY-MM-DD) | Yes |
|
|
99
|
+
| `--natal-time` | Birth time (HH:MM) | Yes |
|
|
100
|
+
| `--city` | City name | Yes* |
|
|
101
|
+
| `--nation` | Country code | No (default: US) |
|
|
102
|
+
| `--lat` / `--lng` | Coordinates | Yes* |
|
|
103
|
+
| `--transit-date` | Transit date (default: today) | No |
|
|
104
|
+
| `--orb` | Aspect orb in degrees (default: 3) | No |
|
|
105
|
+
| `--json` | Output raw JSON | No |
|
|
106
|
+
|
|
107
|
+
**Output includes:**
|
|
108
|
+
- Current sky (all planets with signs, degrees, houses)
|
|
109
|
+
- Side-by-side house comparison (transit vs natal)
|
|
110
|
+
- Transit-to-natal aspects with orbs
|
|
111
|
+
- House flow notation (e.g., 2H→4H)
|
|
112
|
+
- Current lunar phase
|
|
113
|
+
- Retrograde indicators
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
### `thoth moon`
|
|
118
|
+
|
|
119
|
+
Get current moon phase and position.
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
thoth moon
|
|
123
|
+
thoth moon --date 2026-03-14
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Options:**
|
|
127
|
+
| Flag | Description |
|
|
128
|
+
|------|-------------|
|
|
129
|
+
| `--date` | Date (default: today) |
|
|
130
|
+
| `--json` | Output raw JSON |
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
### `thoth ephemeris`
|
|
135
|
+
|
|
136
|
+
Get the position of any celestial body.
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
thoth ephemeris --body pluto
|
|
140
|
+
thoth ephemeris --body saturn --date 2027-01-15
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
**Options:**
|
|
144
|
+
| Flag | Description | Required |
|
|
145
|
+
|------|-------------|----------|
|
|
146
|
+
| `--body` | Celestial body (sun, moon, mercury, venus, mars, jupiter, saturn, uranus, neptune, pluto) | Yes |
|
|
147
|
+
| `--date` | Date (default: today) | No |
|
|
148
|
+
| `--json` | Output raw JSON | No |
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
### `thoth key`
|
|
153
|
+
|
|
154
|
+
Display the complete symbol reference guide.
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
thoth key
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Includes:
|
|
161
|
+
- **Planets** — Meanings, rulerships, Sephirotic correspondences
|
|
162
|
+
- **Points** — Chiron, Lilith, Nodes
|
|
163
|
+
- **Zodiac Signs** — Element, modality, ruler, mantra
|
|
164
|
+
- **Houses** — Life areas for all 12 houses
|
|
165
|
+
- **Aspects** — Degrees, meanings, Hermetic colors
|
|
166
|
+
- **Elements** — Signs, temperaments, Jungian functions
|
|
167
|
+
- **Modalities** — Cardinal, Fixed, Mutable
|
|
168
|
+
- **Dignities** — Domicile, Exaltation, Detriment, Fall
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Color System
|
|
173
|
+
|
|
174
|
+
thoth-cli uses a **Kabbalistic color system** based on Sephirotic correspondences:
|
|
175
|
+
|
|
176
|
+
| Planet | Sephira | Color |
|
|
177
|
+
|--------|---------|-------|
|
|
178
|
+
| ☉ Sun | Tiphareth | Gold |
|
|
179
|
+
| ☽ Moon | Yesod | Silver |
|
|
180
|
+
| ☿ Mercury | Hod | Orange |
|
|
181
|
+
| ♀ Venus | Netzach | Green |
|
|
182
|
+
| ♂ Mars | Geburah | Red |
|
|
183
|
+
| ♃ Jupiter | Chesed | Royal Blue |
|
|
184
|
+
| ♄ Saturn | Binah | Indigo |
|
|
185
|
+
| ♅ Uranus | Chokmah | Cyan |
|
|
186
|
+
| ♆ Neptune | — | Sea Green |
|
|
187
|
+
| ♇ Pluto | — | Dark Red |
|
|
188
|
+
|
|
189
|
+
Zodiac signs inherit their ruling planet's color. Aspects inherit their corresponding Sephira's color.
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## JSON Output
|
|
194
|
+
|
|
195
|
+
All commands support `--json` for programmatic use:
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
thoth chart --date 1879-03-14 --time 11:30 --city "Ulm" --nation "DE" --json
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Perfect for AI agents, automation, and integration with other tools.
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Examples
|
|
206
|
+
|
|
207
|
+
### Famous Charts
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
# Albert Einstein — Pisces Sun, Sagittarius Moon
|
|
211
|
+
thoth chart --date 1879-03-14 --time 11:30 --city "Ulm" --nation "DE" --name "Einstein"
|
|
212
|
+
|
|
213
|
+
# Carl Jung — Leo Sun, Taurus Moon
|
|
214
|
+
thoth chart --date 1875-07-26 --time 19:29 --city "Kesswil" --nation "CH" --name "Jung"
|
|
215
|
+
|
|
216
|
+
# Nikola Tesla — Cancer Sun, Libra Moon
|
|
217
|
+
thoth chart --date 1856-07-10 --time 00:00 --city "Smiljan" --nation "HR" --name "Tesla"
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Transit Analysis
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
# Current transits with tight orb
|
|
224
|
+
thoth transit --natal-date 1879-03-14 --natal-time 11:30 --city "Ulm" --nation "DE" --orb 1
|
|
225
|
+
|
|
226
|
+
# Future transits
|
|
227
|
+
thoth transit --natal-date 1879-03-14 --natal-time 11:30 --city "Ulm" --nation "DE" --transit-date 2027-01-15
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## Architecture
|
|
233
|
+
|
|
234
|
+
```
|
|
235
|
+
thoth-cli/
|
|
236
|
+
├── packages/
|
|
237
|
+
│ ├── core/ # Python calculations (Kerykeion + Swiss Ephemeris)
|
|
238
|
+
│ │ ├── thoth_core/
|
|
239
|
+
│ │ │ ├── __init__.py
|
|
240
|
+
│ │ │ └── cli.py
|
|
241
|
+
│ │ └── pyproject.toml
|
|
242
|
+
│ └── cli/ # TypeScript CLI (Commander.js)
|
|
243
|
+
│ ├── src/
|
|
244
|
+
│ │ ├── bin.ts
|
|
245
|
+
│ │ └── lib/
|
|
246
|
+
│ │ ├── core.ts
|
|
247
|
+
│ │ └── format.ts
|
|
248
|
+
│ └── package.json
|
|
249
|
+
├── CHANGELOG.md
|
|
250
|
+
└── README.md
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## Development
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
# Clone
|
|
259
|
+
git clone https://github.com/aklo360/thoth-cli.git
|
|
260
|
+
cd thoth-cli
|
|
261
|
+
|
|
262
|
+
# Install Python dependencies
|
|
263
|
+
cd packages/core
|
|
264
|
+
pip install -e .
|
|
265
|
+
|
|
266
|
+
# Install TypeScript dependencies and build
|
|
267
|
+
cd ../cli
|
|
268
|
+
npm install
|
|
269
|
+
npm run build
|
|
270
|
+
|
|
271
|
+
# Run locally
|
|
272
|
+
node dist/bin.js chart --date 1879-03-14 --time 11:30 --city "Ulm" --nation "DE"
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## Credits
|
|
278
|
+
|
|
279
|
+
- [Kerykeion](https://github.com/g-battaglia/kerykeion) — Python astrology library
|
|
280
|
+
- [Swiss Ephemeris](https://www.astro.com/swisseph/) — Precise planetary calculations
|
|
281
|
+
- [Commander.js](https://github.com/tj/commander.js) — CLI framework
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
19
285
|
## Privacy
|
|
20
286
|
|
|
21
|
-
|
|
287
|
+
**thoth-cli collects no data. Ever.**
|
|
288
|
+
|
|
289
|
+
- ✅ All calculations run locally on your machine
|
|
290
|
+
- ✅ No analytics, no telemetry, no tracking
|
|
291
|
+
- ✅ No network requests except geocoding (via Geonames)
|
|
292
|
+
- ✅ Your birth data stays on your computer
|
|
293
|
+
|
|
294
|
+
The oracle sees but does not record.
|
|
295
|
+
|
|
296
|
+
---
|
|
22
297
|
|
|
23
298
|
## License
|
|
24
299
|
|
|
25
|
-
MIT
|
|
300
|
+
**MIT** — Use it for anything. Free forever.
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
*"As above, so below; as the universe, so the soul."*
|
|
305
|
+
|
|
306
|
+
𓅝
|