
Hey Devs! ๐
Iโm excited to share something I built out of pure necessity during a hackathon โ and itโs now a fully published NPM package! ๐ฆ
๐งฉ The Problem
During my second year in college, my team participated in Make-a-Thon 5.0, where we wanted to use AR to display 3D objects. Unfortunately, we had to rely on third-party platforms because integrating AR directly into our app felt overly complex at the time.
Fast forward to RotaTechX, another hackathon organized by the Rotaract Clubs of SVCE. Faced with the same challenge, I decided not to rely on external tools again โ and thatโs how this component was born.
๐ Introducing @cow-the-great/react-markerless-ar
A fully customizable React component library that lets you render .glb/.gltf 3D models in a markerless AR-like experience directly in the browser using your webcam feed. Built with React Three Fiber and Three.js, it works seamlessly with minimal setup.
๐ฆ NPM:
@cow-the-great/react-markerless-ar
๐ป GitHub Repo:
github.com/CowTheGreat/3d-Modal-Marker-Less-Ar-Viewer
โจ Features
- ๐ท Markerless AR simulation (camera feed background)
- ๐งฑ Components: ModelViewer (static), AnimationViewer (animated)
- โ๏ธ Fully customizable via props (camera, lighting, controls, model, background)
- ๐ ๏ธ No need for external SDKs or markers
- ๐ Works entirely in-browser
import {
ModelViewer,
AnimationViewer,
} from "@cow-the-great/react-markerless-ar";
<AnimationViewer
modelPath="model.glb"
width="100vw"
height="100vh"
cameraProps={{ position: [0, 2, 5], fov: 60 }}
lightingProps={{ ambientLightIntensity: 0.8, directionalLightPosition: [5, 5, 5] }}
modelProps={{ scale: 2, position: [0, 0, 0] }}
backgroundProps={{ enableCamera: true, planeSize: 30 }}
/>
๐ฅ Looking for Feedback
This is just v1.0.0 and Iโm hoping to improve it with community feedback!
Try it out, break it, tweak it, and if youโre interested in contributing โ Iโd love that! ๐
Feel free to open issues or submit PRs if you have ideas or fixes.
Thanks for reading!
Letโs keep building cool things ๐ก
Top comments (0)