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

vehk-axle

v2.0.0

Published

Official JavaScript/TypeScript SDK for Vehk Axle Fleet Management, GPS Tracking & Predictive Maintenance Platform

Readme

Vehk Axle JavaScript/TypeScript SDK

Official JavaScript/TypeScript SDK for the Vehk Axle Fleet Management, GPS Tracking & Predictive Maintenance Platform.

npm version License: MIT

Installation

npm install vehk-axle
# or
yarn add vehk-axle

What's New in v2.0.0

  • GPS Tracking API - Send and retrieve real-time device location data
  • Device Management API - List devices and get fleet-wide locations
  • Scoped Permissions - Granular API key scopes (telemetry:write, tracking:read, etc.)
  • Enforced Rate Limits - Per-key sliding window rate limiting (default 60 req/min)
  • New Types - TrackingData and DeviceLocation TypeScript interfaces

Quick Start

import { VehkClient } from 'vehk-axle';

const client = new VehkClient('vehk_your_api_key');

// Send telemetry
await client.telemetry.send({
  vehicle_id: 'VH-001',
  sensor_data: { speed: 65, rpm: 2500, coolant_temp: 92 }
});

// Send GPS tracking data from a device
await client.tracking.send({
  device_id: 'dev-abc123',
  latitude: 12.9716,
  longitude: 77.5946,
  speed: 45.2,
  ignition: true
});

// Get ML prediction
const prediction = await client.predictions.get('VH-001', {
  speed: 65,
  rpm: 2500
});
console.log(`Health Score: ${prediction.health_score}%`);

Features

Telemetry

// Single telemetry
await client.telemetry.send({
  vehicle_id: 'VH-001',
  sensor_data: { speed: 65, rpm: 2500 },
  timestamp: '2026-03-26T10:00:00Z',
  location: { lat: 12.97, lng: 77.59 }
});

// Batch telemetry (up to 100)
const result = await client.telemetry.sendBatch([
  { vehicle_id: 'VH-001', sensor_data: { speed: 65 } },
  { vehicle_id: 'VH-002', sensor_data: { speed: 70 } },
]);
console.log(`Processed: ${result.records_processed}`);

GPS Tracking (v2.0)

// Send tracking data from a configured device
await client.tracking.send({
  device_id: 'dev-abc123',
  latitude: 12.9716,
  longitude: 77.5946,
  speed: 45.2,
  heading: 180,
  ignition: true,
  event: 'periodic'
});

// Batch tracking (up to 100)
await client.tracking.sendBatch([
  { device_id: 'dev-1', latitude: 12.97, longitude: 77.59, speed: 45 },
  { device_id: 'dev-2', latitude: 13.01, longitude: 77.61, speed: 30 },
]);

// Get all device locations (real-time fleet map)
const locations = await client.tracking.locations();
for (const loc of locations) {
  console.log(`${loc.device_id}: ${loc.latitude}, ${loc.longitude}`);
}

// Get a single device location
const loc = await client.tracking.location('dev-abc123');
console.log(`Speed: ${loc.speed} km/h`);

Device Management (v2.0)

// List all devices
const devices = await client.devices.list();

// Filter by status
const active = await client.devices.list('active');

Predictions

const prediction = await client.predictions.get('VH-001', {
  speed: 65, rpm: 2500, coolant_temp: 92
});

console.log(`Health: ${prediction.health_score}%`);
console.log(`Risk: ${prediction.risk_level}`);

// List recent predictions
const recent = await client.predictions.list('VH-001', 10);

Vehicles

const vehicles = await client.vehicles.list();
for (const v of vehicles) {
  console.log(`${v.vehicle_id}: ${v.health_score}%`);
}

API Scopes (v2.0)

| Scope | Description | |-------|-------------| | telemetry:write | Send telemetry data | | telemetry:read | Read telemetry history | | tracking:write | Send GPS tracking data | | tracking:read | Read device locations | | devices:read | List devices | | predict | Request ML predictions | | vehicles:read | List vehicles |

Configuration

// Custom base URL (staging / private deployment)
const client = new VehkClient('vehk_your_key', 'https://api-staging.vehk.in');

Error Handling

try {
  const prediction = await client.predictions.get('VH-001', { speed: 65 });
} catch (err: any) {
  // err.message includes status code: "[429] Rate limit exceeded"
  console.error(err.message);
}

TypeScript Types

All request/response types are exported:

import {
  TelemetryData,
  TrackingData,
  DeviceLocation,
  Prediction,
  Vehicle,
  BatchResult
} from 'vehk-axle';

Requirements

  • Node.js 14+ or modern browser environment

Getting Your API Key

  1. Log in to Vehk Dashboard
  2. Go to Settings > API Keys
  3. Click "Generate New Key"
  4. Copy the key (shown only once)

Support

License

MIT License - see LICENSE for details.