{"id":21890080,"url":"https://github.com/ejfox/cli-ching","last_synced_at":"2026-04-11T21:32:19.633Z","repository":{"id":252681782,"uuid":"841125123","full_name":"ejfox/cli-ching","owner":"ejfox","description":"A CLI tool to guide and interpret I Ching throws","archived":false,"fork":false,"pushed_at":"2025-02-25T17:18:41.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T20:05:32.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ejfox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-11T17:58:54.000Z","updated_at":"2025-02-25T17:18:45.000Z","dependencies_parsed_at":"2024-08-11T19:28:10.273Z","dependency_job_id":"bba547d3-3dd7-4944-812a-a2f4a64c4a6b","html_url":"https://github.com/ejfox/cli-ching","commit_stats":null,"previous_names":["ejfox/cli-ching"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejfox%2Fcli-ching","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejfox%2Fcli-ching/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejfox%2Fcli-ching/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejfox%2Fcli-ching/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejfox","download_url":"https://codeload.github.com/ejfox/cli-ching/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244898409,"owners_count":20528335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T11:28:42.981Z","updated_at":"2026-04-11T21:32:19.619Z","avatar_url":"https://github.com/ejfox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CLI-CHING\n\nCLI-CHING is a command-line interface tool for consulting the I Ching (Book of Changes). It provides a digital means of casting hexagrams and receiving interpretations, blending ancient wisdom with modern technology. It does not cast for you, you must bring 3 coins and report their results back to the application, which will help you convert them into the correct line. \n\n\n\nhttps://github.com/user-attachments/assets/133a7d1d-a4bc-4131-b675-4de0b2466ddb\n\n\n\n## Features\n\n- Simple command-line interface\n- Flexible coin toss input\n- **Natural RNG Mode**: Automatic hexagram generation using true random numbers from natural processes\n  - Random.org (atmospheric noise)\n  - ANU Quantum Random Numbers (quantum phenomena)\n  - Graceful fallback to pseudo-random if APIs unavailable\n- Hexagram visualization\n- AI-powered interpretations\n- History of recent consultations\n- Supports quick queries via command-line arguments\n\n## Installation\n\n1. Ensure you have Node.js installed on your system.\n2. Clone this repository:\n   ```\n   git clone https://github.com/yourusername/cli-ching.git\n   cd cli-ching\n   ```\n3. Install the required dependencies:\n   ```\n   npm install\n   ```\n\n## Usage\n\n### Basic Usage\n\nRun the script with:\n\n```\nnode index.js\n```\n\nFollow the prompts to enter your question and coin tosses.\n\n### Quick Query\n\nYou can also start a consultation with a question directly from the command line:\n\n```\nnode index.js -q \"Will my project succeed?\"\n```\n\n### Natural RNG Mode (Automatic Coin Tosses)\n\nFor a fully automated experience, use the `--auto` or `-a` flag to generate hexagrams using true random numbers from natural processes:\n\n```\nnode index.js --auto -q \"What should I focus on today?\"\n```\n\nThis mode uses:\n1. **Random.org** - True random numbers generated from atmospheric noise\n2. **ANU Quantum Random Numbers** - Random numbers from quantum phenomena (fallback)\n3. **Pseudo-random generator** - Standard RNG if natural sources are unavailable\n\n⚠️ **Important Note**: The traditional method of physically throwing coins is considered the proper and preferred way to consult the I Ching. The physical act of casting is an integral part of the divination process. The natural RNG mode should only be used when physical coins are not available.\n\n## Coin Tossing\n\nWhen prompted, enter the results of your coin tosses using T for tails and H for heads. For example:\n\n- TTT (3 tails)\n- TTH, THT, or HTT (2 tails, 1 head)\n- THH, HTH, or HHT (1 tail, 2 heads)\n- HHH (3 heads)\n\nThe order doesn't matter, so HTT is the same as TTH.\n\n## Interpreting Results\n\nThe tool will display your hexagram, including any changing lines. It will then provide an AI-generated interpretation based on your question and the resulting hexagram.\n\n## Configuration\n\nCLI-CHING automatically saves your consultations to a `.iching-throws` file in your home directory. The three most recent consultations are displayed when you start the tool.\n\n## Dependencies\n\n- axios: For making HTTP requests to the AI interpretation service\n- figlet: For generating ASCII art text\n- readline: For handling user input (built into Node.js)\n\n## AI Interpretation\n\nThe tool uses a local LLM (Language Model) running on `http://localhost:1234` for generating interpretations. Ensure your LLM server is running before using the interpretation feature.\n\n## Customization\n\nYou can modify the `getInterpretation` function in `index.js` to use a different AI service or to implement your own interpretation logic.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejfox%2Fcli-ching","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejfox%2Fcli-ching","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejfox%2Fcli-ching/lists"}