{"id":26223379,"url":"https://github.com/stellaraf/cid","last_synced_at":"2026-04-19T20:38:38.374Z","repository":{"id":64307713,"uuid":"320709529","full_name":"stellaraf/cid","owner":"stellaraf","description":"Circuit ID Generator CLI Tool","archived":false,"fork":false,"pushed_at":"2022-01-06T20:33:37.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-12T17:41:06.290Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://stellar.tech","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause-clear","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stellaraf.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}},"created_at":"2020-12-11T23:48:29.000Z","updated_at":"2022-06-01T16:09:06.000Z","dependencies_parsed_at":"2023-01-15T11:00:23.646Z","dependency_job_id":null,"html_url":"https://github.com/stellaraf/cid","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/stellaraf/cid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fcid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fcid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fcid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fcid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stellaraf","download_url":"https://codeload.github.com/stellaraf/cid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fcid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28008430,"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","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"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":"2025-03-12T17:32:17.527Z","updated_at":"2025-12-24T20:35:56.527Z","avatar_url":"https://github.com/stellaraf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cbr/\u003e\n  \u003cimg src=\"https://res.cloudinary.com/stellaraf/image/upload/v1604277355/stellar-logo-gradient.svg\" width=300 /\u003e\n  \u003cbr/\u003e\n  \u003ch3\u003eCircuit ID Generator\u003c/h3\u003e\n  \u003cbr/\u003e\n  \u003ca href=\"https://github.com/stellaraf/cid/actions?query=workflow%3Agoreleaser\"\u003e\n    \u003cimg alt=\"GitHub Workflow Status\" src=\"https://img.shields.io/github/workflow/status/stellaraf/cid/goreleaser?color=9100fa\u0026style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003cbr/\u003e\n  This repository contains source code for Stellar's command-line application to generate a circuit ID.\n\u003c/div\u003e\n\n## Usage\n\n### Download the latest [release](https://github.com/stellaraf/cid/releases/latest)\n\nThere are multiple builds of the release, for different CPU architectures/platforms:\n\nThere are multiple builds of the release, for different CPU architectures/platforms. Download and unpack the release for your platform:\n\n```shell\nwget \u003crelease url\u003e\ntar xvfz \u003crelease file\u003e cid\n```\n\n### Run the binary\n\n```console\n$ ./cid --help\n\nCircuit ID Generator\n\nOptions:\n\n  -h, --help          Show this Help Menu\n  -t, --type         *Circuit Type\n  -c, --country      *Circuit Country\n  -s, --state        *Circuit US State\n  -i, --customer-id  *Customer ID\n```\n\nIf no arguments are passed, you'll be prompted for them:\n\n```console\n$ ./cid\nCircuit Type (IP Transit, Private Extension, SD-WAN, Cross Connect): transit\nCountry: us\nUS State: az\nCustomer ID: 123456\n\nCountry: United States of America\nUS State: Arizona\nType: IP Transit\nCustomer ID: 123456\n\nCircuit ID: 1.84047.123456.8780\n```\n\n## Format\n\nThe format is specific to Stellar's standards:\n\nCircuit IDs are composed of the following variables:\n- Service Type (IP Transit, MPLS, SD-WAN)\n- Location Identifier\n  - Combination of country (USA, in my case)\n  - US Region ID (From [list](https://www.census.gov/geo/reference/gtc/gtc_census_divreg.html) from the US Census Bureau)\n  - US Division ID (From the same list)\n  - US State FIPS Code (From the same list)\n- Customer ID\n  - Should be something reusable that maps to the customer across all systems. In our case, a customer CRM ID\n- Service ID\n  - Randomly generated 4 digit number\n\n## Creating a New Release\n\nThis project uses [GoReleaser](https://goreleaser.com/) to manage releases. After completing code changes and committing them via Git, be sure to tag the release before pushing:\n\n```\ngit tag \u003crelease\u003e\n```\n\nOnce a new tag is pushed, GoReleaser will automagically create a new build \u0026 release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellaraf%2Fcid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellaraf%2Fcid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellaraf%2Fcid/lists"}