obsidian-lib 0.2.1

A library for reading and extracting files from Obsidian .obby plugin files
Documentation

obsidian-lib

Crates.io Documentation

A Rust library for reading and extracting files from Obsidian .obby plugin files.

Features

  • Read .obby file metadata
  • List all entries in an .obby file
  • Extract specific files from the archive
  • Handles both compressed and uncompressed entries
  • Convenience function for extracting plugin.json

Installation

Add this to your Cargo.toml:

[dependencies]
obsidian-lib = "0.1.0"

Usage

use obsidian_lib::{ObbyReader, extract_plugin_json};
use std::path::Path;

// Extract just plugin.json
let json = extract_plugin_json(Path::new("path/to/plugin.obby"))?;
println!("Plugin JSON: {}", json);

// Or work with the archive more generally
let mut reader = ObbyReader::open(Path::new("path/to/plugin.obby"))?;

// List all entries
println!("Available entries: {:?}", reader.list_entries());

// Extract specific entry
let data = reader.extract_entry("plugin.json")?;

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.