8000 GitHub - icurtis1/thebrowserlab: A 3D editor and creative coding environment that runs entirely in the browser. Built with React, Three.js, and TypeScript.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A 3D editor and creative coding environment that runs entirely in the browser. Built with React, Three.js, and TypeScript.

Notifications You must be signed in to change notification settings

icurtis1/thebrowserlab

Repository files navigation

The Browser Lab

A 3D editor and creative coding environment that runs entirely in the browser. Built with React, Three.js, and TypeScript.

Live Demo

Demo

Features

  • Full 3D scene editor with transform controls (translate, rotate, scale)
  • Physics simulation with Rapier
    • Dynamic, static, and kinematic body types
    • Realistic collision detection and response
    • Configurable physics properties (mass, friction, restitution)
  • Particle systems
  • Particle systems
  • Code editor for custom Three.js scripts
  • Material and shader editor
  • Timeline for animations
    • Keyframe-based animation system
    • Support for position, rotation, and scale keyframes
    • Visual timeline editor with drag-and-drop keyframes
  • Camera controls and preview
  • Scene hierarchy management
  • WebXR support

Getting Started

  1. Clone the repository
  2. Install dependencies
    npm install
  3. Start the development server
    npm run dev

AI Features (Optional)

This version of the Browser Lab has AI features disabled by default. To enable AI features like chat assistance and image generation, you'll need to:

  1. Set up a Supabase project and enable the Edge Functions.

  2. Add the following entries as Edge Function secrets in your Supabase project. You can find this under the "Secrets" tab within the "Edge Functions" section:

    • OPENAI_API_KEY with your OpenAI API key
    • STABILITY_API_KEY with your Stability AI API key
  3. Create the Edge Functions under the 'Functions' tab within the 'Edge Functions' section. This ensures users can access AI functionality securely, without exposing any API keys.

  4. Update the .env file with your Supabase URL and anon key:

    VITE_SUPABASE_URL=your_supabase_url_here
    VITE_SUPABASE_ANON_KEY=your_supabase_anon_key_here
    

Features Requiring Supabase

The following features require a Supabase connection:

OpenAI

  • AI Chat Assistant: Uses OpenAI to generate Three.js code based on your prompts
  • Audio Transcription: Converts speech to text for chat commands

Demo

StabilityAI

  • AI Image Generation: Uses Stability AI to transform your viewport captures based on text prompts

Demo

License

MIT

About

A 3D editor and creative coding environment that runs entirely in the browser. Built with React, Three.js, and TypeScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0