Client-side JavaScript astronomy libraries which are not based on node.js? Are there any client-side JavaScript astronomy libraries? Almost every library I see appears to be server side for node.js. I realize some node.js libraries can be adapted for client-side use, so I'd also be happy with a server-side library that happens to work client-side as well.
EDIT: I did find https://github.com/mourner/suncalc but it appears to be abandoned, has 35+ open issues, many related to accuracy, and, despite its description, appears to give only solar and lunar positions, not planetary positions.
I found &quot;Astronomy&quot; from &quot;cosinekitty&quot; on Github:
https://github.com/cosinekitty/astronomy
It supports both node.js and browser.
Browser demos:
https://github.com/cosinekitty/astronomy/tree/master/demo/browser
Testing the library without downloading whole repository:
Save this file locally:
https://github.com/cosinekitty/astronomy/blob/master/demo/browser/positions.html
Into the file, replace line
&lt;script src=&quot;astronomy.browser.js&quot;&gt;&lt;/script&gt;

by
&lt;script src=&quot;https://cdn.jsdelivr.net/gh/cosinekitty/astronomy@1.0.1/source/js/astronomy.js&quot;&gt;&lt;/script&gt;

Reference: https://cdn.jsdelivr.net/gh/cosinekitty/astronomy/
Change this line:
let observer = new Astronomy.Observer(latitude, longitude, elevation);

to
let observer = new Astronomy.MakeObserver(latitude, longitude, elevation);

Remove line:
 &lt;link rel=&quot;stylesheet&quot; href=&quot;astro_demo.css&quot; /&gt;

You should get the table in the file filled up with data calculated by the library.

Another one is astronomy-bundle-js:
https://cdn.jsdelivr.net/gh/andrmoel/astronomy-bundle-js@6.0.4/src