Here is a collection of javascript programming libraries that focus on 2D plane geometry. The collection aims to map the most successful of such libraries and thus the collection is not complete and exhaustive in any way. Each library is associated with a link to the project homepage and my brief comments. Libraries that focus only on some aspect of 2D geometry are listed separately below, as also are the libraries with focus on geospatial (spherical) geometry. Libraries with focus on 3D or above are skipped altogether.
The following libraries provide a wide set of basic geometric shapes and tools to manipulate them but may lack advanced features such as spatial indexing.
The list below consists of JavaScript libraries with a specific focus on some aspects of 2D geometry and intentionally lack a full suite of basic geometric shapes.
In addition to physical simulation capabilities in 2D, these libraries have a good suite of geometric shapes and collision detection tools.