Skip to content
ursnjPublic

About

Reusable Component Libraries for React and React Native.

Topics

Resources

Stars

6 stars

Watchers

2 watching

Forks

Repository files navigation

Nayan UI

Reusable component libraries for React and React Native, a game engine with free games, developer CLIs, and 70+ free online tools — all in one monorepo.

License TypeScript Website


Highlights

  • React components — accessible, themeable components built on HeroUI + Tailwind CSS v4
  • React Native components — matching API built on HeroUI Native + Uniwind
  • Game engine & games — @nayan-ui/engine for Expo and web, plus private @nayan-ui/games playable on nayanui.com/games
  • CLI — scaffold Vite / Expo / games projects, generate sitemaps and robots.txt
  • AI code reviewer — PR reviews, vulnerability scans and auto-fixes with Codex or Claude Code
  • Online tools — PDF, image, JSON, XML, text, SEO and developer tools plus a browser video editor at nayanui.com

Packages

Package Version Description
@nayan-ui/react npm React component library built on HeroUI + Tailwind CSS v4
@nayan-ui/native npm React Native component library built on HeroUI Native + Uniwind
@nayan-ui/engine npm Game engine for React Native and web
@nayan-ui/games Private Games built on the Nayan engine (private, not published to npm)
@nayan-ui/cli npm CLI for project scaffolding, sitemap & robots.txt generation
@nayan-ui/ai npm AI-powered code reviewer using Codex & Claude Code agents

@nayan-ui/engine and @nayan-ui/games are developed in a separate repository. @nayan-ui/games is a private package: it is not published to npm and is bundled into the website as a tarball (packages/website/scripts/nayan-ui-games.tgz) by the Docker publish workflow.

Website

packages/website (@nayan-ui/website) is the Next.js app behind www.nayanui.com. It hosts the component docs, games, devtools docs, the online tools and the video editor. It ships as the Docker image ursnj/nayanui (port 7100).

Examples

Example Description
examples/vite React + Vite + Tailwind CSS v4 + Nayan UI
examples/nextjs Next.js + Tailwind CSS v4 + Nayan UI
examples/expo Expo + Uniwind + Nayan UI native
examples/games Nayan Game Engine games for Expo and Vite

Quick Start

React (Vite)

npx @nayan-ui/cli new my-app -t vite
cd my-app
npm install
npm run dev

React (Next.js)

npx create-next-app@latest my-app
cd my-app
npm install @nayan-ui/react
npm install -D @tailwindcss/postcss tailwindcss
npm run dev

See examples/nextjs for full setup with transpilePackages and @tailwindcss/postcss.

React Native (Expo)

npx @nayan-ui/cli new my-app -t expo
cd my-app
npm install
npx expo start

Game engine (Expo + Vite)

npx @nayan-ui/cli new my-game -t games
cd my-game
bun install
bun run web

AI code reviewer

npm install -g @nayan-ui/ai
nayan-ai review   # review a pull request
nayan-ai scan     # scan dependencies for vulnerabilities

Repository Structure

packages/
  react/     @nayan-ui/react   — React component library
  native/    @nayan-ui/native  — React Native component library (+ example app)
  cli/       @nayan-ui/cli     — scaffolding & SEO CLI
  ai/        @nayan-ui/ai      — AI code reviewer CLI
  website/   @nayan-ui/website — nayanui.com (Next.js)
examples/    vite, nextjs, expo, games starter projects
.github/     publish workflows (npm + Docker)
scripts/     local publish scripts (Docker)

Development

This is a Bun workspace monorepo.

bun install
Command Description
bun run react:dev Watch-build the React package
bun run react:build Build the React package
bun run native:build Build the Native package
bun run native:typecheck Type-check the Native package
bun run native:example Run the Native example app
bun run cli:build Build the CLI
bun run ai:build Build the AI reviewer
bun run website:dev Run the website in development
bun run website:build Production build of the website
bun run website:start Serve the production build on port 7100
bun run format Format the codebase with oxfmt
bun run clean Remove node_modules and build outputs

Publishing

  • npm packages — run the Publish npm packages workflow and select the packages to release (supports dry run). Uses npm trusted publishing, no token required.
  • Website — run the Publish website docker images workflow to build and push ursnj/nayanui:latest. Requires the PLAYTURA_TOKEN and DOCKER_HUB_TOKEN repository secrets. Or publish it from your machine with bun run docker:publish (needs Docker, a playtura checkout at ../playtura or --playtura <dir>, and docker login as ursnj; --dry-run builds and checks without pushing, --help lists the options).

Documentation

For detailed documentation, component APIs, examples, and guides, visit www.nayanui.com

Contributing

We welcome contributions! See the contribution guide to learn how to contribute to the repository and development workflow.

License

MIT


Developed with ❤️ by Niranjan Reddy Devasani

About

Reusable Component Libraries for React and React Native.

Topics

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages