
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
right-track-server
Advanced tools
node module: right-track-server
GitHub repo: right-track/right-track-server
This module creates a RESTful API Server for accessing Right Track commuter train schedules and real-time status information.
The following features are supported by the API Server:
Documentation about the Server endpoints can be found in the following locations:
In order to provide agency-specific information (GTFS data, real-time information, etc), at least one Right Track Agency must be installed on the same machine as the API Server and must be referenced in the server configuration file.
For a list of supported agencies, see the list of Supported Agencies in the right-track-agency project.
A MySQL database is required to store User information (such as registration
information, sessions, and favorites), client information (such as API access
levels), and app and message information. See the included rt_api.sql file
for the database schema.
The MySQL server can be accessed locally on the same machine as the API server or remotely with the proper network and access settings.
Install the Right Track API Server globally via npm:
npm install -g right-track-server
This will install the executable right-track-server into your $PATH.
Use npm to install one or more Right Track Agencies:
npm install -g right-track-agency-mnr
npm install -g right-track-agency-lirr
It is recommended to install these globally or as dependencies in the
node_modules directory within the right-track-server project. That way
the agency modules can be referenced by name in the server configuration file.
Optionally, you can download the projects' repositories and reference the agencies by directory location in the server configuration file.
Create a new MySQL database named rt_api. Then, use the rt_api.sql file
to create the necessary tables within the database.
Additionally, you should create a new MySQL user that has privileges for just
the rt_api database and just SELECT privileges for the clients table.
To add your specific configuration variables to the server, create a new json file with the properties that will need to be overridden from their defaults:
Most likely, this will include the MySQL's host, username and password as well
as the require locations for supported Right Track Agencies.
An example my_server.json:
{
"database": {
"host": "127.0.0.1",
"username": "myMySQLUser",
"password": "myMySQLPassword"
},
"agencies": [
{
"require": "right-track-agency-mnr",
"config": "/optional/agency/config.json"
},
{
"require": "./path/to/right-track-agency-lirr"
}
],
"transit": [
{
"require": "right-track-transit-mta"
}
]
}
This configuration file will be merged with the default configuration, overriding existing properties, concatenating arrays and appending new properties. Relative paths in the configuration file will be read relative to the location of the configuration file.
Once the Server has been properly configured, use the right-track-server
executable to start the server:
right-track-server ./my_server.json
The full usage of the right-track-server executable is:
Right Track API Server
Module: right-track-server
Version: 1.1.0
--------------------------
Usage:
right-track-server [--option] config...
options:
--config|-c Display the configuration properties
If a config file is provided, display the merged configuration.
--help|-h Display this usage information
--version|-v Display the API Server version (from package.json)
config:
Path to additional server configuration file(s)
FAQs
Right Track Server
We found that right-track-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.