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

node-red-contrib-tractive

v1.0.0

Published

Node-RED palette for the Tractive GPS tracker API — monitor battery, location, and control LED/buzzer.

Readme

node-red-contrib-tractive

A Node-RED palette for the Tractive GPS tracker API. Monitor your pet's battery level, location, and history — and control LED and buzzer — directly from your flows.

Installation

Install via the Node-RED Palette Manager (search for node-red-contrib-tractive), or from the command line in your Node-RED data directory:

npm install node-red-contrib-tractive

Nodes

tractive-config

A configuration node that stores your Tractive account credentials. One config node per account — shared across all tractive-tracker nodes in your flow.

| Field | Description | |----------|-------------------------------------| | Email | Your Tractive account email | | Password | Your Tractive account password |

Authentication is performed automatically when the first operation runs.


tractive-tracker

Calls the Tractive API for a specific tracker. Configure the Tracker ID once (find it in the Tractive app under Settings → Device → Device ID) and select the operation.

Operations

| Operation | Description | |-------------------------|----------------------------------------------------------| | Get hardware | Battery level and charging state | | Get location | Latest GPS fix with coordinates and address | | Get history | Location history (requires msg.from and msg.to) | | Live tracking ON / OFF | Enable or disable 2.5-second position updates | | LED ON / OFF | Trigger the tracker's LED light | | Buzzer ON / OFF | Trigger the tracker's buzzer | | Get pets | List all pets on the account | | Get all trackers | List all trackers on the account |

Runtime overrides

| Property | Description | |-----------------|------------------------------------------------| | msg.trackerID | Overrides the Tracker ID set in the node | | msg.operation | Overrides the operation set in the node | | msg.from | Start timestamp in ms (Get history only) | | msg.to | End timestamp in ms (Get history only) |

Output

msg.payload contains the raw API response object.

Example — battery monitor

[inject every 5 min] → [tractive-tracker: getTrackerHardware] → [msg.payload.battery_level] → [display]

JavaScript library

The package also works as a standalone ESM library:

import tractive from 'node-red-contrib-tractive';

await tractive.connect('[email protected]', 'password');

const hw = await tractive.getTrackerHardware('YOUR_TRACKER_ID');
console.log(hw.battery_level); // e.g. 85

const location = await tractive.getTrackerLocation('YOUR_TRACKER_ID');
console.log(location.latlong); // e.g. [-33.86, 151.20]

All functions

// Account
getAccountInfo()
getAccountSubscriptions()
getAccountSubscription(subscriptionID)
getAccountShares()

// Pet
getPets()
getPet(petID)

// Tracker
getAllTrackers()
getTracker(trackerID)
getTrackerLocation(trackerID)
getTrackerHardware(trackerID)       // includes battery_level, charging_state
getTrackerHistory(trackerID, from, to)  // from/to are timestamps in ms

// Commands
liveOn(trackerID)
liveOff(trackerID)
LEDOn(trackerID)
LEDOff(trackerID)
buzzerOn(trackerID)
buzzerOff(trackerID)

Notes

  • Rate-limited requests (HTTP 4006) are automatically retried up to 3 times with a 2-second delay.
  • This package is not affiliated with or maintained by Tractive. Tractive is a registered trademark of Tractive GmbH.