[](https://github.com/coderofsalvation/xrfragment/actions)
A tiny specification for viewing 3D models as linkable AR/VR websites.
Address and Control anything inside a 3D model with [W3C Media Fragments](https://www.w3.org/TR/media-frags/) and [URI Templates](https://www.rfc-editor.org/rfc/rfc6570).

Simply SURF a 3D file-verse and design for a Spatial Open Internet with the highest degree of interoperability ❤
# Documentation / Website 
https://xrfragment.org 

# Getting started

[https://xrfragment.org](https://xrfragment.org/#Getting%20started)
# available parser-implementations
* [javascript](dist/xrfragment.js) [(+example)](test/test.js)
* [javascript module](dist/xrfragment.module.js) 
* [python](dist/xrfragment.py) [(+example)](test/test.py)
* [lua](dist/xrfragment.lua) [(+example)](test/test.lua)
* [haXe](src/xrfragment) (allows exporting to various programming languages)
* [Godot](https://codeberg.org/coderofsalvation/xrfragment-godot) exports to all platforms
See documentation for more info
# development
Pre-build libraries can be found in [/dist folder](dist)
If you really want to build from source:
```
$ nix-shell           # nix-users: drops you into a dev-ready shell 
$ ./make install      # debian-users: install deps via apt-get
$ ./make build && ./make tests
```
> NOTE #1: to rebundle the THREE/AFRAME javascripts during dev run `./make build js`
> NOTE #2: to regenerate the parser in various languages (via haxe), run `./make build parser`
# Godot (>=v4.3.1)
```
$ ./make install godot       # this installs the godot-xr-tools addon
```
> NOTE: the godot project is in [src/xrfragment/godot](./src/xrfragment/godot) (open the folder in godot)
# Credits