Skip to content

JackEcuyer/hevy-sdk

Repository files navigation

Hevy SDK

A TypeScript SDK for the Hevy API – compatible with Node.js, JavaScript frameworks, and browser environments.

Features

  • Fully typed API client for Hevy
  • Supports both ESM and CommonJS
  • Works in Node.js and browser environments
  • Includes helpers for workouts, users, and error handling
  • Built-in Zod validation for workout data

Installation

npm install hevy-sdk

Usage

Basic Example

import { HevyClient, HevyClientConfig, Workout } from "hevy-sdk";

const config: HevyClientConfig = { apiKey: "your-api-key" };
const client: HevyClient = new HevyClient(config);

// Get specific workout info
const workout: Workout = await client.workouts.getWorkout("workout-id");

Error Handling

The SDK throws rich error types:

API Reference

License

MIT

Releases

No releases published

Packages

 
 
 

Contributors