{"id":19030880,"url":"https://github.com/hackclub/how-did-i-get-here","last_synced_at":"2025-07-26T00:33:16.421Z","repository":{"id":210911794,"uuid":"718386228","full_name":"hackclub/how-did-i-get-here","owner":"hackclub","description":"A tool/website/article by @kognise about how routing on the Internet works.","archived":false,"fork":false,"pushed_at":"2023-12-28T19:29:09.000Z","size":659,"stargazers_count":194,"open_issues_count":1,"forks_count":7,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-19T11:09:52.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://how-did-i-get-here.net","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hackclub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-14T00:58:51.000Z","updated_at":"2025-04-23T16:19:27.000Z","dependencies_parsed_at":"2023-12-28T21:39:31.960Z","dependency_job_id":null,"html_url":"https://github.com/hackclub/how-did-i-get-here","commit_stats":null,"previous_names":["hackclub/how-did-i-get-here"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hackclub/how-did-i-get-here","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackclub%2Fhow-did-i-get-here","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackclub%2Fhow-did-i-get-here/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackclub%2Fhow-did-i-get-here/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackclub%2Fhow-did-i-get-here/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackclub","download_url":"https://codeload.github.com/hackclub/how-did-i-get-here/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackclub%2Fhow-did-i-get-here/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267093791,"owners_count":24034948,"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-07-25T02:00:09.625Z","response_time":70,"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":"2024-11-08T21:19:55.834Z","updated_at":"2025-07-26T00:33:16.369Z","avatar_url":"https://github.com/hackclub.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align='center'\u003e\n\u003ca href='https://how-did-i-get-here.net/'\u003e\n\u003cimg width='700' src='src/static/github-header.svg' alt='How Did I Get Here? A project by Lexi Mattick and Hack Club'\u003e\n\u003cp\u003e\u003cstrong\u003eVisit how-did-i-get-here.net \u0026raquo;\u003c/strong\u003e\u003c/p\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\n---\n\nA tool/website/article about how routing on the Internet works.\n\nOn load, it runs a traceroute to your public IP, loading ASN and PeeringDB information, and live HTTP streams the results. Then, 500 lines of if statements render a generative article describing the path of network provenance your traceroute covered. Finally, I include a bonus article about how the traceroute program works and what BGP is.\n\nThe traceroute and all lookups are powered by a custom traceroute library and agent I wrote from scratch in Rust, called [ktr](https://github.com/kognise/ktr/). It's designed to be very fault-tolerant and highly concurrent, allowing it to make sense in the context of a website like this!\n\n![](https://doggo.ninja/F5uEIx.png)\n\nI tried to use Bun for this, but Node HTTP socket support wasn't comprehensive enough, so I ported it back to plain old Node with TypeScript. This always seems to happen. I am still using Bun as a package manager, though, thus the bun.lockb! I chose to do a hybrid approach (read: I developed this willy-nilly) wherein the complex, reliable code is all TypeScript, but the entrypoint is actually a JavaScript file that can do wibbly wobbly object manipulation with no trouble!\n\nMy approach to HTTP streaming is sorta cheating. It sends the first half of a page rendered with EJS (before a comment used to split it). Then, it streams another EJS fragment over and over again, separated by a style tag that hides the previous fragment with CSS. When the traceroute is finished streaming, it renders and sends the rest of the file. This lets me stream a whole UI segment without JavaScript *or* much complexity :)\n\nI don't have much else to put in this README, but you should [check out the actual website](https://how-did-i-get-here.net/) because it's much cooler than reading about it!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackclub%2Fhow-did-i-get-here","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackclub%2Fhow-did-i-get-here","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackclub%2Fhow-did-i-get-here/lists"}