Plan and preview train connections using the iRail API for NMBS/SNCB data.
nmbs-planner is a small Raycast extension that fetches train connection information (departure, arrival, duration, platform, and intermediate stops) and presents it in a compact list/detail view.
trainride) with from and to arguments.https://developers.raycast.com/basics/contribute-to-an-extension#get-source-code
npm install
npm run dev
npm run build
You can also run linting and type checks with:
npm run lint
npm run type-check
This repo defines a Raycast command named trainride. The command accepts two arguments:
from: origin station (text)to: destination station (text)Example (in Raycast): run the Trainride command and enter from=Brussels and to=Antwerp.
https://api.irail.be/.https://www.belgiantrain.be/nl (NMBS Dutch/French site)package.json — Raycast extension metadata and scriptssrc/utils/index.ts — small wrapper that calls the iRail connections endpointsrc/trainride.tsx — Raycast UI component that renders resultssrc/types/index.ts — TypeScript interfaces for the API responseIf you'd like to contribute, open an issue or a pull request. Follow the existing code style and run lint/type-check before submitting changes.
This project is licensed under the MIT License (see package.json for metadata).
Author information is available in package.json.