{"id":20580139,"url":"https://github.com/michaelliao/git-explorer","last_synced_at":"2025-04-14T19:23:02.874Z","repository":{"id":157795306,"uuid":"624335629","full_name":"michaelliao/git-explorer","owner":"michaelliao","description":"File explorer for a subdir of repo which can embedded to web page.","archived":false,"fork":false,"pushed_at":"2024-12-21T23:52:53.000Z","size":1544,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T15:49:49.275Z","etag":null,"topics":["embedded","explorer","git","html-component"],"latest_commit_sha":null,"homepage":"https://michaelliao.github.io/git-explorer/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelliao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-06T08:40:50.000Z","updated_at":"2024-12-21T23:52:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"89a727af-9e2d-4cb6-b522-dad3aed915f2","html_url":"https://github.com/michaelliao/git-explorer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelliao%2Fgit-explorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelliao%2Fgit-explorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelliao%2Fgit-explorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelliao%2Fgit-explorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelliao","download_url":"https://codeload.github.com/michaelliao/git-explorer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248943423,"owners_count":21186959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embedded","explorer","git","html-component"],"created_at":"2024-11-16T06:20:42.878Z","updated_at":"2025-04-14T19:23:02.846Z","avatar_url":"https://github.com/michaelliao.png","language":"JavaScript","readme":"# Git Explorer\n\nGit Explorer can convert any Github-compatible URL into a file explorer that can be embedded into a web page.\n\nFor example, the link:\n\n[https://github.com/michaelliao/git-explorer/tree/main/sample](https://github.com/michaelliao/git-explorer/tree/main/sample)\n\ncan be converted to:\n\n![gitexplorer.png](gitexplorer.png)\n\nSee live demo on [https://michaelliao.github.io/git-explorer/](https://michaelliao.github.io/git-explorer/).\n\n# Usage\n\n```\n\u003chtml\u003e\n\u003chead\u003e\n    \u003clink rel=\"stylesheet\" href=\"https://michaelliao.github.io/git-explorer/css/git-explorer.css\"\u003e\n    \u003cscript src=\"https://michaelliao.github.io/git-explorer/js/git-explorer.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cdiv id=\"placeholder\"\u003e\u003c/div\u003e\n    \u003cscript\u003e\n        createGitExplorer(\n            document.querySelector('#placeholder'), // DOM to replace\n            'https://github.com/michaelliao/git-explorer/tree/main/sample' // GitHub-compatible URL\n        );\n    \u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n### How to change style\n\nOverride [git-explorer.css](https://github.com/michaelliao/git-explorer/blob/main/css/git-explorer.css) in your own CSS.\n\n# Notes\n\nThe URL must contain branch info so the following URL is not work:\n\n```\nhttps://github.com/michaelliao/git-explorer\n```\n\nUse URL with branch instead:\n\n```\nhttps://github.com/michaelliao/git-explorer/tree/main\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelliao%2Fgit-explorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelliao%2Fgit-explorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelliao%2Fgit-explorer/lists"}