Skip to content
Sponsor

curseforge-js ​

Enumerations ​

EnumerationDescription
CoreApiStatusVisibility of a game's API.
CoreStatusApproval/lifecycle status of a game, category, or other core entity.
FileRelationTypeHow a file relates to another file it depends on.
FileReleaseTypeThe release type of a mod file.
FileStatusThe processing/publishing status of a mod file.
GameIdGame ids on CurseForge, as returned by GamesApi.list.
GameVersionStatusApproval status of a game version.
GameVersionTypeStatusStatus of a game version type.
HashAlgoHashing algorithm used for a FileHash.
ModLoaderInstallMethodInstall method used by a Minecraft mod loader version.
ModLoaderTypeA Minecraft mod loader kind.
ModsSearchSortFieldField to sort mod search results by.
ModStatusThe approval status of a mod.

Classes ​

ClassDescription
CategoriesApiAPI namespace for mod categories.
CurseForgeClientClient for the CurseForge API.
CurseForgeClientCoreLow-level HTTP client used internally by all API namespace classes.
CurseForgeErrorError thrown for request failures, timeouts, and CurseForge API errors.
FilesApiAPI namespace for mod files.
FingerprintsApiAPI namespace for matching mod files by their Murmur2 fingerprints.
GamesApiAPI namespace for games.
MinecraftApiAPI namespace for Minecraft-specific game version and mod loader data.
ModsApiAPI namespace for mods.
UsersApiAPI namespace for users.

Interfaces ​

InterfaceDescription
CategoryA mod category or class.
CurseForgeClientOptionsOptions for creating a CurseForgeClient.
CurseForgePaginatedResponseEnvelope returned by paginated CurseForge endpoints.
CurseForgeResponseEnvelope returned by non-paginated CurseForge endpoints.
FeaturedModsResponseFeatured, popular, and recently updated mods.
FileA file (version) of a mod.
FileDependencyA dependency of a mod file on another mod.
FileHashA hash of a mod file.
FileIndexCondensed index entry describing one of a mod's latest files.
FileModuleA submodule of a mod file, identified by its own fingerprint.
FingerprintFuzzyMatchA fuzzy fingerprint match for a mod file.
FingerprintFuzzyMatchResultResult of fuzzy-matching a list of folder fingerprints against CurseForge's file index.
FingerprintMatchAn exact fingerprint match for a mod file.
FingerprintsMatchesResultResult of matching a list of fingerprints against CurseForge's file index.
FolderFingerprintA folder of mod files identified together by their fingerprints, for fuzzy matching.
GameA game available on CurseForge.
GameAssetsIcon, tile and cover art for a game.
GameSupportedFeaturesFeature flags describing what a game supports.
GameVersionA single named/sluggable version of a game (used by the v2 versions endpoint).
GameVersionsByTypeGame versions grouped by version type (v1 form, plain version strings).
GameVersionsByType2Game versions grouped by version type (v2 form, full version objects).
GameVersionTypeA version type belonging to a game (e.g. Minecraft game versions vs. Minecraft mod loaders).
GetCategoriesOptionsQuery parameters for CategoriesApi.list.
GetFeaturedModsRequestBodyRequest body for ModsApi.getFeatured.
GetFingerprintMatchesRequestBodyRequest body for FingerprintsApi.getMatches.
GetFuzzyMatchesRequestBodyRequest body for FingerprintsApi.getFuzzyMatches.
GetMinecraftModLoadersOptionsQuery parameters for MinecraftApi.getModLoaders.
GetMinecraftVersionsOptionsQuery parameters for MinecraftApi.getVersions.
GetModDescriptionOptionsQuery parameters for ModsApi.getDescription.
GetModFilesOptionsQuery parameters for FilesApi.list.
GetModFilesRequestBodyRequest body for FilesApi.getFiles.
GetModsByIdsListRequestBodyRequest body for ModsApi.getMods.
MinecraftGameVersionA single Minecraft game version.
MinecraftModLoaderIndexA condensed entry describing the latest/recommended version of a Minecraft mod loader.
MinecraftModLoaderVersionFull details for a specific Minecraft mod loader version.
ModA mod (project) on CurseForge.
ModAssetAn image asset (logo or screenshot) belonging to a mod.
ModAuthorAn author of a mod.
ModLinksRelevant external links for a mod.
PaginationPagination metadata included in paginated API responses.
PaginationOptionsCommon query parameters for paginated endpoints.
SearchModsOptionsQuery parameters for ModsApi.search.
SortableGameVersionMetadata used for sorting files by game version.
UserA CurseForge user.

Type Aliases ​

Type AliasDescription
GetGamesOptionsQuery parameters for GamesApi.list.
QueryValueA value that can be serialized as a URL query parameter.
SortOrderSort direction for mod search results.

Functions ​

FunctionDescription
resolveAvatarUrlResolves a User.avatarUrl template into a fetchable image URL by substituting its {0} size placeholder, a legacy artifact of CurseForge's Twitch-based avatar system.

References ​

default ​

Renames and re-exports CurseForgeClient