撰寫 React Native。發佈真正的語意網路與原生行動裝置。Rust 驅動的 UI 編譯器,於靜態路徑零執行時,提供一流的無障礙支援與預先計算樣式。
AI 翻譯
Write React Native. Ship true Semantic Web and native Mobile. A Rust-powered UI compiler with zero runtime on static paths, first-class accessibility, and precomputed styles.
開發工具TypeScript · RustGitHub @iray-tno上線中營運者未確認
試用過了嗎? 點一下就好,不需要登入。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證A Rust-powered universal UI compiler and accessibility-first layer for React Native.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
A Rust-powered universal UI compiler and accessibility-first layer for React Native.
Status: early, 0.x. Published to npm and crates.io. The Rust compiler, five
bundler and framework integrations, both lowering backends, the runtime
adapters and the conformance suite are implemented and tested. Public APIs
and package boundaries may still change in any minor release. See
docs/proposal.md for the design document (Japanese).
Hozo compiles React Native source toward the platform it actually runs on:檢視完整 README ↗Write React Native. Ship semantic HTML on the Web and native UI on iOS and Android.
Hozo is a universal UI framework for React Native, compiled by a compiler
written in Rust. You write components with React Native's vocabulary (View,
Text, Pressable, and semantic primitives such as Heading and Section)
and Tailwind classes, or take them ready-made from @hozo/ui. The build turns
them into semantic HTML, CSS and ARIA on the Web, and into React Native
components and StyleSheet values on iOS and Android. What the build can read
is compiled; only what it cannot read is left to a small runtime. Along the way
it checks semantics and accessibility, and tells whoever runs it, a person or
an agent, what to change.
Documentation · Website · REPL · Storybook · Conformance · Releases
import { Heading, Section, Text } from '@hozo/core'
export function Welcome() {
return (
<Section accessibilityLabel="Welcome" className="gap-2 p-6">
<Heading level={2} className="text-xl font-bold">Hello</Heading>
<Text className="text-gray-600">Compiled at build time.</Text>
</Section>
)
}
On the Web, the build writes this (compiler output, unedited):
<section className="hozo-view hozo-9hei4i-r0-0" aria-label={"Welcome"}><h2 className="hozo-9hei4i-r0-1">Hello</h2><span className="hozo-9hei4i-r0-2">Compiled at build time.</span></section>
.hozo-9hei4i-r0-0 { gap: 8px; padding-top: 24px; padding-right: 24px; padding-bottom: 24px; padding-left: 24px; }
.hozo-9hei4i-r0-1 { font-size: 20px; line-height: var(--tw-leading, 28px); font-weight: 700; }
.hozo-9hei4i-r0-2 { color: oklch(44.6% 0.03 256.802); }
A <section> with a name is a region landmark, the heading is an <h2>, and
the classes are real CSS. No React Native for Web and no style runtime is
involved. On React Native the same source becomes View and Text with
StyleSheet values, and the heading a Text with the header role. The
REPL shows both outputs for anything
you type.
| Stack | Install | Guide |
|---|---|---|
| Vite 8+ | @hozo/vite | Vite |
| Next.js | @hozo/next | Next.js |
| React Native, Expo | @hozo/metro | Metro |
| Astro | @hozo/vite | Astro |
| Storybook | @hozo/storybook | Storybook |
| TanStack Start | @hozo/vite | TanStack Start |
On Vite, for example:
npm install --save-dev @hozo/vite @hozo/compiler
npm install @hozo/core
// vite.config.ts: hozo() before react(), so it sees the JSX as written
plugins: [hozo({ css: 'src/theme.css' }), react()]
If something stops you, Troubleshooting
lists what others hit first. For an existing React Native app,
npx @hozo/migration-audit . reports what Hozo would change before you
change anything.
Early, 0.x. Published to npm and crates.io, and tested in CI on every
change; the Native backend also runs weekly on an Android emulator and an iOS
simulator. Public APIs and package boundaries may still change in any minor
release.
What is partial, manual or not yet tested is listed in What Hozo does not do yet. How far the output matches Tailwind, React Native and WAI-ARIA is measured, not claimed: see the Conformance Matrix.
CONTRIBUTING.md has the repository layout, setup, and the checks a pull request runs. Agents also read AGENTS.md.
MIT — see LICENSE.