{"id":48800734,"url":"https://github.com/montanaflynn/ishormuzopenyet","last_synced_at":"2026-04-15T03:01:06.092Z","repository":{"id":350102200,"uuid":"1205311968","full_name":"montanaflynn/ishormuzopenyet","owner":"montanaflynn","description":"Is the strait of Hormuz open yet?","archived":false,"fork":false,"pushed_at":"2026-04-14T01:36:26.000Z","size":4892,"stargazers_count":27,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-14T02:35:59.184Z","etag":null,"topics":["data","hormuz","map","shipping"],"latest_commit_sha":null,"homepage":"https://ishormuzopenyet.com","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/montanaflynn.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-08T21:01:56.000Z","updated_at":"2026-04-14T01:36:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"d660ce2d-84d7-46bd-b8bc-82fd796f23be","html_url":"https://github.com/montanaflynn/ishormuzopenyet","commit_stats":null,"previous_names":["montanaflynn/ishormuzopenyet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/montanaflynn/ishormuzopenyet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montanaflynn%2Fishormuzopenyet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montanaflynn%2Fishormuzopenyet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montanaflynn%2Fishormuzopenyet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montanaflynn%2Fishormuzopenyet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/montanaflynn","download_url":"https://codeload.github.com/montanaflynn/ishormuzopenyet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montanaflynn%2Fishormuzopenyet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31824118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"online","status_checked_at":"2026-04-15T02:00:06.175Z","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":["data","hormuz","map","shipping"],"created_at":"2026-04-14T02:30:37.324Z","updated_at":"2026-04-15T03:01:06.086Z","avatar_url":"https://github.com/montanaflynn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Is Hormuz Open Yet?\n\n[ishormuzopenyet.com](https://ishormuzopenyet.com)\n\nA status page showing whether the Strait of Hormuz is open for maritime traffic, based on daily transit data from the IMF PortWatch platform.\n\n\u003e [!WARNING]\n\u003e I built this as a fun side project, please don't rely on it for anything serious. Crossing data lags ~4 days and ship positions on the map are cached, not live. The data is from public sources and I make no guarantees on its accuracy.\n\n## How It Works\n\nThe site displays a YES/NO status based on [Polymarket](https://polymarket.com/predictions/strait-of-hormuz) prediction market odds for whether Strait of Hormuz traffic will return to normal. If bettors give it a 75%+ chance of normalizing, the strait is considered open. When prediction market data is unavailable, it falls back to IMF PortWatch transit data (open if daily crossings exceed 25% of the 1-year average).\n\nA dark map centered on the strait shows cached ship positions, and an overlay card displays prediction market odds, crossing counts, a 90-day bar chart, and rolling averages compared to the 1-year baseline.\n\n## Data Sources\n\n## [Polymarket](https://polymarket.com/predictions/strait-of-hormuz)\n\nPrediction market odds for Strait of Hormuz traffic normalization via the [Gamma API](https://gamma-api.polymarket.com). Markets resolve based on IMF PortWatch 7-day moving average reaching 60+ transit calls. Uses the nearest active monthly market (April until May, then May).\n\n## [IMF PortWatch](https://portwatch.imf.org/pages/chokepoint6)\n\nDaily chokepoint transit data from the [ArcGIS FeatureServer](https://services9.arcgis.com/weJ1QsnbMYJlCHdG/arcgis/rest/services/Daily_Chokepoints_Data/FeatureServer/0). Provides daily counts of container, dry bulk, general cargo, RoRo, and tanker crossings. Updated daily with a ~4 day processing lag. The Strait of Hormuz is `chokepoint6`.\n\n## [CartoDB](https://carto.com/basemaps)\n\nDark basemap tiles (`dark_nolabels` variant) for the map background.\n\n## [MarineTraffic](https://www.marinetraffic.com)\n\nShip positions (lat/lng, heading, speed, name) manually captured and served as a static file. Not live.\n\n\u003e [!NOTE]\n\u003e Live AIS tracking APIs exist but are expensive. If you'd like to help sponsor a real-time data feed, please [open an issue](https://github.com/montanaflynn/ishormuzopenyet/issues) or reach out via the email on my [GitHub profile](https://github.com/montanaflynn).\n\n## Tech Stack\n\n- **[Next.js 16](https://nextjs.org)** with App Router\n- **[Leaflet](https://leafletjs.com)** for the interactive map\n- **[Tailwind CSS](https://tailwindcss.com)** for styling\n\n## Running Locally\n\n```bash\ngit clone https://github.com/montanaflynn/ishormuzopenyet.git\ncd ishormuzopenyet\nnpm install\nnpm run dev\n```\n\nNo environment variables are required. The PortWatch API is public and the CartoDB tiles are free. Ship positions use the cached sample data in `data/`.\n\n## API Endpoints\n\n- `GET /api/status` — Returns strait status including YES/NO, Polymarket odds, latest day data, 365 days of history, and rolling averages. Cached at the edge for 1 hour.\n\n## Project Structure\n\n```\napp/\n  page.tsx            — Main page with status overlay\n  api/status/         — PortWatch data endpoint (edge-cached)\ncomponents/\n  Map.tsx             — Leaflet map with ship markers\nlib/\n  portwatch.ts        — IMF PortWatch API client\n  polymarket.ts       — Polymarket odds fetcher\n  types.ts            — TypeScript types\npublic/\n  data/sample-marinetraffic.json — Static ship positions (served as-is, no function call)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontanaflynn%2Fishormuzopenyet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmontanaflynn%2Fishormuzopenyet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontanaflynn%2Fishormuzopenyet/lists"}