8000 GitHub - nimblemo/astro-hd: A CLI for take human design date summary · GitHub
[go: up one dir, main page]

Skip to content
nimblemoPublic

About

A CLI for take human design date summary

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

astro-hd

Human Design chart for the Jupiter–Saturn conjunction of 29 September 7 BCE rendered by astro-hd

crates.io downloads docs.rs CI release license

astro-hd is a fast command-line tool that calculates a Human Design chart from a birth date, time and UTC offset. Planetary positions come from the astro-rust library; the report is rendered as a colorized terminal table, JSON, YAML or an SVG chart. Chart calculation works fully offline — no models, no network, no data files.

Installation

Prebuilt binaries are the easiest way to install astro-hd — no Rust toolchain required.

Linux / macOS

curl -fsSL https://raw.githubusercontent.com/nimblemo/astro-hd/main/scripts/install.sh | sh

Windows (PowerShell)

irm https://raw.githubusercontent.com/nimblemo/astro-hd/main/scripts/install.ps1 | iex

The scripts detect your platform, download the matching release, verify its SHA-256 checksum and put astro-hd on your PATH. Re-running a script updates an existing installation in place and does nothing if that version is already installed. Supported platforms and asset names are listed in Prebuilt binaries; building from source is described in Building from source.

Quick Start

astro-hd --date=-0006-09-29 --time 06:31 --utc +0

--date is [-]YYYY-MM-DD, --time is HH:MM, --utc is the UTC offset of the birthplace (e.g. +3, -5, +5.5). A leading - denotes a year before the common era (-0500-03-15); years use astronomical numbering, so 0000 is 1 BC.

Usage

Options

Flag Short Description
--date -d Birth date in [-]YYYY-MM-DD format. Negative years (BC) use astronomical numbering (-0500).
--time -t Birth time in HH:MM format.
--utc -u Timezone offset (e.g., +3, -5, +5.5).
--scenarios Comma-separated display scenarios (see below).
--topic Thematic output set: full, core, career, psyche, genekeys, venus, variables, or a user-defined topic. Conflicts with --scenarios.
--detail Detail level: detailed (default) or compact.
--format -f Output format: table (default), json, yaml, svg.
--lang -l Language: en (default), ru, es.
--save Save output to a file. Without a value, the name is generated as hd_chart_<date>_<time>.txt (.svg for SVG output).
--no-pager Disable interactive paging of long table output.

Commands

Command Description
config Show or change default output settings.
topics List built-in and user-defined output topics (topics list).

Long table output is shown page by page when the terminal is interactive: Space — next page, Enter — next line, q — quit. Paging is skipped automatically when output is redirected or piped, and can be disabled with --no-pager.

Display Scenarios

The report is assembled from independent blocks (scenarios), always rendered in this canonical order:

Scenario Content
core Date, Type, Profile, Authority, Strategy
definition Definition type (none, single, split, triple or quadruple) with its groups, centers, gates, channels, bridges between groups and hanging gates
incarnation Incarnation Cross with its four gates; --detail detailed adds the cross and gate descriptions
centers Centers with their role, active gates, channels and normal/distorted behavior
channels Active channels with centers and circuit
planets Combined Design/Personality planet table; --detail detailed adds gate/line descriptions
circuits Circuit scores
variables Motivation, Vision, Environment, Diet
relationships Fears, sexuality and love by gate
business Business keys for active gates
genekeys Gene Keys of active gates with their activating planet: shadow, gift and siddhi, ordered by planet significance
venus Venus Sequence: six spheres and steps 11–23

--detail compact drops the optional descriptions (core, incarnation, channels, planets, genekeys, venus, centers, circuits).

Built-in topics:

Topic Description Scenarios Detail
full All blocks with descriptions (default output) all scenarios detailed
core Identity and bodygraph mechanics core, definition, centers, channels, planets, circuits detailed
career Core plus business gates (work, money) core, definition, centers, channels, planets, circuits, business detailed
psyche Core plus relationships (fear, sexuality, love) and centers core, definition, centers, relationships detailed
genekeys Core plus planets, Gene Keys, channels and circuits core, definition, channels, planets, genekeys, circuits detailed
venus The Gene Keys set plus the Venus Sequence core, definition, channels, planets, genekeys, venus, circuits detailed
variables Core plus variables (motivation, vision, environment, diet) core, definition, variables detailed

JSON, YAML and SVG output always contain the full chart; scenarios affect only the table.

Examples

Concise table output:

astro-hd --date=-0006-09-29 --time 06:31 --utc +0 --topic core

Export to JSON:

astro-hd --date=-0006-09-29 --time 06:31 --utc +0 --format json > chart.json

Export an SVG chart:

astro-hd --date=-0006-09-29 --time 06:31 --utc +0 --format svg --save chart.svg

