# ricktu288/ray-optics

A web app for creating and simulating 2D geometric optical scenes, with a gallery of (interactive) demos.

Repository: https://github.com/ricktu288/ray-optics
Canonical: https://ross.abutalabs.com/products/ray-optics
Homepage: https://phydemo.app/ray-optics/
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: optics-simulation, optics, ray-optics, geometric-optics
Last push: 2026-08-23T19:28:10+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 3845, "days_push": 10, "days_rel": 11, "gap_med": 72, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1768, forks 267 (observed 2026-08-28T04:05:33.728830+00:00)

## What it is
A free, open-source web application for creating and simulating 2D geometric optical scenes interactively. It supports a wide range of optical components (mirrors, lenses, beam splitters, diffraction gratings, gradient-index materials) and includes a gallery of interactive demos, with an optional WebGPU-based ray tracing engine.

## Use cases
- simulate light rays passing through lenses and mirrors
- teach geometric optics with interactive demos
- visualize reflection and refraction of light beams
- model chromatic dispersion and color mixing in optics
- create 2D optical diagrams for physics lessons
- explore diffraction gratings and beam splitters
- export optical scene diagrams as SVG

## When to choose
- you need a free, browser-based optics simulator with no installation
- you want interactive 2D geometric optics with a rich component library
- you are an educator or student demonstrating lens/mirror behavior
- you need SVG import/export and measurement tools like rulers and protractors

## When to avoid
- you need full 3D or wave-optics simulation rather than 2D geometric optics
- you require high-precision professional optical design (e.g., Zemax-style lens design)
- you need offline desktop software with no browser dependency

## Facets
- artifact type: application
- maturity: active
- function: simulation, graphics, data-visualization, gui
- domain: education, simulation, web-development
- platform: browser, cross-platform
- tags: ray-tracing, geometric-optics, physics-education, webgpu, lens-simulation, mirror-simulation, interactive-simulator, svg-export, physics, optics, web-server, javascript

## Member repositories
- ricktu288/ray-optics (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:33.728830+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:26:23.389141+00:00, confidence not recorded.
  - readme: https://github.com/ricktu288/ray-optics (fetched 2026-08-28T04:05:33.728830+00:00, sha cb43426cf6af)
  - homepage: https://phydemo.app/ray-optics/ (fetched 2026-08-29T11:05:04.053268+00:00, sha c3ac6fa127c0)
  - site_page: https://phydemo.app/ray-optics/about (fetched 2026-08-29T11:05:04.062693+00:00, sha 1be546e1da55)
- Data as of 2026-08-30T08:39:29.467469+00:00.
