Komga SDK
Build powerful applications for managing comics, manga, and ebooks with a type-safe TypeScript client.Type-Safe API
Full TypeScript support with autocompletion and compile-time type checking. Know your data structure before runtime.
Runtime Validation
Zod schemas validate all API responses. Catch mismatches between expected and actual data immediately.
Domain Services
High-level services for Books, Series, and Libraries. Write less boilerplate, focus on your app logic.
Flexible Auth
Support for Basic Auth, API Keys, and Bearer tokens. Secure your connections your way.
What is Komga?
Komga is a media server for comics, manga, BDs, magazines, and eBooks. It organizes your digital library, manages metadata, and serves content to readers. Komga SDK provides a modern TypeScript client to interact with the Komga API programmatically.What you get
- Type Safety
- Validation
- Interceptors
- Error Handling
Full TypeScript coverage means:
- Autocomplete in your IDE
- Compile-time error catching
- Inline documentation
- Refactoring support
Choose your integration style
Domain services (recommended)
Use high-level services that validate responses and expose friendly methods.Direct API functions
Call low-level endpoints directly for full API coverage and advanced use cases.Typical workflow
API Coverage
This SDK covers Komga API v1.24.1 with:- 130 endpoint paths
- 165 operations
- 100% coverage of documented endpoints
- All 6 deprecated endpoints properly marked
Requirements
- Runtime with Fetch and Web Crypto (Node 18+ or modern browsers)
- Komga server (API v1.24.1)
- TypeScript 5.0+ (recommended)
Next steps
Quickstart
Install the SDK and make your first request in under 5 minutes.
Authentication
Configure Basic Auth, API keys, or Bearer tokens.
Domain Services
Learn about BookService, SeriesService, and LibraryService.