@ranzwertig/hevy-client
v1.1.0
Published
A TypeScript client library for the Hevy API (https://api.hevyapp.com/docs)
Maintainers
Readme
hevy-client
An unofficial TypeScript client library for the Hevy API.
Disclaimer: This project is not affiliated with, endorsed by, or associated with Hevy in any way. It is an independent, community-driven open source project.
Installation
npm install @ranzwertig/hevy-clientUsage
import { HevyClient } from "@ranzwertig/hevy-client";Development
# Install dependencies
npm install
# Build
npm run build
# Lint
npm run lint
# Format
npm run formatTesting
Run unit tests:
npm testRun the Swagger/OpenAPI snapshot test (requires Playwright and network access):
npm run test:swaggerThe swagger test opens the Hevy API docs in a headless browser, extracts the OpenAPI spec, and compares it against a stored snapshot to detect API changes. To update the snapshot after an intentional API change:
npx vitest run --config vitest.swagger.config.ts --update-snapshotsContributing
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Make your changes
- Run linting and tests (
npm run lint && npm test) - Commit your changes (
git commit -m "Add my feature") - Push to the branch (
git push origin feature/my-feature) - Open a pull request
License
This project is licensed under the MIT License.
