# enkimute/ganja.js

:triangular_ruler: Javascript Geometric Algebra Generator for Javascript, c++, c#, rust, python. (with operator overloading and algebraic literals) -

Repository: https://github.com/enkimute/ganja.js
Canonical: https://ross.abutalabs.com/products/ganjajs
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, geometric-algebra, clifford-algebras, complex-numbers, quaternion-algebra, operator-overloading, algebraic-data-types, cplusplus, csharp, rust, python
Last push: 2024-01-20T04:58:47+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3319, "days_push": 956, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1608, forks 111 (observed 2026-08-28T04:05:10.758048+00:00)

## What it is
ganja.js is a JavaScript Geometric Algebra code generator that creates Clifford algebras of any signature with operator overloading and algebraic literals. It also ships a templated source generator producing equivalent algebra code for C++, C#, Rust, and Python.

## Use cases
- work with quaternions and dual quaternions in javascript
- perform geometric algebra computations like rotors and bivectors
- generate Clifford algebra code for C++ or Rust projects
- prototype physics or graphics math with real algebraic syntax
- teach or experiment with geometric and Clifford algebras

## When to choose
- you need arbitrary-signature Clifford algebra with operator overloading
- you want readable math syntax for multivector computations in JS
- you need pregenerated geometric algebra sources in multiple languages

## When to avoid
- you only need basic linear algebra or matrix math
- you need a heavily optimized production linear algebra library
- your project does not involve geometric algebra at all

## Facets
- artifact type: library
- maturity: stable
- function: math, graphics, simulation
- domain: mathematics, graphics, education
- platform: browser, cpp, rust, python, dotnet, cross-platform
- tags: geometric-algebra, clifford-algebra, quaternions, operator-overloading, code-generator, multivector, physics-simulation, code-generation, game-development, algorithms, javascript, nodejs

## Member repositories
- enkimute/ganja.js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:10.758048+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:51:24.353637+00:00, confidence not recorded.
  - readme: https://github.com/enkimute/ganja.js (fetched 2026-08-28T04:05:10.758048+00:00, sha 620b6566b061)
- Data as of 2026-08-30T08:39:29.467469+00:00.
