• Stars
    star
    159
  • Rank 235,916 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Three-tools by BACE

This project iterates on the previous three-devtools project by @jsantell. Credits to Webextension Browser-Polyfill by @rafaelsc for making this extension Chrome-compatible.

Table of Contents

Basic Setup as Chrome Extension

  1. clone this repository
  2. run commands: npm ci and npm run build:dist:chrome
  3. open Chrome Extensions -> Manage Extensions
  4. Change settings into Developer Mode
  5. Load unpacked this repository
  6. After making changes, run npm run build:dist:chrome again and click Update in the Manage Extensions page
  7. Happy debugging :)

Referencing three-devtools

Three-tools follows the same project architecture and file structure as three-devtools. Please take a look at the three-devtools DEVELOPMENT.md for details.

Architecture

The architecture follows the same structure as three-devtools'. Take a look at the tech stack below for descriptions on different technologies we've used:

Backend Tech Stack

Frontend Tech Stack

  • JavaScript/HTML/CSS
  • LitElement to create custom HTML elements
  • three.js
  • egjs to check if a computer is in light or dark mode

Commands

The following are the most relevant commands among those scripted by three-devtools

  • npm run build:deps builds dependencies via @pika/web
  • npm run build:dist:chrome builds a zip file of the extension in the dist directory for Chrome browsers.

Documentation

Getting started with Three-tools

The Three-tools UI is full of information but might be a bit overwhelming! Relevant information is separated into different panels for your convenience. Recommended starting points for learning how Three-tools can improve your productivity: (Within each panel, numbers and values can be typed or dragged to change)

Scenes & Cameras panel

View and change scene and camera properties Scenes & Cameras panel Click the dropdown menu of scenes and cameras to view different entity maps. Scenes and 3D objects are currently editable but camera properties are not able to be altered.

  • Select entities from the tree to view a smaller panel to the right with their properties

  • Use the search bar to search for entities by Name, Type or UUID (Note: UUID is not persistent and may change on reload)

  • Use the refresh button to reload the panel

  • Use the visibility icons to toggle entities on and off

  • For Scenes and 3D Objects / Entities:

    • Developers can view the Type, UUID, and Name properties
    • Developers can see the Transform and Rendering information and adjust those properties
    • Within the Transform tab:
      • Adjust the position, rotation and scale
      • Use the Matrix Auto Update toggle to adjust whether or not changes are immediately reflected in the DOM
      • Click the Save button to save specific properties if you would like to go back to them
      • Click the Display Saved Data to open a popup of the saved specs as well as log those specs to your console
    • Within the Rendering tab:
      • Adjust the Render Order
      • The visibility toggle here works the same way as the visibility icon
      • Adjust shadow properties
    • FOR ONLY SCENES:
      • A Background tab will be available to adjust the Background color if it has been set (currently no support for Background textures or the default null background)
  • For Cameras:

    • View the Type, UUID, Name and type specific properties
    • These properties are not currently adjustable

Geometries panel

View and change geometry properties Geometry panel Lists the Geometries / BufferGeometries rendered to the scene(s) available

  • Use the search bar to search for entities by Name or UUID (Note: UUID is not persistent and may change on reload)

  • Use the refresh button to reload the panel

  • Use the visibility icons to toggle the entities on and off

  • Select geometries from the list to see a list of their properties rendered on the right

    • Type, UUID and Name
    • Index
    • Groups
      • If Groups is an array, it will be hyperlinked to open more information in a new tab
    • Morph Targets Relative

Materials panel

View and change materials properties Materials panel Lists the Materials rendered to the scene(s) available

  • Use the search bar to search for entities by Name or UUID (Note: UUID is not persistent and may change on reload)

  • Use the refresh button to reload the panel

  • Use the visibility icons to toggle the entities on and off

  • Select Materials from the list to see a list of their properties

    • Type, UUID, Name
    • Color: adjustable by color map
    • Materials Type Specific Properties
      • if null, not editable
      • otherwise, can be adjusted
    • Other nested tabs for more type specific properties

Textures panel

View and change textures properties Textures panel Lists the Textures rendered to the scene(s) available

  • Use the search bar to search for entities by Name or UUID (Note: UUID is not persistent and may change on reload)

  • Use the refresh button to reload the panel

  • Use the visibility icons to toggle the entities on and off

  • Select Textures from the list to see a list of their properties

    • Changes to these properties are not fully supported
    • Tabs:
      • Filters
        • Min Filter -- dropdown menu of options
        • Mag Filter -- dropdown menu of options
      • Wrapping
        • Wrap S -- dropdown menu of options
        • Wrap T -- dropdown menu of options
      • Transform
        • Offset
        • Repeat
        • Rotation
        • Center
        • matrixAutoUpdate
        • Matrix

Renderer panel

