npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@thrustcurve/api1

v1.1.0

Published

TypeScript client for the ThrustCurve.org API

Readme

ThrustCurve.org API Client

A TypeScript client for the ThrustCurve.org API. This client provides type-safe access to the ThrustCurve.org motor and simulator file database.

For details, see the API documentation.

Installation

npm install @thrustcurve/api1

Usage

First, import and instantiate the API client:

import { ThrustCurveAPI } from '@thrustcurve/api1';

const api = new ThrustCurveAPI();

Examples

Motor Metadata

// Get metadata for all motors
const metadata = await api.metadata();

// Get metadata for motors that match the criteria
const filteredMetadata = await api.metadata({
  manufacturer: 'Estes',
  impulseClass: 'C',
  type: 'SU'
});

Search Motors

const searchResults = await api.searchMotors({
  manufacturer: 'Estes',
  impulseClass: 'C',
  diameter: 18,
  type: 'SU',
  availability: 'regular'
});

Download Motor Data

const motorData = await api.downloadMotorData({
  motorIds: ['5f4294d20002310000000015'],
  format: 'RASP',
  data: 'both'
});

Saved Rockets

// Get rockets from account
const rockets = await api.getRockets({
  username: '[email protected]',
  password: 'password'
});

// Save rockets to account
const savedRockets = await api.saveRockets({
  username: '[email protected]',
  password: 'password',
  rockets: [{
    name: 'Alpha III',
    bodyDiameterM: 0.025,
    mmtDiameterMm: 18,
    mmtLengthMm: 70,
    weightKg: 0.045,
    cd: 0.25,
    guideLengthM: 1.0
  }]
});

Motor Recommendations

const recommendations = await api.motorGuide({
  rocket: {
    name: 'Alpha III',
    bodyDiameterM: 0.025,
    mmtDiameterMm: 18,
    mmtLengthMm: 70,
    weightKg: 0.045,
    cd: 0.25,
    guideLengthM: 1.0
  },
  manufacturer: 'Estes',
  type: 'SU',
  availability: 'regular'
});

Error Handling

The API client throws errors for non-200 responses. You should wrap API calls in try/catch blocks:

try {
  const data = await api.searchMotors({ /* ... */ });
} catch (error) {
  console.error('API request failed:', error);
}

API Reference

The client provides the following methods:

  • metadata(params?: MetadataRequest): Get metadata about motors
  • searchMotors(criteria: SearchRequest): Search for motors
  • downloadMotorData(request: DownloadRequest): Download motor data files
  • getRockets(credentials: GetRocketsRequest): Get saved rockets
  • saveRockets(request: SaveRocketsRequest): Save rockets
  • motorGuide(request: MotorGuideRequest): Get motor recommendations

See the TypeScript type definitions for detailed parameter and response types and for details, see the API documentation.

License

This software is licensed under the ISC license; see LICENSE for more info.