पैकेज
Tuvix.js 15 पैकेज के रूप में आता है: 13 scoped @tuvix.js/* लाइब्रेरी, tuvix.js अम्ब्रेला पैकेज और create-tuvix-app scaffolder। आपका ऐप जिन पैकेज को import करता है, सिर्फ़ उन्हें इंस्टॉल करें।
मुख्य पैकेज
@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.
फ्रेमवर्क बाइंडिंग
@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.
टूलिंग
@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.
सब कुछ इंस्टॉल करें
bash
npm install tuvix.jstuvix.js अम्ब्रेला core, router, event bus, loader और sandbox को re-export करता है। इसमें फ्रेमवर्क adapters, @tuvix.js/server, @tuvix.js/vite, @tuvix.js/devtools या @tuvix.js/module-federation शामिल नहीं हैं। इन्हें अलग से इंस्टॉल करें।
अलग-अलग पैकेज
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-apppnpm के साथ npm install की जगह pnpm add लिखें।