{"id":18320961,"url":"https://github.com/1407arjun/cli-shorturl-template","last_synced_at":"2026-05-11T07:26:31.355Z","repository":{"id":108952432,"uuid":"508233795","full_name":"1407arjun/cli-shorturl-template","owner":"1407arjun","description":"A personalised CLI-based URL shortner using GitHub actions and Next.js","archived":false,"fork":false,"pushed_at":"2022-07-15T10:34:12.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T08:31:09.884Z","etag":null,"topics":["cli","github-actions","nextjs","template","url-shortener"],"latest_commit_sha":null,"homepage":"","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/1407arjun.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-06-28T09:23:36.000Z","updated_at":"2022-07-15T10:32:38.000Z","dependencies_parsed_at":"2023-06-26T00:16:49.084Z","dependency_job_id":null,"html_url":"https://github.com/1407arjun/cli-shorturl-template","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/1407arjun%2Fcli-shorturl-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1407arjun%2Fcli-shorturl-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1407arjun%2Fcli-shorturl-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1407arjun%2Fcli-shorturl-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1407arjun","download_url":"https://codeload.github.com/1407arjun/cli-shorturl-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054976,"owners_count":21040102,"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":["cli","github-actions","nextjs","template","url-shortener"],"created_at":"2024-11-05T18:18:01.067Z","updated_at":"2026-05-11T07:26:26.333Z","avatar_url":"https://github.com/1407arjun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cli-shorturl\n\nA personalised CLI-based URL shortner using GitHub actions and Next.js\n\n## Setup\n\n\u003e All registered URLs are stored in `urls.json`\n\n### Add the environment variables to your `.bashrc` or `.zshrc`\n\n```sh\nexport GITHUB_PAT=\u003cGitHub Personal Access Token\u003e\nexport BASE_URL=\u003cComplete URL to the route which returns all registered URLs\u003e\n```\n\n### Add the package to `PATH`\n\n```sh\ncd url-shortner\nnpm link\n```\n\n### Update your Git config in `.github/workflows/ci.yml`\n\n```sh\ngit config --global user.email \"\u003cemail\u003e\"\ngit config --global user.name \"\u003cname\u003e\"\n```\n\n### Deployment\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2F1407arjun%2Fcli-shorturl-template%2Ftree%2Fmain)\n\n## Getting started\n\n### Adding a URL\n\n```sh\nshorturl add \u003cname\u003e \u003cslug\u003e \u003cURL\u003e\n```\n\n### Removing a URL\n\n```sh\nshorturl remove \u003cname\u003e\n```\n\n### Listing all registered URLs\n\n```sh\nshorturl list\n```\n\n### Checking a URL\n\n```sh\nshorturl check all \u003cname\u003e \u003cslug\u003e\n```\n\n### Checking for a particular URL field\n\n```sh\nshorturl check \u003cname/slug\u003e \u003cvalue\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1407arjun%2Fcli-shorturl-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1407arjun%2Fcli-shorturl-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1407arjun%2Fcli-shorturl-template/lists"}