Renderer panel View rendering info from the scenes available. Note: this information is not always correct due to the renderer.info not being properly reset. If the information looks incorrect, please see the three.js renderer.info documentation for further information about manually resetting your renderer.info

  • Left panel:
    • Renderer tab tracks different data with a setInterval function to update every second. This tab lists the information from WebGLRenderer.info.render
      • frames
      • draw calls
      • triangles
      • points
      • lines
    • Memory tab tracks data from WebGLRenderer.info.memory
      • geometries
      • textures
      • programs
  • Right panel: WebGLRenderer
    • Lists the type of renderer used, name and properties
    • (gammaFactor has been removed from THREE.WebGLRenderer so we removed that property)
    • Tone Mapping
    • Shadow Map
    • Buffer Clearing
    • Capabilities
    • Clipping
    • Scene
    • Morph Limits

Changes from three-devtools

  • removed requirement to hit reload button when extension is first opened
  • implemented search bar functionality to allow users to search through entities by uuid, name or type
  • added hide/show toggle icon to control visibility of scene elements, textures, geometries and materials
  • updated three.js version to the latest version
  • updated UI/UX for easy debugging experience
  • support for rendering camera information for debugging
    • changing camera properties currently does not work
    • this functionality creates an array of DevToolsScenes corresponding to the cameras as well as TransformControls objects for each DevToolsScene
    • these objects (DevToolsScenes and TransformControls) are not yet functional
    • currently calls updateMatrixWorld but does not see properties updated
    • updated dropdown menu on scene viewing tab to include Camera entities
  • support for scene background colors
  • added ability to save transformed properties
    • information is then opened in a popup window and logged in the console

Recommended Next Steps:

  • Add support to change camera properties (Recommended to take a look at TransformControls.js)
  • Once the camera works, add functionality to 'highlight' the selected scene
  • Update Manifest version to version 3 (version 2 will be deprecated in ~1 year)
    • Update Manifest.json to accept inject.js file as a web resource
    • Activate background.js as a usable service worker
  • Ensure support for all Materials properties
  • Make the panels resizeable
  • Create a persistent unique identifier (UUID is not persistent currently)
  • Renderer info is not always correct -- please see renderer.info in the three.js docs (hyperlinked in the renderer info tab of the devtool)

Troubleshooting:

  • You have an error that you cannot describe or it is your first error
    • Reload the page the extension, this will solve most problems
  • You cannot access three-tools in your chrome extension panel
    • Exit out of chrome devtools inspector and re-enter
  • You only see "three-tools requires a page reload"
    • Go to a page utilizing three.js otherwise three-tools will not load
    • three-tools will not recognize three.js objects inside iframes
  • You are on three.js website and it still will not load or does not render objects
    • Chrome extension still does not have any compatabilities with websites using i-frames, if you would like to use our tool remove any iframes for our product to register your code.
  • You cannot type h into the searchbar
    • Chrome extension has a bug where h cannot be typed into our extensions searchbar, use shift h in this case
  • You are having an issue with the build-dist.sh file
    • Check this stack overflow
      • Recommended to try sed -i -e 's/\r$//' build-dist.sh and ./build-dist.sh

To Contribute:

  • Fork this repository
  • Create a new branch with the name of the feature to add / change
  • Create a PR to the dev branch
  • Use descriptive commit messages and include comments in the description of your PR
  • When completed with your feature please send an email to [email protected], and one of the members will review and merge

More Repositories

1

sapling

Sapling - A convenient way to traverse your React app in VS Code
JavaScript
489
star
2

Kafka-Sprout

🚀 Web GUI for Kafka Cluster Management
Java
429
star
3

GraphQuill

Real-time GraphQL API Exploration in VS Code
TypeScript
395
star
4

protographql

ProtoGraphQL is a prototyping tool that empowers developers to build and visualize GraphQL schemas and queries without writing any code.
JavaScript
360
star
5

seeql

see your database in a new way
TypeScript
344
star
6

Realize

A React component tree visualizer
JavaScript
327
star
7

Allok8

⚡️A pretty swell Kubernetes visualization tool
JavaScript
273
star
8

ReactRTC

NPM package that simplifies set-up of WebRTC as importable React components
JavaScript
270
star
9

svend3r

Interactive plug and play charting library for Svelte
JavaScript
267
star
10

aether

All-in-One Memory Leak Testing Solution
JavaScript
250
star
11

Yodelay

Your preferred gRPC endpoint testing tool. Making sure your outbound 🗣️ ‘yodelay’ returns the ‘IiiOoo’ 📣 that you expect
TypeScript
228
star
12

ReactRPC

Full feature integration library for gRPC-Web into React
JavaScript
224
star
13

atomos

Atomos is an open source dev tool for Recoil that provides real-time visualization of the component tree and atom-selector relationships to facilitate debugging of a React application.
JavaScript
218
star
14

