Station, service, and layout data for Singapore's rail network, plus records of disruptions, maintenance, and infrastructure issues.
The repository owns canonical data, shared packages, evidence ingestion, and static exports. mrtdown-site imports the exports and serves the runtime API.
Canonical records live in data/:
| Path | Contents |
|---|---|
station/ |
Stations, exits, and platform information. |
line/, service/, operator/ |
Rail lines, service patterns, and operators. |
town/, landmark/ |
Nearby places. |
public-holiday/ |
Singapore holiday calendars by year. |
issue/YYYY/MM/<issue_id>/ |
Issue metadata, source evidence, and impact events. |
schematic-map/system/ |
Schematic map rules and constraints. |
rights/source-registry.json |
Source rights and attribution rules. |
See the data guide for record conventions and source policies. External GTFS captures use a separate inspection and review workflow.
Use the Node.js version in .nvmrc, then install dependencies and validate the data:
npm ci
npm run build:packages
npm run data:validateThe CLI can list records, show an individual record, or inspect an issue's state:
node packages/cli/dist/index.js --data-dir data list station
node packages/cli/dist/index.js --data-dir data show station <id>
node packages/cli/dist/index.js --data-dir data issue state <id>See the CLI command reference for other commands.
- Run
npm run checkandnpm testbefore handing off changes. The packages and checks guide covers package boundaries and scoped commands. - Validate canonical data changes with
npm run data:validate. See the data guide for record layout and source policies. - Build static exports with
npm run pages:build. See the Pages export guide for publication and optional reviewed timetables. - Use the triage guide for evidence ingestion,
repairs, and regression replay. Model-dependent commands require
OPENAI_API_KEYand make paid calls.
Use the documentation index to find subject guides and the execution plan index to find current work.
See AGENTS.md for repository working rules.
MRTDown-authored data is CC-BY-4.0; code and documentation are MIT. Third-party material retains its upstream terms. See licenses and sources for attribution and source policies.