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

Start with the Nayan UI boilerplate for Expo and Vite, then add your first scene.

Follow the tutorial
git clone --depth 1 https://github.com/ursnj/nayan-ui.git
cd nayan-ui/templates/nayan-ui
bun install --frozen-lockfile
bun run web

Get started with Nayan UI

Create a starter workspace with a shared landing page and theme for React and Expo.