Dockter

A low-overhead, open-source Docker log management tool
TypeScript
217
star
15

svelte-sight

A Svelte dev tool for visualizing component hierarchy, state, and props of your application
Svelte
215
star
16

KUR8

A visual overview of Kubernetes architecture and Prometheus metrics
JavaScript
213
star
17

OpticQL

Developer tool focused on streamlining the performance testing and optimization of GraphQL API
JavaScript
212
star
18

connext-js

A middleware and route handling solution for Next.js.
JavaScript
210
star
19

hypnos

The best way to test GraphQL calls to RESTful APIs.
JavaScript
205
star
20

Equa11y

A stream-lined command line tool for developers to easily run accessibility testing locally through axe-core and puppeteer.
TypeScript
204
star
21

preducks

React/Redux/Typescript Application Prototyping & Smart Boilerplate Generation Tool
TypeScript
199
star
22

drawql

an OSS tool for designing a graphql endpoint in Apollo
CSS
195
star
23

kubermetrics

JavaScript
194
star
24

TotalRecoilJS

TotalRecoilJS is a tool created to help developers visualize/debug and track their Recoil state via a Chrome extension.
JavaScript
193
star
25

Horus

🎯 A gRPC-Node Distributed Tracing and Monitoring Tool.
JavaScript
187
star
26

PostQL

Web app to visualize your GraphQL metrics and provide historical analytics
TypeScript
186
star
27

Ahoy

Ahoy! is a GUI tool for DevOps engineers which distills the many functions of Helm into a user-friendly interface.
JavaScript
183
star
28

battletest

A CLI module for npm that auto-generates tests based on user specified parameters.
JavaScript
183
star
29

Deno-Redlock

Deno's first lightweight, secure distributed lock manager utilizing the Redlock algorithm
TypeScript
182
star
30

ReactMonitor

Quickly visualize React's component tree and its performance
JavaScript
181
star
31

Osiris

An Electron based desktop application for generating components, building pages, and storing them in a UI library.
JavaScript
177
star
32

protostar-relay

Open-source iteration of the official Relay devtool.
JavaScript
171
star
33

TorchQL

A tool to quickly generate GraphQL schemas and resolvers from a relational database
JavaScript
171
star
34

trydent

testing tamed
TypeScript
170
star
35

genesisQL

rapid schema-prototyping tool for GraphQL applications
JavaScript
169
star
36

FilamentQL

GraphQL query and caching solution
JavaScript
168
star
37

GatsbyHub

Access everything Gatsby has to offer without ever leaving Visual Studio Code. This VSCode Extension allows you to generate a new Gatsby site using a starter, browse Gatsby plugins, and develop a server all with a click of a button.
TypeScript
163
star
38

aditum

Accessibility components for managing focus in React SPAs
JavaScript
162
star
39

watchmo

JavaScript
162
star
40

react-chronoscope

Developer tool to monitor React performance
JavaScript
162
star
41

navigate

A Kubernetes cluster visualizer for DevOps engineers - network policies, aggregated scheduler logs, deployments and pods before your cluster is running!
TypeScript
161
star
42

TrunQ

NPM package for easy client and/or server side graphQL caching.
JavaScript
160
star
43

onyx

Onyx is authentication middleware for Deno, inspired by Passport.js
TypeScript
159
star
44

MASH

Kafka visualizer and management suite
TypeScript
158
star
45

portara

Portara directive is a rate limiter / throttler for GraphQL
TypeScript
158
star
46

irisql

GraphQL prototyping tool to quickly mock-up Node API's and visualize where you can query from.
JavaScript
158
star
47

Interspect

An API mocking tool for testing data interoperability between microservices and secure HTTP endpoints
JavaScript
157
star
48

SMEE

JavaScript
154
star
49

ChaosQoaLa

Chaos Engineering meets GraphQL
JavaScript
153
star
50

VaaS

Modular Kubernetes Management System with OpenFaaS Support
TypeScript
153
star
51

tropicRPC

A VS Code extension that provides gRPC API endpoint testing.
TypeScript
153
star
52

dashport

Local and OAuth authentication middleware for Deno
TypeScript
151
star
53

anagraphql

JavaScript
151
star
54

Trinity

A VSCode extension for Cypher and Neo4j
TypeScript
150
star
55

DockerLocal

DockerLocal is a GUI application that allows you to keep an up-to-date version of the docker compose file for interconnected repositories while doing development work on a single repository.
TypeScript
150
star
56

giraffeQL

🦒 Developer tool to visualize relational databases and export schemas for GraphQL API's.
JavaScript
147
star
57

ProtoCAD

ProtoCAD is a prototyping tool that allows developers to build UI component tree structure based on GraphQL query results.
TypeScript
146
star
58

