LightyLauncher Documentation

Comprehensive documentation for LightyLauncher library.

Quick Navigation

🎯 Getting Started

  1. Main README - Quick start and installation

  2. Examples - Code examples with detailed explanations

  3. Architecture - Understand the system design

πŸ“š Core Guides

Guide
Purpose
Best For

Visual workflows for all operations

Understanding flow and process

Complete API reference

Finding available types and functions

System design and patterns

Understanding internals

Example walkthroughs

Learning by example

Documentation Structure

docs/
β”œβ”€β”€ README.md                 # This file
β”œβ”€β”€ sequence-diagrams.md      # Visual workflows
β”œβ”€β”€ reexports.md             # API reference
β”œβ”€β”€ architecture.md          # System design
β”œβ”€β”€ examples.md              # Example walkthroughs
└── img/                     # Images and diagrams

Guide Details

Sequence Diagrams

File: sequence-diagrams.md

Visual diagrams for:

  • Complete launch sequence

  • Authentication flows (Offline, Microsoft)

  • Installation process (parallel downloads)

  • Java management

  • Instance control

  • Console streaming

  • Event flow

  • Loader-specific sequences (Fabric, LightyUpdater)

When to use: Understanding how components interact and the order of operations.

Re-exports Reference

File: reexports.md

Complete reference of all types and functions re-exported by lighty-launcher:

  • Module organization

  • Type definitions

  • Function signatures

  • Import patterns

  • Usage examples

  • Links to detailed crate documentation

When to use: Finding what's available and how to import it.

Architecture

File: architecture.md

System architecture documentation:

  • Module overview and dependencies

  • Data flow diagrams

  • Design patterns (Builder, Trait-based, Event-driven, etc.)

  • Concurrency model

  • Error handling strategy

  • Platform support

  • Performance optimizations

  • Security considerations

When to use: Understanding the overall system design and implementation details.

Examples

File: examples.md

Detailed walkthroughs of all examples:

  • Example overview table

  • Running instructions

  • Code walkthroughs

  • Key concepts explained

  • Event types demonstrated

  • Common patterns

  • Troubleshooting

When to use: Learning by example and finding code snippets.

By Use Case

I want to...

Launch Vanilla Minecraft

  1. Run: cargo run --example vanilla --features vanilla

Use a Mod Loader (Fabric, Quilt, Forge)

  1. See how loaders merge: Sequence Diagrams - Fabric Loader

Track Progress with Events

  1. Check event types: Re-exports - Events Module

Manage Running Instances

  1. See instance lifecycle: Sequence Diagrams - Instance Control

Understand System Design

  1. See module dependencies: Architecture - Module Dependencies

  2. Check design patterns: Architecture - Design Patterns

Create Custom Authentication

Build a Custom Launcher UI

  1. Check Tauri integration: Re-exports - Tauri Module

Crate-Specific Documentation

Each crate has its own detailed documentation:

Core Crates

Feature Crates

Examples Directory

All examples are located in examples/:

  • vanilla.rs - Basic Vanilla launcher

  • fabric.rs - Fabric mod loader

  • quilt.rs - Quilt mod loader

  • neoforge.rs - NeoForge mod loader

  • forge.rs - Forge mod loader

  • forge_legacy.rs - Legacy Forge (1.7.10-1.12.2)

  • optifine.rs - OptiFine

  • lighty_updater.rs - Custom modpack server

  • with_events.rs - Complete event system demo

See Examples Guide for detailed walkthroughs.

Additional Resources

Community

Contributing

See CONTRIBUTING.mdarrow-up-right for contribution guidelines.

License

MIT License - see LICENSEarrow-up-right file for details.

Last updated