#archive #user-input #flashpoint #webgames

flashpoint-archive

Library to access Flashpoint Archive's database and misc related functions

39 releases (10 breaking)

new 0.11.2 Feb 15, 2025
0.10.3 Feb 6, 2025
0.9.1 Dec 15, 2024
0.9.0 Aug 1, 2024
0.7.8 Mar 28, 2024

#546 in Database interfaces

Download history 16/week @ 2024-12-07 132/week @ 2024-12-14 5/week @ 2024-12-21 226/week @ 2025-01-18 3/week @ 2025-01-25 255/week @ 2025-02-01 217/week @ 2025-02-08

706 downloads per month

MIT license

280KB
6K SLoC

Flashpoint Archive Rust Library

Rust library for accessing the local database and misc features of the Flashpoint Archive.

Project website: https://flashpointarchive.org/

Feature flags

napi - Adds napi-rs attrs to structs

Test

Build

cargo build -p flashpoint-archive

Node binding: cd bindings/binding-node npm install

  • Swap for path in cargo.toml - flashpoint-archive = { path = "../../crates/flashpoint-archive", features = ["napi"] } npm run build

Dev node binding: cd bindings/binding-node npm link cd <launcher-dev-folder> npm link @fparchive/flashpoint-archive

Usage

User input example

use flashpoint_archive::FlashpointArchive;
use flashpoint_archive::games::search::parse_user_input;

fn main() {
    let archive = FlashpointArchive::new();
    archive.load_database(TEST_DATABASE).expect("Failed to open database");

    let mut search = parse_user_input("Sonic platform:Flash");
    search.limit = 9999999; // Default 1000 limit for pages
    let games = archive.find_games(search).expect("Failed to search");
}

Dependencies

~39MB
~634K SLoC