尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Real-time ferry departure tracker for Brisbane
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗A real-time ferry departure tracker for Brisbane's ferry network, allowing users to track services between any two ferry terminals. Built with React, Vite, and Tailwind CSS.
gtfs-realtime-bindings - For parsing GTFS protobuf datadate-fns & date-fns-tz - For time calculations and timezone handlingreact-leaflet - Interactive ferry position mapsclsx - For conditional stylingjszip - For processing GTFS schedule filespapaparse - For parsing CSV data from GTFSgit clone [repo-url]
cd brisbane-ferry-tracker
npm install
npm run dev
The app will be available at http://localhost:5173
Create a .env.local file for local development:
VITE_GTFS_API_BASE=https://gtfsrt.api.translink.com.au/api/realtime/SEQ/
npm i -g vercel
vercel --prod
Features:
The app includes serverless functions to handle CORS for the TransLink API.
GitHub Pages serves the main branch root so that the daily-generated schedule-data/latest.json is available on a CDN:
URL: https://thebnut.github.io/brisbane-ferry-tracker/schedule-data/latest.json
It is not a deployment of the app itself. Every environment (Vercel, the custom domains, and the iOS app) fetches its schedule from this URL.
npm run build
dist folder contains the static files ready for deployment to any static hosting service.Note: Without a CORS proxy, only schedule data will be available.
src/
├── components/ # React components
│ ├── Navigation.jsx # App header with stop selector
│ ├── StatusBar.jsx # Update status, filters, map & refresh
│ ├── DepartureBoard.jsx # Direction-specific departures
│ ├── DepartureItem.jsx # Individual ferry display
│ ├── FerryMap.jsx # Live ferry positions map
│ ├── FerryDetailsModal.jsx # Detailed ferry info modal
│ ├── StopSelectorModal.jsx # Terminal selection
│ └── ...
├── services/ # API and data services
│ ├── gtfsService.js # GTFS-RT data fetching
│ ├── staticGtfsService.js # Static schedule data
│ └── ferryData.js # Data filtering & merging logic
├── hooks/ # Custom React hooks
│ └── useFerryData.js # Ferry data management
├── utils/ # Constants and helpers
│ └── constants.js # Stop IDs, routes, config
└── App.jsx # Main app component
CLAUDE.md just points to itThe app uses a two-stage loading approach for optimal user experience:
The app combines multiple data sources for comprehensive coverage:
Pre-processed Schedule (Primary): Daily generated schedule data hosted on GitHub Pages
Real-time GTFS-RT: Shows live ferry positions and delays (only available for actively running services)
Static GTFS Schedule (Fallback): Full timetable data processed client-side if GitHub data unavailable
The app intelligently filters ferry services to show only those traveling between your selected terminals:
Key features:
The Brisbane Ferry Tracker uses a sophisticated data pipeline to deliver real-time ferry information:
TransLink APIs → Processing → Frontend Display
Schedule Data Pipeline:
Real-time Data Pipeline:
Progressive Loading Strategy:
For detailed architecture documentation, see app-architecture.md.
The app uses TransLink's GTFS-RT (General Transit Feed Specification - Realtime) API to fetch live ferry data. Key endpoints:
main - Production branch → Deploys to https://ferry.lifemap.au and https://www.brisbaneferry.comdevelop - Pre-production branch → Deploys to https://brisbane-ferry-tracker.vercel.appdevelop branchgit checkout main
git merge develop
git push
develop (git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)develop branchThis project is open source and available under the MIT License.
Schedule and real-time transit data is sourced from the TransLink SEQ GTFS feed, published by the State of Queensland (Department of Transport and Main Roads) under a Creative Commons Attribution 4.0 licence.
See docs/attribution.md for full attribution requirements and copy-paste snippets for web, mobile, and repository use.