Skip to content
RightTrackDB: sql.js implementation
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Right Track Database (sql.js)

node module: right-track-db-sqljs
GitHub repo: right-track/right-track-db-sqljs

This Node module provides an implementation of the abstract RightTrackDB Class using the sql.js module. This Class is used to query the SQLite Right Track Database containing the GTFS and additional Right Track data. The SQLite database is generated using the right-track-db-build module.


This module does not directly require the sql.js module. However, the web-accessible path to the Web Worker version of sql.js must be provided to the Right Track Database import statement.

const RightTrackDB = require("right-track-db-sqljs")("/js/worker.sql.js");

When creating a new instance of a RightTrackDB, the Right Track Agency configuration and a Uint8Array representing the database data must be passed to the constructor.

let db = new RightTrackDB(agencyConfig, dataArray);

For documentation on this implementation of RightTrackDB, see the /doc/ directory in this repository or online at

For documentation on the abstract RightTrackDB Class, see the source code available at or its documentation at

You can’t perform that action at this time.