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)