npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cooljapan/oxiephemeris

v0.1.1

Published

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

Downloads

104

Readme

@cooljapan/oxiephemeris

A full Western-astrology chart engine as WebAssembly — compute natal charts, synastry, transits, secondary progressions, and midpoint composites, plus their Linked Open Data (RDF Turtle / N-Triples with SKOS and PROV-O), entirely in the browser. No server, no upload: the JPL DE ephemeris file you supply never leaves the page.

Published to npm as @cooljapan/oxiephemeris.

Install

npm install @cooljapan/oxiephemeris
import init, { natal_json, natal_turtle } from '@cooljapan/oxiephemeris';
await init();

Build from source

Local/demo build (unscoped, target web — what www/index.html actually uses via a relative import):

wasm-pack build crates/oxiephemeris-wasm --target web --out-dir pkg

Published-package-shaped build (matches CI):

wasm-pack build crates/oxiephemeris-wasm --scope cooljapan --target bundler --out-dir pkg-bundler

Use (browser / ES modules)

import init, { natal_json, natal_turtle } from './pkg/oxiephemeris_wasm.js';
await init();

// DE440/DE441 bytes, e.g. from <input type="file"> → arrayBuffer():
const de = new Uint8Array(buffer);
// The Unix epoch at the Royal Observatory, Greenwich.
const req = JSON.stringify({ date: "1970-01-01T00:00:00Z", lat: 51.4779, lon: 0.0 });

const chart = JSON.parse(natal_json(de, req));
const sun = chart.bodies.find(b => b.body === "Sun");
// -> Capricorn, 10.16°, house 4

const turtle = natal_turtle(de, req);   // RDF Turtle with SKOS + PROV-O

crates/oxiephemeris-wasm/www/index.html is a self-contained demo page.

Functions

Each takes the DE bytes and a JSON request string, and returns a JSON (or Turtle) string:

  • natal_json(de, req) / natal_turtle(de, req, base_iri?)
  • synastry_json(de, req) / synastry_turtle(de, req, base_iri?)
  • transit_json(de, req)
  • progress_json(de, req)
  • composite_json(de, req) / composite_turtle(de, req, base_iri?)

The request/response schemas are identical to the Python binding and the CLI, so results are bit-for-bit the same across all three.

Apache-2.0.