-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.ts
More file actions
51 lines (42 loc) · 2.11 KB
/
Copy pathexample.ts
File metadata and controls
51 lines (42 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { createRoxy } from '@roxyapi/sdk';
const roxy = createRoxy(process.env.ROXY_API_KEY!);
/**
* Human Design API: full bodygraph chart in one call. Energy type, strategy,
* inner authority, profile, definition, incarnation cross, nine centers,
* defined channels, and all 26 gate activations. Roxy Ephemeris, verified
* against NASA JPL Horizons. No coordinates needed, only the birth instant.
*/
async function main() {
const { data, error } = await roxy.humanDesign.generateBodygraph({
body: {
date: '1990-07-15',
time: '13:00:00',
timezone: 'America/New_York',
},
});
if (error) throw new Error(error.error);
console.log(`Type: ${data.type} | Strategy: ${data.strategy}`);
console.log(`Authority: ${data.authority}`);
console.log(`Signature: ${data.signature} | Not-self: ${data.notSelf}`);
console.log(`Profile: ${data.profile} | Definition: ${data.definition}`);
console.log(`Incarnation cross: ${data.incarnationCross.name} [${data.incarnationCross.gates.join('/')}]`);
console.log('\nCenters:');
for (const c of data.centers) {
const state = c.defined ? 'DEFINED' : 'open';
const flags = [c.motor ? 'motor' : '', c.awareness ? 'awareness' : ''].filter(Boolean).join(', ');
console.log(` ${c.name.padEnd(14)} ${state.padEnd(8)} ${flags ? `(${flags})` : ''} gates [${c.gates.join(', ')}]`);
}
console.log('\nDefined channels:');
for (const ch of data.channels) {
console.log(` ${ch.gateA}-${ch.gateB} ${ch.name} (${ch.circuit}) connects ${ch.centers.join(' + ')}`);
}
console.log('\nPersonality activations (conscious):');
for (const g of data.gates.filter(g => g.side === 'personality')) {
console.log(` ${g.planet.padEnd(11)} gate ${String(g.gate).padStart(2)}.${g.line} ${g.gateName} / hexagram ${g.ichingHexagram.number} ${g.ichingHexagram.english}`);
}
console.log('\nDesign activations (unconscious, 88 degrees of solar arc before birth):');
for (const g of data.gates.filter(g => g.side === 'design')) {
console.log(` ${g.planet.padEnd(11)} gate ${String(g.gate).padStart(2)}.${g.line} ${g.gateName}`);
}
}
main().catch(console.error);