Proto-driven quests forbevy_quests
A game-agnostic quest registry for Bevy — the questdb.proto types wrapped in a searchable QuestDb resource queryable by slug, ULID, category, tag, giver NPC, or zone.
One proto, every game
The crate is game-agnostic — any game can load the same proto quest registry and query it by slug, ULID, category, or tags. Quest rows live in docs/questdb and are baked into one encoded registry.
What it gives you
Features
Proto-driven
Quest types come from the shared kbve-proto crate rather than a generated copy, so the crate cannot drift from the schema.
Searchable registry
QuestDb indexes quests for lookup by slug, ULID, category, tag, giver NPC, or zone, and holds the registry's quest chains.
Multiple loaders
Populate from the baked registry bytes (from_bytes), the JSON rows (from_json), or decoded proto (from_proto).
Bevy plugin
BevyQuestsPlugin registers an empty QuestDb resource for games to fill at startup.
Get started
Usage
use bevy::prelude::*;
use bevy_quests::{BevyQuestsPlugin, QuestDb};
fn load_quests(mut commands: Commands) {
let db = QuestDb::from_bytes(kbve_registry::QUESTDB).expect("the quest registry decodes");
commands.insert_resource(db);
}Questions
Frequently asked
What does the bevy_quests crate do?
bevy_quests provides proto-driven quest definitions for Bevy games. It re-exports the shared questdb.proto types from kbve-proto and wraps them in a searchable QuestDb Bevy resource, so any game can load the same quest registry and query it by slug, ULID, category, tag, giver NPC, or zone.
How are quests loaded into a Bevy game?
Decode the baked registry with QuestDb::from_bytes (kbve_registry::QUESTDB in the workspace, https://kbve.com/api/registry/questdb.binpb outside it), or load the /api/questdb.json rows with QuestDb::from_json or a decoded proto with QuestDb::from_proto, then insert the resulting QuestDb as a Bevy resource. BevyQuestsPlugin registers an empty QuestDb that games populate during startup.
Is bevy_quests tied to a specific game?
No. It is game-agnostic. Any game can load the same proto quest registry, since quest content lives in the shared questdb proto rather than in the crate.
Discuss on the forum
Questions, fixes and notes on this page live in the KBVE forum.