Skip to content

[Feature]: Support directly browsing GitHub repositories through special URLs #9

Description

@supersat

Feature Summary

Extend the web site demo to accept arbitrary GitHub repo URLs, much like you can access VS Code in the browser for any GitHub repo by changing github.com to github.dev (e.g., https://github.dev/liltrendi/gitlantis)

Why is this needed?

This would be a cute way to demo the project to others without them having to install anything.

How do you imagine it working?

Since the Gitlantis web site and demo is a Single Page App, the web server could be configured to serve up the same page regardless of the URL used. The client can then parse the rest of the URL to determine the repository to access. The most straight-forward implementation would use the GitHub API with CORS (https://docs.github.com/en/rest/using-the-rest-api/using-cors-and-jsonp-to-make-cross-origin-requests?apiVersion=2022-11-28) to request a repo's content.

Alternatives considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions