# reactylon

> Reactylon: a powerful multiplatform React framework built on Babylon.js, designed to create interactive and immersive 3D and XR (VR/AR/MR) experiences for web, mobile and headsets.

Latest version **3.6.0** (published 2026-11-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install reactylon
pnpm add reactylon
yarn add reactylon
bun add reactylon
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.6.0 |
| Published | 2026-11-28 |
| First published | 2024-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^22.11.0 \|\| ^24.11.0 \|\| ^26.13.0 |
| Dependencies | 5 |
| Unpacked size | 1.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 238 |
| Author | Simone De Vittorio |
| Maintainers | simonedevit |
| Keywords | reactylon, react, babylonjs, babylon.js, babylon, 3d, webgl, webgpu, webxr, xr, vr, ar, mr, react-native, babylon-native, spatial-computing, react-renderer, jsx, gamedev |

## Links

- npm: https://www.npmjs.com/package/reactylon
- Repository: https://github.com/simonedevit/reactylon
- Homepage: https://reactylon.com/docs
- Issues: https://github.com/simonedevit/reactylon/issues
- npm.io page: https://npm.io/package/reactylon

## Dependencies (5)

- [acorn](https://npm.io/package/acorn.md) ^8.11.3
- [zustand](https://npm.io/package/zustand.md) ^5.0.3
- [its-fine](https://npm.io/package/its-fine.md) ^1.2.5
- [lodash-es](https://npm.io/package/lodash-es.md) ^4.18.1
- [suspend-react](https://npm.io/package/suspend-react.md) ^0.1.3

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 3.6.0 (latest) — 2026-11-28
- 3.5.8 — 2026-05-14
- 3.5.7 — 2026-03-30
- 3.5.6 — 2026-03-24
- 3.5.5 — 2026-03-04
- 3.5.4 — 2026-02-17
- 3.5.3 — 2026-02-17
- 3.5.2 — 2026-01-01
- 3.5.1 — 2025-12-19
- 3.5.0 — 2025-11-29
- 3.5.0-alpha.1 — 2025-11-29
- 3.5.0-alpha.0 — 2025-11-26
- 3.4.1 — 2025-11-26
- 3.4.0 — 2025-11-20
- 3.3.0 — 2025-10-18
- … 67 more at https://npm.io/package/reactylon/versions

## README

<p align="center">
  <a href="https://www.reactylon.com/docs">
    <img src="./assets/logo.svg" alt="Reactylon" width="250"/>
  </a>
</p>

<h1 align="center">Reactylon</h1>

<p align="center"><b>The React framework for 3D and XR</b> — write Babylon.js scenes in JSX and ship them to web, mobile and VR/AR headsets from a single codebase.</p>

<p align="center">
  <a href="https://www.npmjs.com/package/reactylon"><img src="https://img.shields.io/npm/v/reactylon" alt="NPM Version"/></a>
  <a href="https://www.npmjs.com/package/reactylon"><img src="https://img.shields.io/bundlephobia/minzip/reactylon" alt="NPM Bundle Size"/></a>
  <img src="https://img.shields.io/github/actions/workflow/status/simonedevit/reactylon/build.yml?label=test%2Fbuild" alt="GitHub Actions Workflow Status"/>
  <img src="https://sonarcloud.io/api/project_badges/measure?project=simonedevit_reactylon&metric=alert_status" alt="Sonar Cloud Quality Gate"/>
  <a href="https://www.reactylon.com"><img src="https://img.shields.io/website?url=https%3A%2F%2Fwww.reactylon.com&up_message=online&label=reactylon.com" alt="Website"/></a>
  <img src="https://img.shields.io/npm/l/reactylon" alt="NPM License"/>
</p>

https://github.com/user-attachments/assets/6873d33c-1ad1-4f1c-b4c8-6cad52fd67d0

## Getting Started

### Installation

The easiest way to get started is with the official `create-reactylon-app` CLI.

It bootstraps a full React 19 project with a preconfigured Babylon.js engine, physics support, and a starter scene. No setup required.

```bash
npx create-reactylon-app my-app
```

### Your first scene

```jsx
import { Engine, Scene } from 'reactylon';

const App = () => (
    <Engine>
        <Scene>
            <hemisphericLight name="light" intensity={0.8} />
            <box name="box" options={{ size: 2 }} positionY={1} />
        </Scene>
    </Engine>
);
```

For a complete walkthrough, see the [Getting Started guide](https://www.reactylon.com/docs/getting-started).

### Documentation

You can explore the interactive Reactylon documentation on [reactylon.com](https://www.reactylon.com/docs), featuring **125+ live sandbox examples** you can open and edit directly in your browser.

For deeper technical details (renderer internals, codegen pipeline, architecture notes), see the **technical documentation** on [Google Code Wiki](https://codewiki.google/github.com/simonedevit/reactylon).

## Key Features

- **Declarative Syntax for Babylon.js**: Write 3D scenes in JSX, leveraging the power of declarative UI that React developers love, with seamless integration into the Babylon.js rendering engine.

- **Full TypeScript support**: Leveraging Babylon.js classes, the appropriate props for each Babylon.js entity are generated and utilized within their corresponding React components.

- **Automatic Object Management**: No need to manually dispose of Babylon.js objects. Reactylon automatically handles the disposal of objects like meshes, cameras, and lights when their corresponding components are destroyed, ensuring efficient resource management and preventing memory leaks.

- **Cross-Platform Support**: Your applications can run not only on desktop and mobile browsers via PWAs, but also on VR/AR headsets. Thanks to Babylon Native and React Native integration, you can deploy your 3D applications natively to mobile devices and XR headsets with ease, expanding your audience reach across devices.

- **Scene Injection**: Scene management is simplified, with automatic injection of the Babylon.js scene object into every component. This reduces boilerplate and lets you focus on building rich 3D experiences.

- **Parent-Child Relationships**: Components are automatically added/removed to their correct parents, making it easier to build complex hierarchies of meshes, lights, and cameras without manually managing Babylon.js's scene graph.

- **Enhanced React Integration**: Deep React integration allows for easy state management, component composition, and hooks, ensuring a seamless development experience that leverages React's full power in 3D rendering.

## When should you use Reactylon?

Use Reactylon if:

- You want to build **3D or XR experiences** using React and JSX instead of imperative Babylon.js code.
- You need **cross-platform** support (web, mobile, VR/AR/MR headsets) from a single codebase.
- You care about **type safety, tree-shaking and performance** out of the box.
- You prefer an **opinionated** layer that manages scene graph, resource disposal, and hierarchy for you.

## Ecosystem

- `create-reactylon-app`: Zero-config CLI to scaffold a new Reactylon project with a simple scene.
- `babel-plugin-reactylon`: Babel plugin that powers Reactylon's JSX-to-Babylon compilation, enabling ergonomic, declarative 3D/XR components while keeping the output fast and tree-shakeable.

## Contributing

We welcome contributions to improve and expand this project! To get started, please read [Contributing](./CONTRIBUTING.md). This document provides all the necessary steps and best practices for submitting contributions.

## Code of Conduct

We expect all contributors to adhere to our [Code of Conduct](./CODE_OF_CONDUCT.md). It outlines our standards for respectful and inclusive interactions within the project community.

## Support

For any help or support, please reach us at [contact@reactylon.com](mailto:contact@reactylon.com).

## License

Reactylon is licensed under the MIT License, with the inclusion of other dependencies licensed under separate terms:

- Babylon.js: Licensed under the Apache License, Version 2.0. For more details, visit the Babylon.js License.
- React & React Native: Licensed under the MIT License. For more details, visit the React License.

## Acknowledgements

This project is tested with BrowserStack.

---
_Source: https://npm.io/package/reactylon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
