{"id":20622610,"url":"https://github.com/myterminal/gh-helper","last_synced_at":"2026-04-22T10:31:56.331Z","repository":{"id":76221126,"uuid":"487867553","full_name":"myTerminal/gh-helper","owner":"myTerminal","description":"A web helper for fetching raw GitHub content as plain text","archived":false,"fork":false,"pushed_at":"2024-06-06T00:12:07.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-08T04:05:38.217Z","etag":null,"topics":["github"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myTerminal.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":"2022-05-02T14:04:50.000Z","updated_at":"2024-06-06T00:12:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee2978b8-a764-4602-b53d-f79785b98502","html_url":"https://github.com/myTerminal/gh-helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/myTerminal/gh-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fgh-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fgh-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fgh-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fgh-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myTerminal","download_url":"https://codeload.github.com/myTerminal/gh-helper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fgh-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32132148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["github"],"created_at":"2024-11-16T12:23:58.028Z","updated_at":"2026-04-22T10:31:56.317Z","avatar_url":"https://github.com/myTerminal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-helper\n\n[![Build Status](https://travis-ci.org/myTerminal/gh-helper.svg?branch=master)](https://travis-ci.org/myTerminal/gh-helper)\n[![Code Climate](https://codeclimate.com/github/myTerminal/gh-helper.png)](https://codeclimate.com/github/myTerminal/gh-helper)\n[![js-myterminal-style](https://img.shields.io/badge/code%20style-myterminal-blue.svg)](https://www.npmjs.com/package/eslint-config/myterminal)\n[![Coverage Status](https://img.shields.io/coveralls/myTerminal/gh-helper.svg)](https://coveralls.io/r/myTerminal/gh-helper?branch=master)  \n[![License](https://img.shields.io/github/license/myTerminal/gh-helper.svg)](https://opensource.org/licenses/MIT)  \n\nA web helper for fetching raw GitHub content\n\n## Problem\n\nURLs to retrieve raw data from a file hosted under a GitHub repository can get unreasonably long. This project aims to shorten such URLs for easy sharing.\n\n## How to Configure\n\nConfiguration for *gh-pages* only contains two keys at this point:\n\n    {\n      \"basePath\": \"myTerminal\",\n      \"aliases\": {\n        \"/setup\": \"/dotfiles/master/.setup/bootstrap\"\n      }\n    }\n\n`basePath` stands for a GitHub username or organization (eg: [https://github.com/myTerminal]()).\n\n`aliases` can contain keys that can help further shorten URLs, so given the above configuration,\n\n    /dotfiles/master/.setup/bootstrap\n\nwould become\n\n    /setup\n\n## How to Use\n\nClone the repository inside a directory, and simply run `npm start`.\n\nThe structure of the project has been designed to work with [team-fluxion/web-host](https://github.com/team-fluxion/web-host), but it can also be run independently.\n\nWith the example configuration, a URL as short as\n\n    https://[domain].[tld]/setup\n\ncould be turned into\n\n    https://raw.githubusercontent.com/myTerminal/dotfiles/master/.setup/bootstrap\n\n### Content types\n\nThe response type of the data being returned is determined from the file extension in the URL if one is present.\n\nCurrently, the system identifies the following file extensions:\n\n1. `.txt` for plain text files\n2. `.html` for web pages\n\nSo, a URL that looks like `https://[domain].[tld]/[path]/../[file].html` would be retrieved as a web page with content type \"text/html\", while something like `https://[domain].[tld]/[path]/../[file].html` would be retrieved as a plain text.\n\nResponse types can also be specified explicitly, and that can used to override the identified content type if there is one.\n\nSo, though a URL that looks like `https://[domain].[tld]/[path]/../[file].html` would otherwise be treated as a web page, appending a `?t=text` would get it as plain text.\n\n    https://[domain].[tld]/[path]/../[file].html?t=text\n\nThe above is how an overridden content type would look like.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyterminal%2Fgh-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyterminal%2Fgh-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyterminal%2Fgh-helper/lists"}