The drawing follows the visual language of Gates of Humanity: a wheel with the signs, planets and gates, the body graph with its channels and centers, and the rows of planetary activations. The textual properties and date block are omitted; the canvas is transparent outside the mandala, which keeps its soft circular background. The wheel shows both activation sets: Personality planets are dark and Design planets are peach, and gates activated only by Design are tinted lighter. Peach filled channels mark Design activations and black channels mark Personality activations. All nine centers are slightly enlarged and have rounded edges, and the mandala is scaled so the body graph sits clear of its inner rings. The SVG assets keep their Apache-2.0 license and notice in assets/svg.

Save to a file:

astro-hd --date=-0006-09-29 --time 06:31 --utc +0 --save my_chart.txt

Another language (English is the default):

astro-hd --date=-0006-09-29 --time 06:31 --utc +0 --lang ru

Selected scenarios:

astro-hd --date=-0006-09-29 --time 06:31 --utc +0 --scenarios core,channels,centers --detail compact

Topic:

astro-hd --date=-0006-09-29 --time 06:31 --utc +0 --topic career

Venus Sequence:

astro-hd --date=-0006-09-29 --time 06:31 --utc +0 --topic venus

Configuration

Defaults are stored in config.json:

OS Path
Windows %APPDATA%\nimblemo\astro-hd\config\config.json
Linux ~/.config/astro-hd/config.json
macOS ~/Library/Application Support/com.nimblemo.astro-hd/config.json
{
  "language": "en",
  "output": {
    "detail": "detailed",
    "scenarios": ["core", "channels", "planets", "centers"]
  },
  "topics": {
    "my_reading": {
      "detail": "compact",
      "scenarios": ["core", "centers"]
    }
  }
}

An empty scenarios list means all scenarios. User-defined topics take precedence over built-in ones.

astro-hd topics list                         # list topics with descriptions
astro-hd config                              # show current defaults
astro-hd config --list-scenarios             # list scenarios and topics
astro-hd config --set-lang ru                # change default language
astro-hd config --set-scenarios core,centers # set default scenarios
astro-hd config --set-detail compact         # set default detail level
astro-hd config --set-topic career           # apply a topic as default

Priority: CLI flags (--scenarios / --topic / --detail) > config file > built-in defaults.

Prebuilt binaries

No Rust toolchain required — every release ships ready-to-run binaries for:

Platform Target triple
Linux x86_64 (glibc) x86_64-unknown-linux-gnu
macOS Intel x86_64-apple-darwin
macOS Apple Silicon aarch64-apple-darwin
Windows x86_64 x86_64-pc-windows-msvc

Release binaries are chart-only and need no network access.

Files are named astro-hd-v<VERSION>-<TARGET> (astro-hd-v<VERSION>-<TARGET>.exe on Windows), and each binary has a .sha256 checksum next to it. Browse them on the releases page. The install scripts pick the right asset automatically.

Optional: local RAG assistant

ask, kb and models are opt-in. They are compiled only with the rag feature, which is off by default:

cargo install astro-hd --features rag
# or, from a clone:
cargo build --release --features rag

astro-hd ask answers questions about the chart using a local knowledge base (books, notes, methodology docs). Retrieval runs on in-process fastembed embeddings, generation runs on llama.cpp:

astro-hd kb add ./books/venus.md
astro-hd kb search "profile 1/3"

astro-hd ask --date=-0006-09-29 --time 06:31 --utc +0 \
  --query-scenario career \
  "How do my channels show up in work and money?"

The first ask downloads the embedding model, the Qwen3-4B GGUF checkpoint and the matching llama.cpp build (~2.8 GB in total, all SHA-256 verified), so later runs work offline. Artifacts are managed by the binary:

astro-hd models install    # download everything `ask` needs
astro-hd models status     # what is installed, how much space it takes, where
astro-hd models stop       # stop the background runtime and its llama.cpp server
astro-hd models remove     # delete the models and llama.cpp builds
Feature Commands
Questions ask QUESTION, --query-scenario reading|career|psyche|genekeys, --index, --force, --top-k, --answer-format text|json
Registry kb add|list|remove|reindex|search|verify|path
Artifacts models install|status|stop|remove

Documents are registered by absolute path and read in place; chunks are embedded once and cached in the platform data directory. kb add also accepts PDF, DOCX, ODT, RTF, EPUB and HTML — they are converted to Markdown through Firecrawl (config --set-ocr-key, or the FIRECRAWL_API_KEY environment variable).

Settings live under "rag" in config.json (they appear only in a rag build):

Key Default Description
local_embed_model multilingual-e5-small Also all-minilm-l6-v2, all-minilm-l6-v2-q, bge-small-en-v1.5.
device auto auto picks a GPU when one is detected, gpu requires one, cpu forces CPU.
top_k 6 Number of retrieved fragments.
chunk_chars 1200 Target chunk size in characters.
chunk_overlap 150 Chunk overlap in characters.
max_chart_chars 16000 Maximum size of the chart JSON attached to the prompt.
num_ctx 16384 Context window passed to llama.cpp as --ctx-size.
auto_pull_models true Download missing artifacts on the first call.
keep_alive_secs 1800 How long the background runtime stays alive after the last CLI call; 0 disables it.
cache_dir — Overrides the data folder (registry, index, models).
query_scenarios — User-defined query scenarios composed with chart data.
ocr — Firecrawl conversion settings (enabled, api_url, api_key_env, api_key, mode, max_pages, timeout_secs).

