{"id":50887628,"url":"https://github.com/jceb/huburl","last_synced_at":"2026-06-15T18:01:51.440Z","repository":{"id":362501894,"uuid":"1258343904","full_name":"jceb/huburl","owner":"jceb","description":"Tool for generating the URL of the current repository and path in a source control hub","archived":false,"fork":false,"pushed_at":"2026-06-04T13:13:54.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T14:20:52.477Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nushell","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/jceb.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-03T13:45:39.000Z","updated_at":"2026-06-04T13:14:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jceb/huburl","commit_stats":null,"previous_names":["jceb/huburl"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jceb/huburl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jceb%2Fhuburl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jceb%2Fhuburl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jceb%2Fhuburl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jceb%2Fhuburl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jceb","download_url":"https://codeload.github.com/jceb/huburl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jceb%2Fhuburl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34374146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-15T18:01:50.535Z","updated_at":"2026-06-15T18:01:51.436Z","avatar_url":"https://github.com/jceb.png","language":"Nushell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# huburl\n\nA tool for generating the URL of the current local repository and path in it's\nsource control hub.\n\n## Usage\n\n```sh\nhuburl [flags] (path)\n```\n\n```\nFlags:\n  -h, --help: Display the help message for this command\n  -o, --open: Open URL in browser\n  -c, --copy: Copy URL into the clipboard\n  -r, --remote \u003cstring\u003e: Specific remote name, defaults to the first remote\n  -v, --verbose: Verbose log output\n  --test: Run tests\n\nParameters:\n  path \u003cpath\u003e: File or directory path, defaults to root of the repository (optional)\n```\n\n\u003e [!IMPORTANT]\n\u003e `ssh` remotes are supported and converted to `https` automatically. Shortened\n\u003e paths such as `git@github.com:someone/repo.git` are only supported if they\n\u003e begin with `git@`.\n\n## Dependencies\n\n- [`nushell`](https://nushell.sh) for executing the script itself\n- [`jujutsu`/`jj`](https://jj-vcs.dev/) to find bookmarks and remotes in jujutsu\n  repositories\n- [`git`](https://git-scm.com/) to find branches and remotes in git repositories\n\n## Installation\n\n### Manual Installation\n\n```sh\ncurl -o /usr/local/bin/huburl https://github.com/jceb/huburl/raw/refs/heads/main/huburl\nchmod u+x /usr/local/bin/huburl\ncd my-repository\nhuburl # generates the URL to your hub\n```\n\n### Installation with Nix Flake\n\n1. Add the `huburl` section to your\n   [Flake](https://wiki.nixos.org/wiki/Flakes)'s `inputs`:\n\n```nix\ninputs = {\n  # (...)\n  huburl = {\n    url = \"github:jceb/huburl/main\";\n    inputs.nixpkgs.follows = \"nixpkgs\";\n  };\n};\n```\n\n2. Add the following to your\n   [`nixpkgs.overlays`](https://wiki.nixos.org/wiki/Overlays#Using_overlays):\n\n```nix\n(final: prev: {\n  # (...)\n  huburl = import inputs.huburl {\n    inherit system;\n    inherit (prev) pkgs stdenv;\n  };\n})\n```\n\n3. Rebuild your configuration\n   (`nixos-rebuild switch --flake your-system-config`) and check if it works\n   with `huburl --help`.\n\n4. Execute the file from inside a git or jujutsu repository:\n\n```sh\nhuburl # generates the URL to your hub\n```\n\n### One-time Usage with `nix run`\n\n```sh\nnix run github:jceb/huburl\n```\n\n## Configuration\n\nThe file `~/.config/huburl/config.toml` contains options for the tool.\n\n### hubs.*\n\nTo configure a hostname to be associated with a specific hub:\n\n```toml\n[hubs.gitlab]\nhostnames = [ \"git.example.com\" ]\n```\n\nSupported hub types: `github`, `gitlab`, `gitea`, `forgejo`, `azure`, `srht`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjceb%2Fhuburl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjceb%2Fhuburl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjceb%2Fhuburl/lists"}