Trace

A lightweight GraphQL query performance monitoring GUI with real-time, resolver-level performance tracing metrics and error logging.
TypeScript
146
star
59

StratosDB

☄️ ☁️ An All-in-One GUI for Cloud SQL that can help users design and test their AWS RDS Instances
TypeScript
145
star
60

snAppy

snAppy is a VS Code extension coupled with an interactive view to support your React front-end delivery.
TypeScript
144
star
61

synapse

Realtime API Library
TypeScript
144
star
62

SpectiQL

GraphQL query, mutation, subscription test generator
JavaScript
143
star
63

starfleet

Command line tool to generate GraphQL services from Mongoose schemas with full CRUD functionality and deploy them to the cloud
JavaScript
143
star
64

pelican

Automated GUI canary testing for your kubernetes clusters
JavaScript
140
star
65

ProtoNative

A React Native prototyping tool for developers.
TypeScript
140
star
66

reactFLO

A Chrome DevTool built for developers to visualize the flow of state throughout their application.
TypeScript
140
star
67

ReactionTime

ReactionTime provides a simpler way to write tests for React's Experimental Concurrent Mode.
TypeScript
140
star
68

DacheQL

GraphQL caching tool
JavaScript
139
star
69

KuberOptic

An Electron app for developers to visualize their Kubernetes clusters in real-time
TypeScript
137
star
70

sono.land

Real-time Communication Library for Deno (WebSockets & WebRTC)
TypeScript
137
star
71

KubeScrape

KubeScrape: An open-source dev tool that provides an intuitive way to view the health, structure, and live metrics of your Kubernetes cluster
JavaScript
136
star
72

LucidQL

A developer tool and visualizer that generates a GraphQL schema from an established relational database.
JavaScript
135
star
73

Hookd

A cli tool and visualizer for converting React class components to functional components with hooks.
TypeScript
135
star
74

kr8s

Docker/Kubernetes Visualization Tool
JavaScript
133
star
75

Svelcro

Svelte DevTool with a focus on rendering
JavaScript
133
star
76

KnightOwl

An npm package of GraphQL middleware to protect you from malicious queries.
JavaScript
133
star
77

Palaemon

Palaemon is an open-source developer tool for monitoring health and resource metrics of Kubernetes clusters and analyzing Out of Memory (OOMKill) errors
TypeScript
133
star
78

SvelTable

Feature rich data table component.
Svelte
132
star
79

Ekkremis

A periscopic view into pending Kubernetes pods
TypeScript
132
star
80

kQ

TypeScript
131
star
81

fflow

fflow is an easy-to-use open-source tool for all developers to create their React application.
JavaScript
127
star
82

KlusterView

Get instant insights on your Kubernetes clusters with our lightweight, plug-and-play performance monitoring tool
TypeScript
125
star
83

Aqls-server

An intelligent full-stack GraphQL subscription and analytics module. Server-side analytics processing, self-auditing router, and resolver plugins.
JavaScript
123
star
84

kondo

JavaScript
123
star
85

periqles

React form library for Relay and Apollo
JavaScript
120
star
86

ThermaKube

A web application that monitors the health and performance of Kubernetes clusters with support for AWS EKS deployments
JavaScript
120
star
87

arteMetrics

Creating performance monitors for Apollo implementations of graphQL.
JavaScript
118
star
88

QLens

QLens is an electron app which dynamically generates GraphQL Schemas and Mongo Schema visualization. QLens significantly cuts development time by automating the formation of their GraphQL schemas based on information fetched from their non-relational database.
JavaScript
118
star
89

firecomm

A complete framework for gRPC-node.
JavaScript
117
star
90

Kafkasocks

JavaScript
114
star
91

ReaPer

Dev tool to analyze the performance of user interface and single-page applications based on the React frontend library
JavaScript
114
star
92

dangoDB

A MongoDB ODM for Deno
TypeScript
111
star
93

AtomicKafka

JavaScript
110
star
94

Bedrock

A modular authentication library for Deno.
TypeScript
110
star
95

Docklight

Metrics for your Docker containers
TypeScript
109
star
96

Neptune

A light-weight, simple, and straightforward learning tool for your Kubernetes cluster
JavaScript
109
star
97

ArtemisQL

ArtemisQL is a GraphQL migration tool and database visualizer that empowers developers to build and implement GraphQL with ease.
TypeScript
108
star
98

shipm8

JavaScript
108
star
99

ReacTree

ReacTree - VS Code extension that generates a hierarchy tree of React components with each node listing the passed down props, indicating whether it's connected the Redux store, and guiding you to the associated file with the click of a button
TypeScript
107
star
100

reactron

Reactron is a React component visualizer that allows you to traverse an app's fiber tree and render components individually.
JavaScript
105
star