{"_id":"@cooljapan/oxiephemeris","name":"@cooljapan/oxiephemeris","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@cooljapan/oxiephemeris","type":"module","collaborators":["COOLJAPAN OU (Team Kitasan)"],"description":"OxiEphemeris: WebAssembly bindings — compute full natal charts, synastry, transits, progressions, composites, and their Linked Open Data (Turtle/RDF) entirely in the browser from a DE ephemeris buffer","version":"0.1.1","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/cool-japan/oxiephemeris.git"},"main":"oxiephemeris_wasm.js","types":"oxiephemeris_wasm.d.ts","sideEffects":["./oxiephemeris_wasm.js","./snippets/*"],"keywords":["astrology","ephemeris","wasm","webassembly","chart"],"_id":"@cooljapan/oxiephemeris@0.1.1","gitHead":"b8b22617255d8f60d0dc4e94aa84ef27ce67ab31","bugs":{"url":"https://github.com/cool-japan/oxiephemeris/issues"},"homepage":"https://github.com/cool-japan/oxiephemeris#readme","_nodeVersion":"23.7.0","_npmVersion":"11.2.0","dist":{"integrity":"sha512-P5lDEzYdf31p9I9QqMxT6IXUXWeRCv/1YLznfYN+mmyoLJgJrLdXyxZPw+rDZMBq4jP4ij0kxK4Qqa48jOXPXg==","shasum":"5279f15a58f45e956a7d7c511a6ffe52def3ed4e","tarball":"https://registry.npmjs.org/@cooljapan/oxiephemeris/-/oxiephemeris-0.1.1.tgz","fileCount":6,"unpackedSize":486030,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICV7SUGccUS9MTB/bkRds7e7r/5x/J/qnEaSGdBDXtVzAiEA7fvQ3I2dQuDemdo/oqrFZQYEHxuW25eymIC/aLPFiFs="}]},"_npmUser":{"name":"kitasan","email":"info@kitasan.io"},"directories":{},"maintainers":[{"name":"kitasan","email":"info@kitasan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/oxiephemeris_0.1.1_1783790723279_0.7152822589881846"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-11T17:25:23.113Z","0.1.1":"2026-07-11T17:25:23.486Z","modified":"2026-07-11T17:25:23.728Z"},"maintainers":[{"name":"kitasan","email":"info@kitasan.io"}],"description":"OxiEphemeris: WebAssembly bindings — compute full natal charts, synastry, transits, progressions, composites, and their Linked Open Data (Turtle/RDF) entirely in the browser from a DE ephemeris buffer","homepage":"https://github.com/cool-japan/oxiephemeris#readme","keywords":["astrology","ephemeris","wasm","webassembly","chart"],"repository":{"type":"git","url":"git+https://github.com/cool-japan/oxiephemeris.git"},"bugs":{"url":"https://github.com/cool-japan/oxiephemeris/issues"},"license":"Apache-2.0","readme":"# @cooljapan/oxiephemeris\n\nA full Western-astrology chart engine as **WebAssembly** — compute natal\ncharts, synastry, transits, secondary progressions, and midpoint\ncomposites, plus their **Linked Open Data** (RDF Turtle / N-Triples with\nSKOS and PROV-O), **entirely in the browser**. No server, no upload: the\nJPL DE ephemeris file you supply never leaves the page.\n\nPublished to npm as `@cooljapan/oxiephemeris`.\n\n## Install\n\n```sh\nnpm install @cooljapan/oxiephemeris\n```\n\n```js\nimport init, { natal_json, natal_turtle } from '@cooljapan/oxiephemeris';\nawait init();\n```\n\n## Build from source\n\nLocal/demo build (unscoped, `target web` — what `www/index.html` actually\nuses via a relative import):\n\n```sh\nwasm-pack build crates/oxiephemeris-wasm --target web --out-dir pkg\n```\n\nPublished-package-shaped build (matches CI):\n\n```sh\nwasm-pack build crates/oxiephemeris-wasm --scope cooljapan --target bundler --out-dir pkg-bundler\n```\n\n## Use (browser / ES modules)\n\n```js\nimport init, { natal_json, natal_turtle } from './pkg/oxiephemeris_wasm.js';\nawait init();\n\n// DE440/DE441 bytes, e.g. from <input type=\"file\"> → arrayBuffer():\nconst de = new Uint8Array(buffer);\n// The Unix epoch at the Royal Observatory, Greenwich.\nconst req = JSON.stringify({ date: \"1970-01-01T00:00:00Z\", lat: 51.4779, lon: 0.0 });\n\nconst chart = JSON.parse(natal_json(de, req));\nconst sun = chart.bodies.find(b => b.body === \"Sun\");\n// -> Capricorn, 10.16°, house 4\n\nconst turtle = natal_turtle(de, req);   // RDF Turtle with SKOS + PROV-O\n```\n\n`crates/oxiephemeris-wasm/www/index.html` is a self-contained demo page.\n\n## Functions\n\nEach takes the DE bytes and a JSON request string, and returns a JSON (or\nTurtle) string:\n\n- `natal_json(de, req)` / `natal_turtle(de, req, base_iri?)`\n- `synastry_json(de, req)` / `synastry_turtle(de, req, base_iri?)`\n- `transit_json(de, req)`\n- `progress_json(de, req)`\n- `composite_json(de, req)` / `composite_turtle(de, req, base_iri?)`\n\nThe request/response schemas are identical to the Python binding and the\nCLI, so results are bit-for-bit the same across all three.\n\nApache-2.0.\n","readmeFilename":"README.md","_rev":"1-421ea39ca7658c803706733fd2fe34c2"}