Omi is a compact framework for building Web Components with JSX, signals, and constructable stylesheets. Companion packages add routing, suspense, and UI kits.
Overview
Omi is a Web Components framework from Tencent that combines standard custom elements with JSX/TSX authoring, reactive signals, and constructable stylesheets for shared styling. It targets small bundle size and fast updates when signal-driven data changes.
The core npm package implements the runtime, while related packages such as omi-router handle single-page routing, omi-suspense coordinates async dependencies, and omi-transition or omi-ripple supply directives for DOM animations and material-style ripples. Starter templates scaffold Vite-based projects with TypeScript or JavaScript, Tailwind CSS, or SPA layouts.
Components built with Omi are intended to work across frameworks: documentation shows embedding the same custom element in Vue and React and listening for DOM events from those hosts. The ecosystem lists WeUI-based component sets, auto-animate bindings, and example apps such as a reactive snake game.
Project materials emphasize both object-oriented and data-oriented programming styles, with signal reactivity updating only the parts of the UI that depend on changed data. MIT-licensed templates and docs are published alongside the main framework site.
Key features
- Web Components and shadow DOM
- JSX and TSX components
- Reactive signal updates
- Constructable Stylesheets
- SPA router package
- Suspense async handling
- Tailwind-ready starter kits
- Cross-framework custom elements
Use cases
- Reusable web components
- Signal-driven SPAs
- Vue or React embedded widgets
- Tailwind-based UI kits
- Lightweight component libraries