How mannuelf/lastfm-nodejs-client works
LastFm NodeJs client is a typed TypeScript wrapper around the Last.fm API. Callers create a client, select an exposed namespace method (and method-name constant), invoke an operation, and receive a typed API response; authenticated writes additionally require a session key. The graph groups the documented API capabilities and shows the shared request/signing layer. Some endpoint implementations were not sampled, so their internal links are omitted; capability coverage follows the README and client exports.
Main entry points: index.ts Client facade · request.ts HTTP request · artist Artist operations · auth Session exchange
Components 19
Client entry
- Client facade
src/index.ts - Method names
src/method.ts
API capabilities
- Album operations
src/album - Artist operations
src/artist - Track operations
src/track - Authentication
src/auth.ts - Session exchange
src/auth - Charts and discovery
src/chart - Geographic charts
src/geo - Tag operations
src/tag - Artist library
src/library - User history and charts
src/getTopArtists.ts
Request transport
- HTTP request
src/request.ts - Option builder
src/createOptions.ts - MD5 signing
src/md5.ts
Configuration and types
- API configuration
src/config.ts - Response types
src/lastfm.types.ts
Other components
- Client caller
- Last.fm API
Connections 24
- Client caller → Client facade: creates client
- Client facade → Method names: exposes names
src/index.ts - Client facade → Album operations: exposes operations
src/index.ts - Client facade → Artist operations: exposes operations
src/index.ts - Client facade → Track operations: exposes operations
src/index.ts - Client facade → Authentication: exposes methods
src/index.ts - Client facade → Session exchange: exposes sessions
src/index.ts - Client facade → Charts and discovery: exposes charts
src/index.ts - Client facade → Geographic charts: exposes charts
src/index.ts - Client facade → Tag operations: exposes operations
src/index.ts - Client facade → Artist library: exposes operations
src/index.ts - Client facade → User history and charts: exposes legacy methods
src/index.ts - Client caller → Artist operations: invokes methods
- Client caller → Method names: selects method
- Artist operations → HTTP request: sends query
src/artist/search.ts - Album operations → HTTP request: sends query
src/album/search.ts - Charts and discovery → Option builder: builds options
src/chart/topArtists.ts - Authentication → Option builder: builds options
src/auth.ts - Session exchange → HTTP request: sends signed request
src/auth/getMobileSession.ts - HTTP request → MD5 signing: generates signature
src/request.ts - HTTP request → API configuration: reads settings
src/request.ts - HTTP request → Last.fm API: sends HTTP request
src/request.ts - Artist operations → Response types: types responses
src/artist/search.ts - Session exchange → API configuration: reads secret
src/auth/getMobileSession.ts