Skip to content

Export all glitches before 8th July #5737

Open

Description

@vincentfretin

List of glitches used in documentation

hello world template:

aframe-registry and aincraft, the examples were already ported in the repo, need to fix those links:

naf:

animated lights:

interactions-and-controllers:

systems:

animation:

material:

modify-model-material:

geometry:

sky:

misc:

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.

Activity

  1. vincentfretin commented on Jun 16, 2025

    @vincentfretin
    ContributorAuthor

    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:

    mkdir public/assets                                                                  
    cd public/assets                                                                     
    for f in `jq .url ../../.glitch-assets|grep -v "^null$"|sed 's@"\(.*\)"@\1@'|sort -u`; do wget $f; done
    cd ../..                                                                        
    sed -i 's@"https://cdn.glitch.global/.*/\(.*\)?.*"@"./assets/\1"@' public/*.html 
    
  2. vincentfretin commented on Jun 16, 2025

    @vincentfretin
    ContributorAuthor

    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.

  3. vincentfretin commented on Jun 16, 2025

    @vincentfretin
    ContributorAuthor

    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.

  4. vincentfretin commented on Jun 18, 2025

    @vincentfretin
    ContributorAuthor

    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.js by https://aframe.io/releases/1.7.1/aframe.min.js for it to work.
    In the examples in docs we have

        <!-- If running this example without a local copy of A-Frame, replace this next line with:
        <script src="https://aframe.io/releases/<release_number>/aframe.min.js"></script>
        -->
        <script src="../../../dist/aframe-master.js"></script>

    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.

  5. dmarcos commented on Jun 18, 2025

    @dmarcos
    Member

    Thanks so much for compiling the list

  6. vincentfretin commented on Oct 1, 2025

    @vincentfretin
    ContributorAuthor

    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

  7. mr-eggleton commented on Mar 19, 2026

    @mr-eggleton

    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.

  8. vincentfretin commented on Jun 24, 2026

    @vincentfretin
    ContributorAuthor

    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.js by https://aframe.io/releases/1.7.1/aframe.min.js for it to work. In the examples in docs we have

    <!-- If running this example without a local copy of A-Frame, replace this next line with:
    <script src="https://aframe.io/releases/<release_number>/aframe.min.js"></script>
    -->
    <script src="../../../dist/aframe-master.js"></script>
    

    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.

    first step:

  9. dmarcos commented on Jun 24, 2026

    @dmarcos
    Member

    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)

  10. dmarcos commented on Jun 24, 2026

    @dmarcos
    Member

    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

  11. vincentfretin commented on Jun 24, 2026

    @vincentfretin
    ContributorAuthor

    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.

  12. dmarcos commented on Jun 24, 2026

    @dmarcos
    Member

    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=….

  13. mrxz commented on Jun 25, 2026

    @mrxz
    Contributor

    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.

    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).

    Paying for more space, attach a custom domain, have a small nodejs server, that's a different business for sure.

    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.

    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.

    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.

    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=….

    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 .dev and a .fun one 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. ;-)

  14. dmarcos commented on Jun 27, 2026

    @dmarcos
    Member

    @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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions