@aidenvigue/tresjs-core
Version:
Declarative ThreeJS using Vue Components
95 lines (60 loc) • 3.92 kB
Markdown

<p align="center">
<a href="https://www.npmjs.com/package/@tresjs/core"><img src="https://img.shields.io/npm/v/@tresjs/core?color=%2382DBCA&logo=data:image/svg%2bxml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjY4NTQgMy40MjkxNkMxMi4wNzM4IDIuNzgxODIgMTMuMDEyIDIuNzgxODIgMTMuNDAwNCAzLjQyOTE1TDE5LjE3NzEgMTMuMDU2OUMxOS41NzcgMTMuNzIzNSAxOS4wOTY5IDE0LjU3MTQgMTguMzE5NiAxNC41NzE0SDYuNzY2MjRDNS45ODg5NCAxNC41NzE0IDUuNTA4ODMgMTMuNzIzNSA1LjkwODc1IDEzLjA1NjlMMTEuNjg1NCAzLjQyOTE2WiIgZmlsbD0iIzgyREJDNSIvPgo8cGF0aCBkPSJNMTUuNjg1NyAxMC41NDI5QzE1LjY4NTcgOS45OTA1OSAxNi4xMzM0IDkuNTQyODggMTYuNjg1NyA5LjU0Mjg4SDI2QzI2LjU1MjIgOS41NDI4OCAyNyA5Ljk5MDU5IDI3IDEwLjU0MjlWMTkuODU3MkMyNyAyMC40MDk0IDI2LjU1MjIgMjAuODU3MiAyNiAyMC44NTcySDE2LjY4NTdDMTYuMTMzNCAyMC44NTcyIDE1LjY4NTcgMjAuNDA5NCAxNS42ODU3IDE5Ljg1NzJWMTAuNTQyOVoiIGZpbGw9IiM0RjRGNEYiLz4KPGNpcmNsZSBjeD0iMTYiIGN5PSIyMiIgcj0iNiIgZmlsbD0iI0VGQUMzNSIvPgo8L3N2Zz4K" alt="npm package"></a>
<a href="https://www.npmjs.com/package/@tresjs/core"><img src="https://img.shields.io/npm/dm/@tresjs/core?color=%2382DBCA" alt="npm downloads"></a>
<a href="https://discord.gg/UCr96AQmWn"><img src="https://img.shields.io/badge/chat-discord-purple?style=flat&logo=discord" alt="discord chat"></a>
</p>
# TresJS `@tresjs/core`
> Declarative ThreeJS using Vue Components
- 💡 Build 3D scene as they were Vue components
- ⚡️ Powered by Vite
- 🥰 It brings all the updated features of ThreeJS right away regardless the version
- 🦾 Fully Typed
Tres (Spanish word for "three", pronounced `/tres/` ) is a way of creating ThreeJS scenes with Vue components in a declarative fashion.
It's build on-top of a [Vue Custom Renderer](https://vuejs.org/api/custom-renderer.html#createrenderer) and it's powered by Vite.
The goal is to provide the Vue's community an easy way of building 3D scenes with Vue, always up to date with the latest ThreeJS features and with 0-to-none maintenance.
## Installation
```bash
pnpm install @tresjs/core three
```
## Docs
Checkout the [docs](https://tresjs.org)
## Demos
- [Stackblitz Collection](https://stackblitz.com/@alvarosabu/collections/tresjs)
## Ecosystem
| Package | Version |
| --------------------------- | :------------------------------------------------------------------------------------------------- |
| [Tres](https://github.com/TresJS/tres) |  |
| [Cientos](https://github.com/TresJS/cientos) |  |
| [Post-processing](https://github.com/TresJS/post-processing) |  |
| [Nuxt](https://github.com/TresJS/nuxt) |  |
| [TresLeches 🍰](https://github.com/TresJS/leches) |  |
## Contribution
We are open to contributions, please read the [contributing guide](/CONTRIBUTING.md) to get started.
### Setup
```
pnpm install --shamefully-hoist
```
### Playground
To run the small playground
```
pnpm run playground
```
### Build lib
To build the core as library mode just use
```
pnpm run build
```
### Docs
To run de docs in dev mode
```bash
pnpm run docs:dev
```
To build them
```bash
pnpm run docs:build
```
## License
[MIT](/LICENSE)
## Sponsors
Be the first to support this project [here](https://github.com/sponsors/alvarosabu) ☺️