# HarryStevens/geometric

A JavaScript library for doing geometry.

Repository: https://github.com/HarryStevens/geometric
Canonical: https://ross.abutalabs.com/products/geometric
Homepage: https://www.harryjstevens.com/geometric/
Language: JavaScript
License: MIT
License Family: permissive
Topics: geometry
Last push: 2026-06-19T18:23:15+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 89, longevity 100
- inputs: {"age_days": 2835, "days_push": 75, "days_rel": 75, "gap_med": 0, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1104, forks 50 (observed 2026-08-28T04:03:36.253884+00:00)

## What it is
Geometric.js is a JavaScript library for doing geometry with points, lines, polygons, and angles. It uses plain arrays for geometry primitives, ships TypeScript declarations, and works in browsers and Node.js.

## Use cases
- check if a point is inside a polygon
- compute line intersections in javascript
- rotate or scale a polygon
- calculate convex hull of points
- measure polygon perimeter and area
- compute distances and angles between points and lines
- perform polygon boolean operations

## When to choose
- you need lightweight 2D geometry math in JavaScript without custom classes
- you want serializable plain-array geometry primitives for SVG or Canvas drawing
- you need TypeScript-friendly geometry helpers in Node or the browser

## When to avoid
- you need 3D geometry or a full computational geometry engine
- you need a physics or game-engine-grade geometry system
- you need GPU-accelerated geometry processing

## Facets
- artifact type: library
- maturity: stable
- function: math, graphics, developer-tools
- domain: graphics, web-development, mathematics
- platform: browser, cross-platform
- tags: geometry, points, lines, polygons, angles, typescript-declarations, esm, algorithms, nodejs, javascript

## Member repositories
- HarryStevens/geometric (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:36.253884+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-30T06:44:36.538514+00:00, confidence not recorded.
  - readme: https://github.com/HarryStevens/geometric (fetched 2026-08-28T04:03:36.253884+00:00, sha d7bb7e9c97bc)
  - homepage: https://www.harryjstevens.com/geometric/ (fetched 2026-08-29T12:48:00.029515+00:00, sha 62c3e8b21086)
  - site_page: https://www.harryjstevens.com/geometric/getting-started (fetched 2026-08-29T12:48:00.038646+00:00, sha e1540235bf68)
  - site_page: https://www.harryjstevens.com/geometric/examples/rotate-point-about-an-origin (fetched 2026-08-29T12:48:00.040474+00:00, sha 4fa00ce4b333)
  - registry_npm: https://registry.npmjs.org/geometric (fetched 2026-08-29T12:48:00.042090+00:00, sha 9564676cbd4e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
