AR.js brings marker, image, and location-based augmented reality to the web via A-Frame and three.js builds you can load from CDN or npm.
Overview
AR.js is a lightweight JavaScript library for augmented reality experiences in the browser. It supports image tracking, location-based AR, and marker tracking, with separate builds for A-Frame and three.js workflows.
Getting started examples run on a phone browser after hosting the page on a server. NFT image tracking, GPS anchors, and Hiro marker demos are documented step by step, including CORS requirements for external assets.
An npm package enables ES module imports in React, Vue, or other bundler projects. Official documentation lives on ar-js-org.github.io/AR.js-Docs, and maintenance continues under the AR.js GitHub organization.
MindAR is noted as a newer option for advanced image and face tracking while AR.js remains relevant for marker and location modes.
Key features
- Marker tracking for AR.js markers
- Image tracking NFT mode
- Location-based AR with GPS
- A-Frame and three.js build variants
- npm ES module package
Use cases
- Embedding AR scenes in marketing web pages
- Prototyping location-based web experiences
- Teaching WebAR without native apps