phoria2 发布:专为 AI Agent 优化的轻量 WebGL 2 库

原标题:Show HN: I rebuilt my old canvas 3D library as a small WebGL 2 library – phoria2
42AI 研判分

开源项目 phoria2 推出,这是一个基于 WebGL 2 的轻量级 JavaScript 3D 渲染库。其核心特性在于对开发者及 AI 编码代理(Coding Agents)的高度友好性,通过严格的参数验证和清晰的错误反馈机制,显著降低了集成与调试门槛。

报道正文

phoria2 is a small, fast JavaScript library for 3D on the web - charts, labelled scenes, dashboards and product viewers, on a WebGL 2 renderer with an API you can learn in an afternoon. Designed for ease-of-use by agents and humans from the ground up!

  • Everything you need PBR materials, instancing, points, lines, labels, picking, shadows, particles and glTF models.
  • Light and quick No runtime dependencies, plain ES modules, and views that only draw when something changes.
  • Tells you what to write Every option is validated, a mistake comes back as an error that details the fix - for you, or your coding agent.
  • Open source MIT licensed. npm install phoria2, then find the code, the docs and a React example on GitHub.

A rewrite of phoria.js, a JavaScript library from 2013 that rendered 3D onto the canvas 2D context. Back when we were still wizards.