This module is a rebundling of the model rocket motor data available on John Coker's excellent thrustcurve.org website ("TC") as a stand-alone JSON file. The data is an array of motor items consistent with TC's SearchResponse#results schema.
See also, the included TypeScript definitions.
In addition to the SearchResponse data, the following alterations have been made:
numbers are rounded to a precision of 4 digits.samples array containing the thrust data found in the TC /api/vi/download endpoint.samples data is normalized to insure the first data point is always [0, 0]For full details of how this data set is compiled, please refer to the build/build.js script in this repository.
npm i thrustcurve-db
yarn add thrustcurve-db
import MOTORS from 'thrustcurve-db';
const MOTORS = require('thrustcurve-db');
Note: Users running node may need to supply the --experimental-json-modules flag
const MOTORS = await fetch(
'https://cdn.jsdelivr.net/npm/thrustcurve-db@latest/thrustcurve-db.json'
).then(res => res.json());
// Find all J motors currently in production
MOTORS.filter(m => m.availability === 'regular' && m.impulseClass === 'J');
The data provided here is sourced from thrustcurve.org. Omissions and errors in rocket data should be directed there. Any systematic problems or suggestions for how the data here is presented may be reported here.