0
$\begingroup$

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.

$\endgroup$
  • 2
    $\begingroup$ What are your expectations/requirements to such a library? Calculating "things", animating objects? For solar systems, the Milkyway, the observable universe? Please be more specific. $\endgroup$ – try-catch-finally Nov 30 at 19:38
  • $\begingroup$ For right now, it's just a general question. Obviously, I'd want "the most complete" library eventually, but, for now, I'll settle for anything. $\endgroup$ – barrycarter Nov 30 at 19:39
  • $\begingroup$ I think it wouldn't be so hard to extract the computing part of the server-side node.js libs. $\endgroup$ – peterh says reinstate Monica Dec 2 at 10:02
  • $\begingroup$ @peterhsaysreinstateMonica I actually tried this with orb.js and livestreamed my attempt at youtube.com/watch?v=v1ItMdi3_GY but it's harder than it looks, especially when file loading is involved. Of course, you're free to take a shot. $\endgroup$ – barrycarter Dec 2 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.