Cycle Tracker

io.github.ThisisBankolev1.0.0更新於 Oct 9, 2026

Live UK bike-share availability: nearby bikes and stations, popular stations, 90-day history.

已驗證Streamable HTTP可網頁執行Location & LifestyleData & Analytics

概覽

AI 產生的概覽

讓助理查詢英國共享單車即時可用情況、附近車輛與站點、熱門站點以及 90 天歷史資料。

功能
提供英國共享單車的即時可用資料,包括附近車輛與站點、熱門站點以及 90 天歷史。其底層儀表板依站點顯示可用量、使用率與容量,並在地圖上顯示站點位置與車輛分布,還提供熱門站點分析。定時工作每 10 分鐘把曼徹斯特 Beryl GBFS 資料來源快照寫入資料庫,API 與前端同源提供。
適用情境
當助理需要涵蓋區域內目前的共享單車可用情況或站點熱度時適用,例如回答附近車輛、站點容量或過去 90 天使用趨勢的問題。不適用於通用地圖、路線規劃或其他交通方式。
執行需求
遠端 streamable HTTP 端點 中的本機開發與部署說明(Node.js 與 npm、具備 Workers 和 D1 的 Cloudflare 帳號)僅適用於自行執行該專案,與使用託管伺服器無關。
安裝前請注意
README 描述的後端會把第三方 GBFS 資料來源定時快照到資料庫,自行部署還需要 Cloudflare 帳號;MCP 端點本身未暴露憑證、付款或寫入操作。清單未宣告任何身分驗證,因此能存取該端點的人都可以查詢。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Cycle Tracker,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "cycle-tracker": {
      "type": "http",
      "url": "https://cycle.arrakis.house/mcp"
    }
  }
}

README

Starling Bank Bikes Manchester

Starling Bank Bikes Manchester is a dashboard that monitors bike-sharing stations in Manchester in real time and reports analytics about them. The project includes a web frontend and a backend API.

Features

  • Live bike and station stats: View availability, utilization, and capacity for each station.
  • Interactive map: See station locations and bike distribution.
  • Popular-station analytics: Find the most-used and highest-capacity stations.
  • Modern UI: Use a responsive interface built with React, Tailwind CSS, and Radix UI.

Project structure

- bike-sharing-dashboard/   # Frontend (React, TypeScript, Vite)  ├── src/  │   ├── components/  │   │   ├── dashboard/         # Dashboard features (PopularStationAnalytics, StatsCards, InteractiveMap)  │   │   ├── home/              # Home page  │   │   └── ui/                # UI primitives (Sheet, Tabs, Card, Table)  │   ├── lib/                   # Utility functions  │   ├── App.css, index.css     # Styles  │   └── main.tsx               # App entry point  ├── index.html                 # Root HTML  ├── vite.config.ts             # Vite config  └── tailwind.config.js         # Tailwind config
- worker/                   # Backend (Cloudflare Worker, TypeScript, Hono, D1)  ├── src/  │   ├── index.ts              # Hono app, CORS, static assets, cron entry  │   ├── snapshot.ts           # GBFS feed -> D1 snapshot job (10-min cron)  │   └── routes/               # API routes (bikes, stations, analytics)  ├── migrations/               # D1 schema migrations  └── wrangler.jsonc            # Worker + D1 + cron + custom-domain config

Get started

Prerequisites

  • Node.js and npm
  • A Cloudflare account with Workers and D1, for deployment

Develop locally

To run the backend (Worker plus local D1), enter the following commands:

sh
cd workernpm installnpm run migrate:local   # first time onlynpx wrangler dev        # API on http://localhost:8787

To run the frontend, enter the following commands:

sh
cd bike-sharing-dashboardnpm installnpm run dev             # UI on http://localhost:5173, calls the local worker

Deploy

The app runs at cycle.arrakis.house. When you push a change to main that touches worker/ or bike-sharing-dashboard/, the .github/workflows/deploy.yml workflow builds the frontend, applies the D1 migrations, and runs wrangler deploy. The Worker serves the static frontend and the /api/v1 API from the same origin. A 10-minute cron job snapshots the Manchester Beryl General Bikeshare Feed Specification (GBFS) feed into D1.

Technologies used

  • Frontend: React, TypeScript, Tailwind CSS, Vite, Radix UI
  • Backend: Cloudflare Workers, Hono, D1 (SQLite), TypeScript

Author

ThisisBankole

來源:README.md,提交 e08c6e6

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026