Skip to main content

Crate wayfinder_core

Crate wayfinder_core 

Source
Expand description

wayfinder-core.

The engine behind the wf CLI: a client, cache, search layer, and renderer for Archives of Nethys Pathfinder 2e and Starfinder 2e game data. It talks to AON’s Elasticsearch backend, caches documents in a local SQLite store with TTLs, and turns AON’s HTML/markdown into structured content blocks that consumers can render however they like.

The four modules mirror that flow:

  • aon – the Elasticsearch client, the query builder, the document models, and the known categories with their filterable fields.
  • cache – a SQLite-backed CacheStore with per-category TTLs.
  • search – the unified SearchService that merges cache and live client, plus legacy/remaster handling.
  • render – AON HTML/markdown into ContentBlocks and Spans; colorization is opt-in so non-terminal consumers stay clean.

TLS uses rustls with the ring provider; AonClient::new installs it, so there is no dependency on OpenSSL or aws-lc.

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

aon
cache
error
The crate’s error type.
render
search