| Crates.io | obsidian-lib |
| lib.rs | obsidian-lib |
| version | 0.2.1 |
| created_at | 2024-12-31 04:19:51.869066+00 |
| updated_at | 2025-01-01 05:46:27.224674+00 |
| description | A library for reading and extracting files from Obsidian .obby plugin files |
| homepage | |
| repository | https://github.com/0xnim/obsidian-lib |
| max_upload_size | |
| id | 1499734 |
| size | 2,127,935 |
A Rust library for reading and extracting files from Obsidian .obby plugin files.
.obby file metadata.obby fileplugin.jsonAdd this to your Cargo.toml:
[dependencies]
obsidian-lib = "0.1.0"
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")?;
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.