Repository navigation
Open
Description
List of glitches used in documentation
hello world template:
- https://glitch.com/~aframe in README.md docs/introduction/hosting-and-publishing.md (removed in Update hosting-and-publishing.md to remove Glitch #5762) docs/introduction/index.md CONTRIBUTING.md and in src/_data/examples.yml aframe-site -> replace with https://krabbel.dev
aframe-registry and aincraft, the examples were already ported in the repo, need to fix those links:
- https://glitch.com/edit/#!/aframe-registry in README.md docs/introduction/entity-component-system.md docs/introduction/installation.md
- https://glitch.com/~aframe-aincraft in docs/introduction/faq.md docs/introduction/installation.md
naf:
- https://glitch.com/~networked-aframe in docs/introduction/installation.md -> https://stackblitz.com/github/networked-aframe/naf-project but I just removed the link
animated lights:
- [exported] https://glitch.com/edit/#!/aframe-school-js in docs/introduction/javascript-events-dom-apis.md
- https://glitch.com/edit/#!/aframe-animated-lights in docs/introduction/javascript-events-dom-apis.md docs/core/mixins.md docs/introduction/entity-component-system.md docs/core/mixins.md docs/components/light.md
interactions-and-controllers:
- https://glitch.com/edit/#!/aframe-basic-interaction in docs/introduction/interactions-and-controllers.md (dead, removed from examples)
- https://glitch.com/edit/#!/wide-cream in docs/introduction/interactions-and-controllers.md (broken links from vr.google.com, removed from examples)
- [exported] https://glitch.com/~aframe-event-set-component in docs/introduction/interactions-and-controllers.md
- [exported] https://glitch.com/~aframe-school-cursor-handler/ in docs/introduction/interactions-and-controllers.md
systems:
- [exported] https://glitch.com/~aframe-refraction-system in docs/core/systems.md
animation:
- [exported] https://glitch.com/edit/#!/aframe-animation-events in docs/components/animation.md
- [exported] https://glitch.com/~aframe-shooting-stars in docs/components/animation.md
material:
- https://glitch.com/edit/#!/aframe-displacement-shader in docs/components/material.md (gave a 404, removed link from doc)
- [exported] https://glitch.com/edit/#!/aframe-simpler-shader in docs/components/material.md
- [exported] https://glitch.com/edit/#!/aframe-displacement-registershader in docs/components/material.md
- [exported] https://glitch.com/edit/#!/aframe-displacement-offset-registershader in docs/components/material.md
- [exported] https://glitch.com/edit/#!/aframe-texture-shader in docs/components/material.md
modify-model-material:
- https://glitch.com/edit/#!/aframe-modify-model-material in docs/components/obj-model.md docs/components/gltf-model.md docs/introduction/models.md
geometry:
- [exported] https://glitch.com/edit/#!/ex-2-geometry in docs/components/geometry.md
- [exported] https://glitch.com/edit/#!/ex-2a-texture-on-shape in docs/components/geometry.md
- [exported] https://glitch.com/edit/#!/ex-2b-shape-as-entity in docs/components/geometry.md
- [exported] https://glitch.com/edit/#!/ex-2c-animating-shapes in docs/components/geometry.md
- [exported] https://glitch.com/edit/#!/ex-2d-animating-shapes-with-components in docs/components/geometry.md
sky:
- [exported] https://glitch.com/edit/#!/aframe-adding-a-sky in docs/primitives/a-sky.md
- [exported] https://glitch.com/edit/#!/aframe-changing-the-sky in docs/primitives/a-sky.md
misc:
- https://glitch.com/~aframe-gallery in docs/introduction/installation.md
- https://aframe-360-gallery.glitch.me in docs/introduction/best-practices.md
- [exported] https://glitch.com/~aframe-vaporwave in docs/introduction/installation.md also see glitch vaporwave demo render incorrectly #4456
- [exported] https://glitch.com/edit/#!/a-frame-mouse-click-example in docs/components/cursor.md
- [exported] https://glitch.com/~aframe-text-fonts-demo in docs/components/text.md
- [exported] https://glitch.com/edit/#!/aframe-360-video-example in docs/primitives/a-videosphere.md
- [exported] https://glitch.com/~aframe-basic-guide-with-environment in docs/guides/building-a-basic-scene.md
- Remove ref in examples/mixed-reality/watch/hand-menu.js
- Move putter-grip asset in assets repo examples/test/model/index.html
- Change url in test tests/core/a-assets.test.js
All those can be exported in a single repo aframevr/glitch-examples for example and we can update the urls in the doc to use:
https://stackblitz.com/github/aframevr/glitch-examples/tree/main/ex-2c-animating-shapes
@dmarcos what are the glitches you have access to so you can easily click on the Download button in the dashboard?
Otherwise we need to download each file one by one.
Metadata
Metadata
Assignees
Labels
No labels
Activity
vincentfretin commentedon Jun 16, 2025
The assets are not in the archive when you download a project from the dashboard.
Here is what I used for some projects to get the code, all assets and change the urls:
vincentfretin commentedon Jun 16, 2025
The examples can also be integrated into this repo in docs like @diarmidmackenzie did in:
I see some glitches actually already have been moved to docs, but there are still some links to the glitch in the docs.
vincentfretin commentedon Jun 16, 2025
We discussed it already in #5207 so that issue is really to export the glitch content before the 8th July, then we can handle each example one by one.
vincentfretin commentedon Jun 18, 2025
The hello world example directly from the aframe repo:
https://stackblitz.com/github/aframevr/aframe/tree/gh-pages/examples/boilerplate/hello-world?file=index.html (I got an error today, the webcontainer doesn't spawn)
same with codesandbox:
https://codesandbox.io/s/github/aframevr/aframe/tree/gh-pages/examples/boilerplate/hello-world?file=index.html
You need to replace
../../../dist/aframe-master.min.jsbyhttps://aframe.io/releases/1.7.1/aframe.min.jsfor it to work.In the examples in docs we have
Currently in the preghpages script, we're replacing aframe-master.js by aframe-master.min.js but I think it would be better to replace it with the aframe.io url of the latest release. That way we can use stackblitz or codesandbox to open any examples.
dmarcos commentedon Jun 18, 2025
Thanks so much for compiling the list
vincentfretin commentedon Oct 1, 2025
I uploaded all the exported glitches to my Google Drive, zip is 45 MB
https://drive.google.com/file/d/1Bb1HyJFXyVoJT-llu-P-OWRJuhxsGWYa/view?usp=sharing
mr-eggleton commentedon Mar 19, 2026
This one really does need fixing. I got egg on my face introducing this great tech to a student whose project should be on A-Frame and the first thing I tried to show her the code of failed.
I am super busy. but if noone else is going to work on this I will try to get it building and have a go at fixing this.
vincentfretin commentedon Jun 24, 2026
first step:
dmarcos commentedon Jun 24, 2026
those codesandbox / stackblitz + github path are really cool. stackblitz parent company seems to be pivoting into AI tools so future is uncertain. I don’t know much about codesandbox. Ideally this would be a github built-in feature: can create a sandbox from any directory (for frontend code at least)
dmarcos commentedon Jun 24, 2026
I know @mrxz had a prototype of a similar platform but I think would be a lot of work to maintain and we’ve seen building a biz around such kind of tool is hard
vincentfretin commentedon Jun 24, 2026
https://codesandbox.io is now part of Together AI https://codesandbox.io/blog/joining-together-ai-introducing-codesandbox-sdk
codesanbox is a developer environment, not for hosting a project.
@mrxz did https://krabbel.dev/ with 1MB limit per project, that's already a super great solution to share some code and debug someone else issue, thanks for it!
Creating a project from a github repo and a given path is another feature that would be great to have, that could even be a feature restricted to the aframe repository to avoid any abuses of the service, but with a limit of 1MB you can't upload any big glb, so can't really develop your own project on it, and that's on purpose I presume, so adding the feature is probably not pertinent.
Paying for more space, attach a custom domain, have a small nodejs server, that's a different business for sure.
dmarcos commentedon Jun 24, 2026
long term sustainability is def a factor if we’re gonna link from site / docs. glitch outcome was unfortunate. Pointing code to a github repo makes it more resilient since no 3rd party is hosting the code. Thinking about it we could be done 100% in the frontend with an URL query parameter. Frontend fetches the code from GH on load. We would not need a backend for a simple sandbox. aframe.io/sandbox?githubURL=….
mrxz commentedon Jun 25, 2026
I do like the idea of being able to directly point to a github repo/directory. I'll try and see if I can implement something like that. One of the reasons I made Krabbel was that I want people to be able to edit and test things without being forced to sign-in. So this fits nicely in that idea.
The 1 MiB limit was arbitrarily chosen, but it's purposefully "low" indeed. For one, the way files are handled isn't suited for large files, something similar to what Glitch did for assets makes more sense. Secondly it avoids people from using it for unintended purposes, whether "abuse" (e.g. using it as a free file host/CDN) or "misuse" (e.g. building and hosting their app).
Indeed, my goal isn't to turn it into a business. Avoiding the "hosting projects" side keeps things simple, but also keeps the operational work and cost predictable. Not saying such features will never be added, or that there never will be paid features, but its not on the roadmap.
Links can always end up breaking, whether due to the service shutting down, changing URL paths, discontinuing the feature or even GitHub themselves limiting/blocking (unauthenticated) access. But at least having the URL contain the path in the repo ensures that anyone that has a clone of it can still find it, so that is already a big improvement.
You'll quickly run into issues with such an approach. Say you show the fetched page in an iframe using a data-url, most browsers will not consider that a secure context, meaning WebXR won't be available. I guess a service worker could be used, which would also allow examples that span multiple files seamlessly. Though there will be edge-cases, like anything that works per origin like persistent spatial anchors.
Though it could be good enough. Since I intended Krabbel to also be used for bug reproductions, it was important that things operate isolated and comparable to how people would normally host/serve things. That's part of the reason why there are two domains a
.devand a.funone and each project getting its own sub-domain dynamically.In any case, I'll see what I can do for the GitHub link feature in Krabbel. As for using it in the documentation, that would be fine by me. Though keep in mind that it is effectively a hobby project in that there is no SLA with uptime guarantee. ;-)
dmarcos commentedon Jun 27, 2026
@mrxz that sounds fantastic. thanks so much. It would make me really happy to see a sustainable version of glitch. For similar projects, VC funding growth and scale expectations have been the issue. As a solo or small team project should be more attainable .
vincentfretin commentedon Jun 28, 2026
With the changes
this starts to look great!