npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

aframe-dat-gui

v0.0.3

Published

Dataarts dat.gui for A-Frame components

Readme

dat-gui component

Overview

You may be familiar with dat.GUI from the THREE.js documentation, for example pages like this: https://threejs.org/docs/index.html#api/en/geometries/BoxGeometry

This component dynamically creates a dat.GUI panel to view and adjust the properties of all components on an A-Frame entity, like this:

There are some limitations (see below), but for the most part, this should just work for any A-Frame entity & component. It is a bit like A-Frame inspector, but doesn't require pausing the scene, and allows you to focus on just a few specific entities.

Schema

This component currently has no schema.

In future we may offer a schema to filter in/out specific components/properties, or control the appearance of the dat.GUI panel.

Installation

Via CDN

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dat-gui.min.js"></script>

Or via npm

npm install aframe-dat-gui

Usage

Just add the dat-gui component to any entity, to display an entity's components and settings.

For example, this...

<a-torus color="red" dat-gui></a-torus>

... will result in a panel like this appearing in the top right of the screen.

image-20240304145551473

You can add the dat-gui component to multiple entities in the scene, and each will appear as a collapsible folder in the dat.GUI panel.

Limitations

At this point, there are quite a few limitations. Requests, feedback and PRs are welcome.

  • Testing & usage so far is limited, so early users may run into problems. No isolation of errors, so if it hits a bug, there's a fair chance it will crash the whole scene.
  • The dat-gui component checks which components and properties exist when it is initialized. It doesn't check again. You can force a refresh by removing and re-adding the component, but there's no auto-refresh, and no way to refresh through the UI yet.
  • Support for schema extension is limited. There is support for the different properties associated with different geometry primitives. There is no support for additional material properties associated with different shaders.
  • No support yet for ranges (min & max values on properties)
  • Currently supported schema types are: boolean, color, int, number, string, vec2, vec3, vec4, selector
  • No support yet for arrays, selectorAll, assets and related (map, model, audio).
  • No control for position / styling of dat.GUI panel. Some of this can probably be done using CSS, but I haven't looked at how to best do that yet.
  • When the panel fills the screen, there is a scroll bar, but the Close controls button is awkwardly placed, often blocking one of the properties. Seems like a dat.GUI bug, but perhaps I'm doing something wrong here...
  • This only works in desktop mode, not in AR/VR. There has been some work to provide similar functionality todat.GUI in VR in the past, see here and here, but nothing alive at the moment.
  • In theory, it should be possible to bring up a dat.GUI control panel for entities dynamically when selected with a mouse pointer (using raycasting/cursor). This would be a nice example/demo to build, but I didn't get to it yet.

Examples

Torus example

Also more examples in the \tests\ folder.

Code

dat-gui