Production-path example

Vanilla JavaScript.
Firebase underneath.

This application owns the interface. Khaya Engine owns state and commands. The Firebase adapter owns Firestore transactions, listeners, and authentication.

What gets replaced for a new frontend?

Keep

The engine, Firebase adapter, command shapes, lifecycle binding, and Security Rules pattern.

Replace

Markup, CSS, rendering, event delegation, Firebase project configuration, catalogue fields, and branding.