Skip to content

Latest commit

 

History

History
208 lines (184 loc) · 15.3 KB

File metadata and controls

208 lines (184 loc) · 15.3 KB

Contributing to WebSpatial

Thank you for your interest in contributing to WebSpatial! This document provides guidelines and instructions for contributors.

Prerequisites

Required Tools

Recommended Knowledge

Be familiar with web development and common tools like React (how to build UI) and libraries like ThreeJS (3D scene management). Would be good to know how to build a standard website first:

Know how to build/run an Apple vision pro app in XCode

Development Setup

  1. Clone the repository:
git clone https://github.com/webspatial/webspatial-sdk.git
cd webspatial-sdk
  1. Install pnpm and setup the project:
npm install pnpm -g
pnpm setup
  1. Install packages and link to workspace for local development:
npm run setup
  1. Start the development server:
npm run dev
  1. Verify that the server is started by going to http://localhost:5173/

Testing on Apple Vision Pro Simulator

  1. Open the project in Xcode:
    • It is located in /packages/visionOS/web-spatial.xcodeproj
    • Click play to launch in the simulator
    • You should now see webspatial running in the simulator
    • To set a custom initial URL, you can modify manifest.swift

Packages

  • @webspatial/react-sdk - The React SDK makes the WebSpatial API immediately available inside React.
  • @webspatial/core-sdk - The React SDK is implemented on top of the Core SDK, which is a framework-agnostic pure-JS API that enables the WebSpatial App Shell to natively spatialize 2D HTML content and render 3D content.
  • @webspatial/builder - The build tool transforms websites into Packaged WebSpatial Apps for debugging and distributing on spatial computing platforms.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Licenses and Attributions

This project uses the following third-party libraries: