Skip to content

Nayan UI

Build apps.Make games.

Build interfaces and 3D games for the web, iOS and Android. Use one TypeScript API for React and React Native, with rendering powered by Rust.

bun add nayan-ui
Scene.tsx
import { GameView, useWorld } from 'nayan-ui/games';

export function Scene() {
  const world = useWorld(32, (world) => {
    world.spawn({ mesh: 'cube', color: '#699cff' });
  });
  return world ? <GameView source={world} style={{ width: '100%', height: 240 }} /> : null;
}

Explore Nayan UI

Try the components

Use the live preview to try buttons, forms, feedback and labels. Open the reference to copy a complete example.

  • Shared controls for React and React Native
  • Theme tokens for light and dark mode
Browse components
nayan-uiLive preview

Press the button to update the count.

0 presses

<NButton onPress={increment}>Primary</NButton>Docs

Games

Play in your browser

Play a quick round or see how a complete game is built.

Browse all games

Build your first game

Run the Car Racing example with Expo and Vite, then build on it.

Follow the tutorial
git clone --depth 1 https://github.com/ursnj/nayan-ui.git
cd nayan-ui
bun install --frozen-lockfile --filter nayan-ui --filter @nayan-ui/example --filter '@nayan-example/*'
bun run engine:build
cd packages/example
bun run web

Get started with Nayan UI

Follow the installation guide for React or React Native. The engine is open source and MIT licensed.