phoria2 says it is a small JavaScript library designed for creating 3D web elements such as charts, labeled scenes, dashboards, and product viewers. It is a rewrite of phoria.js, an older 2013 library that used the canvas 2D context.
Who it’s for
Humans and coding agents looking to build 3D web applications easily.
What it does, according to the maker
- WebGL 2 renderer
- Support for PBR materials, instancing, points, lines, labels, picking, shadows, particles, and glTF models
- No runtime dependencies with plain ES modules
- Option validation that returns errors detailing how to fix mistakes
How to get started
- Run npm install phoria2 to get started
- Find the code, documentation, and a React example on GitHub
Good to know
- It is an open-source project licensed under the MIT license.
- Views are designed to only draw when something changes.