@lorelei-app/react
v0.2.5
Published
Official React renderer for Lorelei scenes, choices, and persistence hooks.
Maintainers
Readme
Lorelei React
Official React renderer for Lorelei scenes, choices, and persistence hooks.
Exports
LoreleiRendererLoreleiStageLoreleiEndingJournalCardLoreleiDialoguePanelLoreleiChoicePanelLoreleiHudSlotLoreleiStoryGraphEditoruseLoreleiSessionuseLoreleiPersistence
LoreleiRenderer now includes a default visual stage layer with background art support so hosts get a playable VN presentation out of the box, even before adding their own scene shell.
The default renderer now understands richer VN scene primitives too:
- multi-line
dialogueLines - stage cast from
characters - transition labels
- music, ambience, and SFX badges
- host-facing commands preserved on the scene contract
LoreleiStoryGraphEditor supports:
- visual node layout and branch editing
- authored dialogue sequences and background metadata
- stage characters, transitions, ambience, and SFX cues
- host scene commands with JSON payloads
- choice kind and cost metadata
- runtime requirements and variable effects for authored branches
- ending journal metadata for terminal beats:
journalTitlejournalSubtitlejournalQuoterewardLabelrewardTagsartworkUrlartworkKey
- seeded ending-journal defaults for new terminal beats
- catalog-backed ending-art picks, reward presets, and a fallback background-preview flow for ending cards
- a reusable
LoreleiEndingJournalCardpreview surface for studio and host UIs
Build
pnpm --filter @lorelei-app/react run build