yasinatesim/tuvix.js — reverse-engineered prompt
Reverse engineered prompt
Build me a lightweight TypeScript framework called Tuvix.js for combining separate frontend apps into one smooth user experience. I want a host app to be able to register smaller apps by name, load them only when needed, mount them into a container, unmount them cleanly, and update their props without a full reload.
It should work with React, Vue, Svelte, Angular, or plain JavaScript, so keep the core simple and framework agnostic. Include routing so paths like dashboard and settings can activate the right app, plus a shared event bus so the apps can talk to each other. Add options for lazy mounting when a section scrolls into view, fallback HTML if loading fails, and simple prefetch strategies.
Please also make a clean documentation site with quick start examples, an examples folder, tests, and TypeScript types. If possible, include an AI component generator page that can turn a plain English request into starter microfrontend code. Look up current docs online if you need to.
Want more depth? Deep Reverse