GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rybosome/orrery: Interactive browser-based solar system visualization

BranchesTags
Open more actions menu

Latest commit

 

History

82 Commits
82 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
e2e
e2e
 
 
eslint
eslint
 
 
public
public
 
 
scripts
scripts
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
README.md
README.md
 
 
eslint.config.mjs
eslint.config.mjs
 
 
index.html
index.html
 
 
package.json
package.json
 
 
playwright.config.ts
playwright.config.ts
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
prettier.config.mjs
prettier.config.mjs
 
 
tsconfig.app.json
tsconfig.app.json
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.node.json
tsconfig.node.json
 
 
tsconfig.typecheck.json
tsconfig.typecheck.json
 
 
vite.config.ts
vite.config.ts
 
 

Repository files navigation

Orrery

Minimal Vite + React + TypeScript app that renders a solar system visualization using real space geometry data from NAIF (NASA’s Navigation and Ancillary Information Facility).

Explore the Solar System

Share the current view from Controls → System → State. New links use /sol/s/<payload>. Existing share links continue to open the saved Solar System view.

orrery screenshot

Development

From repo root:

  • pnpm install
  • pnpm run dev

Most scene content is declared in TypeScript. See Scene authoring for the Sol package, asset paths, and validation steps.

NAIF kernels

This viewer ships a small set of NAIF Generic Kernels as static assets under public/static/kernels/naif/:

  • lsk/naif0012.tls (LSK)
  • pck/pck00011.tpc (PCK)
  • spk/planets/de432s.bsp (SPK)

These kernel files are redistributed unmodified, consistent with NAIF's rules: https://naif.jpl.nasa.gov/naif/rules.html

Scripts

From repo root:

  • pnpm run format (auto-format)
  • pnpm run format:check (CI)
  • pnpm run lint
  • pnpm run lint:fix
  • pnpm run build
  • pnpm run typecheck
  • pnpm run test

Conventions

Frames / world space

  • Canonical world (inertial) frame: J2000.
  • Handedness: follow SPICE conventions for the requested frame (for J2000, treat it as a right-handed inertial frame).

Time

  • et is ephemeris time in seconds past the J2000 epoch.
  • In this codebase we represent it as a plain number (EtSeconds).

Units

  • Positions are expressed in kilometers (positionKm).
  • Velocities are expressed in kilometers per second (velocityKmPerSec).
  • Radii (for rendering) are expressed in kilometers (radiusKm).

Scaling to renderer units

SPICE scales are huge for typical WebGL scenes.

  • 1 threeUnit = 1,000,000 km (kmToWorld = 1 / 1_000_000)

Tune this depending on camera near/far planes, desired look, and precision.

Precision strategy

WebGL vertices end up in 32-bit float space; solar-system-scale positions (e.g. 1 AU in km) lose fine detail when used directly as world coordinates.

  • Query body positions in the scene’s declared frame and relative to its observer. Sol uses J2000 and SUN.
  • Pick a focus target (defaults to Earth).
  • Each update, compute delta between body and focus position.
  • Convert delta into renderer units and assign to Three.js object positions.

Frame transforms

spice.kit.frameTransform(from, to, et) returns a rotation matrix. Call .toColMajor() to obtain a Mat3.

  • Representation: a flat number[9] in column-major order to match Three.js Matrix3.
  • Indexing:
    • m = [ m00, m10, m20, m01, m11, m21, m02, m12, m22 ]
    • This corresponds to columns c0=(m00,m10,m20), c1=(m01,m11,m21), c2=(m02,m12,m22).

The transform is intended to be applied as:

  • v_to = M(from->to) * v_from

Visual regression testing

Playwright e2e tests live in e2e.

From repo root:

  • pnpm run e2e

About

Interactive browser-based solar system visualization

orrery.ryboso.me

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.