Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ragaeeb/shamela/llms.txt
Use this file to discover all available pages before exploring further.
Function Signature
Description
Retrieves the complete master dataset as a JavaScript object, including version information. The master database contains comprehensive information about all books, authors, and categories available in the Shamela library. This convenience function downloads the master database archive, builds an in-memory SQLite database, and returns structured data for immediate consumption alongside the version number of the snapshot.Parameters
This function takes no parameters.Returns
Returns a Promise that resolves to aMasterData object:
Array of all authors in the Shamela library
Array of all books in the Shamela library
Array of all categories in the Shamela library
Version number for the downloaded master database
Example
Error Handling
Throws an error when:- Download fails
- Expected tables are missing from the master database
- Database operations fail
- Network request fails
Related
- denormalizeBooks() - Transform master data to denormalized format
- downloadMasterDatabase() - Download master database to file
- getMasterMetadata() - Get master database metadata
- getCoverUrl() - Generate book cover URLs