The background runtime keeps llama-server warm: the first call that needs inference starts a detached process (the hidden __runtime command), every CLI call extends its lease, and after keep_alive_secs without requests it stops the server and exits. models status prints its state; models stop stops it immediately.

Requirements

  • Rust — only for cargo install / building from source.
  • Nerd Font (optional) — the table uses Nerd Font symbols for zodiac signs and planets. Install e.g. JetBrainsMono Nerd Font and select it in your terminal for the best look.
  • RAG models (optional, rag feature only) — downloaded on the first ask call (~2.8 GB).
  • Chart calculation is fully offline: gate and center descriptions are embedded in the binary, so no data files or network access are needed.

Project Structure

  • src/main.rs: entry point and command dispatch.
  • src/cli.rs: CLI argument parsing and terminal output formatting.
  • src/calc.rs: core Human Design logic and chart assembly.
  • src/astro_calc.rs: astronomical calculations wrapper.
  • src/scenario.rs: display scenarios, detail levels and topics.
  • src/svg.rs: SVG chart drawing from the templates in assets/svg.
  • src/venus.rs: Venus Sequence map (steps 11–23) assembled from existing positions.
  • src/query.rs: RAG query scenarios (rag feature).
  • src/rag.rs: retrieval, embedding cache and answer generation (rag feature).
  • src/library.rs: document registry, kb add/list/remove/verify (rag feature).
  • src/ocr.rs: PDF/DOCX/EPUB → Markdown conversion via Firecrawl (rag feature).
  • src/llama.rs: llama.cpp supervision — binary download, server startup and shutdown (rag feature).
  • src/runtime.rs: background runtime that keeps llama.cpp warm between CLI calls (rag feature).
  • src/local.rs: model cache — GGUF checkpoint downloads and fastembed embeddings (rag feature).
  • src/config.rs: user configuration and config path resolution.
  • src/data/: data models and the embedded gates database.
  • data/: gate database and Venus Sequence JSON files bundled into the binary at build time.
  • locales/: translations (en, ru, es).

Building from source

From crates.io

cargo install astro-hd

The binary is installed as astro-hd (usually into ~/.cargo/bin). This is the chart-only build: the optional local RAG assistant (ask, kb, models) is not included. See Optional: local RAG assistant to enable it.

From the Git repository

cargo install --git https://github.com/nimblemo/astro-hd --tag v0.6.0

From source

git clone https://github.com/nimblemo/astro-hd.git
cd astro-hd
cargo build --release
# binary: ./target/release/astro-hd

Development

cargo build                                    # chart-only build (default)
cargo test --all-targets
cargo fmt --all --check
cargo clippy --all-targets -- -D warnings

cargo clippy --all-targets --features rag -- -D warnings   # RAG build
cargo test --all-targets --features rag

build.rs downloads the gate database into data/ if the files are missing (they are committed to the repository, so a normal build needs no data downloads; Cargo dependencies are fetched as usual).

Build artifacts

target/ grows quickly because every feature set (default, --features rag) and the debug profile keep their own artifacts. Dependencies are compiled without debug info ([profile.dev.package."*"] in Cargo.toml), and the rest can be pruned safely:

cargo clean --profile dev      # drop debug artifacts, keep the release build
cargo clean                    # drop everything (~10 GB)
cargo sweep -t 7               # optional: remove artifacts unused for 7 days (cargo install cargo-sweep)

Set CARGO_INCREMENTAL=0 for one-off builds to skip the incremental cache (~5 GB), and avoid running manual builds while rust-analyzer is checking the workspace — they contend for the same lock and can leave half-written artifacts.

Benchmarks and lo 66AD ad testing

cargo bench                                  # criterion micro-benchmarks
cargo run --example load_test --release      # throughput, 10 000+ charts

Typical performance results:

  • Calculation speed: ~80–120 µs per chart.
  • Throughput: ~8 000+ charts/sec (multi-threaded).

Releasing

Releases are automated by GitHub Actions:

  1. astro-rust (astronomy library) must be published first: push a v2.1.0 tag to nimblemo/astro-rust — the Publish workflow pushes the crate to crates.io.

  2. In this repository, bump version in Cargo.toml, refresh Cargo.lock (cargo update -p astro-rust), commit, and push a matching tag:

    git tag v0.6.0
    git push origin v0.6.0
  3. The Release workflow then:

    • verifies the tag matches Cargo.toml, runs the test suite;
    • builds ready-to-run binaries for Linux (glibc), macOS (Intel, Apple Silicon) and Windows;
    • publishes the binaries with .sha256 checksums and generated release notes to GitHub Releases;
    • publishes the crate to crates.io.

The crates.io step requires a CARGO_REGISTRY_TOKEN repository secret (an API token from https://crates.io/settings/tokens). If the version is already published, the step is skipped.

License

MIT — see LICENSE.

About

A CLI for take human design date summary

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0