尚未检测到更新。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.