{"id":50666857,"url":"https://github.com/angelgc95/ride-pressure-widget","last_synced_at":"2026-06-08T07:05:50.601Z","repository":{"id":349447108,"uuid":"1202364595","full_name":"angelgc95/ride-pressure-widget","owner":"angelgc95","description":"City-level mobility pressure signal built from live data and transparent provider coverage.","archived":false,"fork":false,"pushed_at":"2026-04-06T00:19:20.000Z","size":153,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T02:24:27.287Z","etag":null,"topics":["market-signal","mobility","nextjs","sqlite","typescript","weather-data"],"latest_commit_sha":null,"homepage":"https://skill-deploy-duvu5vbg0d-codex-agent-deploys.vercel.app","language":"Swift","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/angelgc95.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-06T00:09:04.000Z","updated_at":"2026-04-06T00:19:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/angelgc95/ride-pressure-widget","commit_stats":null,"previous_names":["angelgc95/ride-pressure-widget"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/angelgc95/ride-pressure-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelgc95%2Fride-pressure-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelgc95%2Fride-pressure-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelgc95%2Fride-pressure-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelgc95%2Fride-pressure-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angelgc95","download_url":"https://codeload.github.com/angelgc95/ride-pressure-widget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angelgc95%2Fride-pressure-widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34051794,"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-08T02:00:07.615Z","response_time":111,"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":["market-signal","mobility","nextjs","sqlite","typescript","weather-data"],"created_at":"2026-06-08T07:05:11.984Z","updated_at":"2026-06-08T07:05:50.596Z","avatar_url":"https://github.com/angelgc95.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ride Pressure Widget\n\n![Ride Pressure cover](docs/assets/cover.svg)\n\nCity-level mobility pressure signal for taxis and ride-hailing demand.\n\nPublic demo link is intentionally omitted until a stable deployment is published.\n\n## Problem\n\nRoute quote tools answer the price of one trip. They do not tell a rider, operator, or city observer whether the local ride market is broadly favorable, normal, or under pressure right now.\n\n## Solution\n\nRide Pressure Widget turns live weather, geolocation, route-friction observation, and transparent provider support states into a city-level pressure view. It is designed as a widget-like product surface, not a fare estimator.\n\n## Key Features\n\n- Manual city search plus automatic location detection\n- City-level market classification: favorable, normal, or rough\n- Weather, traffic, and demand breakdowns behind the score\n- Provider support states that stay neutral when live pricing is not trustworthy\n- Persisted observed snapshots in SQLite for recent city baselines\n- Mobile-first `/widget` route and installable web-app metadata\n- Native SwiftUI iPhone app and WidgetKit companion project\n\n## Data Sources\n\n- Open-Meteo for current and forecast weather\n- Nominatim for reverse geocoding\n- ipwho.is for IP-based city fallback\n- Public Uber route probes for route-friction observation\n- SQLite via `better-sqlite3` for local snapshot persistence\n\n## Data Integrity\n\n### What is real\n\n- City search and reverse geocoding\n- Current and forecast weather\n- Real observed snapshots written to SQLite\n- Uber public-web route timing signals when probes succeed\n\n### What is inferred\n\n- Hourly and daily outlook curves\n- Demand pressure layering when direct provider pricing is limited\n\nIf a city falls back to inferred signals, the UI says so instead of pretending direct provider coverage exists.\n\n## Stack\n\n- Next.js 16, React 19, TypeScript\n- Tailwind CSS 4\n- Recharts\n- SQLite via `better-sqlite3`\n\n## Architecture\n\n- `src/app/api/` exposes search, reverse geocoding, and market payload endpoints.\n- `src/lib/server/sources/` handles weather and geocoding.\n- `src/lib/server/providers/` contains provider adapters.\n- `src/lib/server/market.ts` computes pressure, freshness, and chart outputs.\n- `src/lib/server/snapshots.ts` stores and reads local observed baselines.\n- `src/components/market-widget.tsx` and `src/components/pressure-chart.tsx` drive the main UI.\n\n## Run Locally\n\n```sh\nnpm install\nnpm run dev\n```\n\nOpen `http://localhost:3000` for the full app or `http://localhost:3000/widget` for the compact widget view.\n\nThe app creates a local SQLite file at `data/ride-pressure.sqlite`.\n\n## Native iPhone App\n\n- `ios/RidePressureIOS` contains the SwiftUI app and WidgetKit extension.\n- The iPhone project uses the same real-data posture as the web app.\n- Generate the Xcode project with `xcodegen generate` inside `ios/RidePressureIOS`.\n- Local build verification on this machine still requires the Xcode license to be accepted.\n\n## Current Status\n\n- Build passes for the web application\n- Provider support is intentionally conservative and explicit\n- Strongest coverage currently comes from weather plus Uber route-friction observation\n\n## Limitations\n\n- This build does not claim reliable live price access for Bolt, Cabify, or FREE NOW.\n- Some cities will fall back to weather plus inferred demand until more provider adapters are added.\n- The charts are outlooks built from current signals, not fabricated historical archives.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangelgc95%2Fride-pressure-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangelgc95%2Fride-pressure-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangelgc95%2Fride-pressure-widget/lists"}