Pacchetti
Tuvix.js è distribuito in 15 pacchetti: 13 librerie con scope @tuvix.js/*, il pacchetto ombrello tuvix.js e lo scaffolder create-tuvix-app. Installa quelli che la tua app importa.
Pacchetti Core
@tuvix.js/core
Core
The orchestrator — registers, mounts, and manages all micro app lifecycles.
@tuvix.js/router
Router
URL-based micro app routing with history and hash mode support.
@tuvix.js/event-bus
Event Bus
Typed inter-app communication. Publish and subscribe across micro apps.
@tuvix.js/loader
Loader
Dynamic module loading with caching, retry and error boundary support.
@tuvix.js/sandbox
Sandbox
CSS and JS isolation using Shadow DOM and JS Proxy. Prevent style leakage.
Binding Framework
@tuvix.js/react
React
React 18+ bindings with hooks — useMicroApp, useTuvixEvent.
@tuvix.js/vue
Vue
Vue 3 bindings with composables — useMicroApp, useTuvixEvent.
@tuvix.js/svelte
Svelte
Svelte 3/4/5 bindings with reactive stores and lifecycle integration.
@tuvix.js/angular
Angular
Angular 15+ module, service and directive bindings for micro apps.
Strumenti
@tuvix.js/devtools
DevTools
In-browser debug panel. Inspect registered apps, events and loader state.
@tuvix.js/server
Server
Server-side composition — pre-render and stitch micro app HTML on the server.
@tuvix.js/module-federation
Module Federation
Webpack 5 Module Federation integration for sharing remote micro apps.
@tuvix.js/vite
Vite
Vite plugin that puts island CSS and modulepreload links into the SSR head, so server-rendered micro apps are styled on first paint.
create-tuvix-app
create-tuvix-app
CLI scaffolding tool. Instantly bootstrap a Tuvix.js micro app project.
Installa tutto
bash
npm install tuvix.jsIl pacchetto ombrello tuvix.js riesporta core, router, event bus, loader e sandbox. Non include gli adapter per i framework, @tuvix.js/server, @tuvix.js/vite, @tuvix.js/devtools né @tuvix.js/module-federation: installali separatamente.
Pacchetti singoli
bash
# Core
npm install @tuvix.js/core
npm install @tuvix.js/router
npm install @tuvix.js/event-bus
npm install @tuvix.js/loader
npm install @tuvix.js/sandbox
# Framework adapters (install the one each micro app uses)
npm install @tuvix.js/react
npm install @tuvix.js/vue
npm install @tuvix.js/svelte
npm install @tuvix.js/angular
# Server rendering and build tooling
npm install @tuvix.js/server
npm install -D @tuvix.js/vite
npm install @tuvix.js/module-federation
npm install @tuvix.js/devtools
# Scaffold a new project
npx create-tuvix-app my-appCon pnpm, sostituisci npm install con pnpm add.