{"id":39906892,"url":"https://github.com/fusionstrings/swiss-eph","last_synced_at":"2026-01-20T21:03:21.974Z","repository":{"id":333134924,"uuid":"1136257691","full_name":"fusionstrings/swiss-eph","owner":"fusionstrings","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-18T14:38:42.000Z","size":1160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"creation","last_synced_at":"2026-01-18T21:50:33.042Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fusionstrings.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-17T11:05:43.000Z","updated_at":"2026-01-18T14:35:55.000Z","dependencies_parsed_at":"2026-01-18T16:00:33.952Z","dependency_job_id":null,"html_url":"https://github.com/fusionstrings/swiss-eph","commit_stats":null,"previous_names":["fusionstrings/swisseph-wasi"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fusionstrings/swiss-eph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusionstrings%2Fswiss-eph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusionstrings%2Fswiss-eph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusionstrings%2Fswiss-eph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusionstrings%2Fswiss-eph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fusionstrings","download_url":"https://codeload.github.com/fusionstrings/swiss-eph/tar.gz/refs/heads/creation","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fusionstrings%2Fswiss-eph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28613671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-18T16:00:24.007Z","updated_at":"2026-01-20T21:03:21.937Z","avatar_url":"https://github.com/fusionstrings.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @fusionstrings/swiss-eph\n\nSwiss Ephemeris astronomical calculation library compiled to WebAssembly for\ncross-platform JavaScript/TypeScript usage, with idiomatic Rust bindings.\n\n[![crates.io](https://img.shields.io/crates/v/swiss-eph.svg)](https://crates.io/crates/swiss-eph)\n[![docs.rs](https://docs.rs/swiss-eph/badge.svg)](https://docs.rs/swiss-eph)\n[![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-blue.svg)](LICENSE)\n\n## Features\n\n- **Cross-platform**: Works in Deno, Node.js, browsers, and edge runtimes\n  (Cloudflare Workers)\n- **Rust Bindings**: Complete FFI and safe Rust API for native performance\n- **High precision**: Bit-level accuracy matching native Swiss Ephemeris\n  calculations\n- **Complete API**: 95+ functions for planetary positions, houses, eclipses, and\n  more\n- **Zero dependencies**: Self-contained WASM module with built-in Moshier\n  ephemeris\n- **TypeScript**: Full type definitions with TSDoc documentation\n\n## Installation (JS/TS)\n\n### Deno / JSR\n\n```typescript\nimport { load } from \"jsr:@fusionstrings/swiss-eph\";\n```\n\n### Node.js / npm\n\n```bash\nnpm install @fusionstrings/swiss-eph\n```\n\n```typescript\nimport { load } from \"@fusionstrings/swiss-eph\";\n```\n\n## Quick Start (JS/TS)\n\n```typescript\nimport { Constants, load } from \"@fusionstrings/swiss-eph\";\n\n// Initialize the Swiss Ephemeris\nconst eph = await load();\n\n// Calculate Julian Day for a date\nconst jd = eph.swe_julday(2024, 6, 15, 12.0, Constants.SE_GREG_CAL);\n\n// Get Sun's position\nconst { xx, error } = eph.swe_calc_ut(\n  jd,\n  Constants.SE_SUN,\n  Constants.SEFLG_SPEED,\n);\nconsole.log(`Sun longitude: ${xx[0]}°`);\n```\n\n## Rust Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nswiss-eph = \"0.1.0\"\n```\n\n### Quick Start (Rust)\n\n```rust\nuse swisseph_x::safe::*;\nuse swisseph_x::*;\n\nfn main() {\n    let jd = julday(2024, 1, 1, 12.0);\n    let flags = CalcFlags::new().with_speed();\n    let sun = calc(jd, SE_SUN, flags).unwrap();\n    println!(\"Sun longitude: {:.6}°\", sun.longitude);\n}\n```\n\n## API Overview (JS/TS)\n\n| Function                       | Description                 |\n| ------------------------------ | --------------------------- |\n| `swe_calc` / `swe_calc_ut`     | Planetary positions (TT/UT) |\n| `swe_houses` / `swe_houses_ex` | House cusps and angles      |\n| `swe_julday` / `swe_revjul`    | Julian Day conversions      |\n| `swe_sidtime`                  | Sidereal time               |\n| `swe_deltat`                   | Delta T (TT - UT)           |\n\n## License\n\n**AGPL-3.0** - Same license as the Swiss Ephemeris library.\n\nThis software is based on the Swiss Ephemeris by Astrodienst AG. See\nhttps://www.astro.com/swisseph/ for more information.\n\n## Credits\n\n- [Swiss Ephemeris](https://www.astro.com/swisseph/) by Astrodienst AG\n- WASM compilation using WASI SDK and wasmbuild\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionstrings%2Fswiss-eph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusionstrings%2Fswiss-eph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionstrings%2Fswiss-eph/lists"}