Skip to content

FMClient

Zero-dependency TypeScript client for the Last.fm API with normalized responses and rate limiting.

Zero-Dependency Core

Fully typed TypeScript client for the Last.fm API with no external runtime dependencies.

Normalized Responses

Every method returns parsed, consistently shaped, fully typed responses instead of raw API payloads.

Built-In Rate Limiting

Configurable token-bucket limiter with queueing and backoff for both rate-limit and service-outage scenarios.

Resilient Networking

Automatic retries with configurable strategies for timeouts, rate limits, and outages, backed by request abort timeouts.

Batch Scrobbling

Scrobble single tracks or submit batches in one call, with per-batch success counts on partial failure.

Event-Driven Monitoring

Emits events for failed requests and expired sessions so you can hook in your own logging or alerting.