Skip to content

modrinth-ts/lib

Repository files navigation

@modrinth-ts/lib

TypeScript client for Labirinth, Modrinth's REST API

⬇️ Installing

npm install @modrinth-ts/lib
bun add @modrinth-ts/lib
pnpm add @modrinth-ts/lib
yarn add @modrinth-ts/lib

📦 Importing

🧩 SDK

This is the main entry point you should use.

import * as modrinth from '@modrinth-ts/lib';

🤝 Underlying client

Use this only when configuring authentication.

import { client } from '@modrinth-ts/lib/client';

Important

Refer to the official Labirinth documentation for usage.

Important

Refer to the @hey-api/client-fetch documentation for authentication setup.

Note

The library version matches Labirinth's version at the time of syncing, except for the first one.

Note

This client is generated using @hey-api/openapi-ts - consider giving them a star ⭐

About

TypeScript client for Labirinth, Modrinth's REST API

Resources

License

Stars

Watchers

Forks