Skip to main content
Theseus is a Rust library that provides utilities for launching Minecraft, creating Modrinth modpacks, and managing Minecraft instances. It’s the core library powering the Modrinth App.

Installation

Add Theseus to your Cargo.toml:
For Tauri integration:

Features

Theseus supports the following cargo features:
  • cli - Enables CLI progress indicators with indicatif
  • tauri - Enables Tauri-specific integrations

Library Overview

Theseus provides a comprehensive API for:
  • Profile Management - Create, edit, and manage Minecraft instances
  • Mod Installation - Install mods from Modrinth or local files
  • Pack Management - Import and export .mrpack files
  • Minecraft Launching - Launch Minecraft with proper authentication and configuration
  • API Integration - Full integration with Modrinth’s API
  • State Management - Persistent state management with SQLite

Core Modules

State Module

The State is the central coordinator for all Theseus operations:

Profile Module

Profiles represent Minecraft instances:

Creating a Profile

Create a new Minecraft instance:

Profile Fields

Mod Loaders

Editing a Profile

Modify an existing profile:

Installing Minecraft

Install or repair a profile’s Minecraft installation:

Installing Mods

Managing Mods

Launching Minecraft

Process Management

Pack Management

Installing a Modpack

Exporting a Modpack

Authentication

Minecraft Authentication

Modrinth Authentication

Settings Management

Settings Fields

Java Runtime Management

Metadata and Cache

Fetching Minecraft Metadata

Cache Management

Error Handling

Theseus uses a Result type with a custom error enum:

Logging

Initialize Theseus logging:

Example: Complete Launcher Flow