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

senangwebs-verse

v1.0.2

Published

A-Frame component for creating 3rd person player controls in WebXR and 3D web scenes.

Readme

SenangWebs Verse (SWV)

SenangWebs Verse (SWV) is a lightweight A-Frame component for creating 3rd person player controls in WebXR and 3D web scenes. It provides smooth movement, jumping, crouching, and animation switching for your player model, making it easy to build interactive 3D experiences.

Features

  • Simple 3rd person player movement (WASD)
  • Jump and crouch support
  • Smooth camera follow
  • Animation switching (idle, walking)
  • Model rotation based on movement direction
  • Easy integration with A-Frame scenes
  • Customizable movement speed, jump force, and player height

Example

See a live example in the examples/index.html file.

Installation

Using a CDN

Include the SWV script in your HTML file:

<script src="path/to/swv.js"></script>

Or use a relative path if you cloned/downloaded this repo:

<script src="../dist/swv.js"></script>

Requirements

Usage

  1. Add the SWV script and dependencies to your HTML:
<script src="https://aframe.io/releases/1.7.0/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/c-frame/[email protected]/dist/aframe-extras.min.js"></script>
<script src="../dist/swv.js"></script>
  1. Set up your A-Frame scene and assets:
<a-assets>
  <a-asset-item id="player-model" src="./robot.glb"></a-asset-item>
</a-assets>
  1. Add the player entity and camera rig:
<a-entity
  id="player"
  scale="0.5 0.5 0.5"
  data-swv-player="animWalking: RobotArmature|Robot_Walking; animIdle: RobotArmature|Robot_Idle; playerHeight: 1; speed: 3; crouchHeight: 0.8; jumpForce: 8;"
>
  <a-entity
    id="player-model-entity"
    gltf-model="#player-model"
    modify-materials
  ></a-entity>
</a-entity>

<a-entity
  id="camera-rig"
  position="0 0 0"
  look-controls="pointerLockEnabled: true; reverseMouseDrag: false; touchEnabled: false;"
>
  <a-camera
    id="camera"
    position="0 1.6 3"
    fov="90"
    wasd-controls-enabled="false"
  ></a-camera>
</a-entity>
  1. Add a ground plane and environment:
<a-plane
  position="0 0 0"
  rotation="-90 0 0"
  width="100"
  height="100"
  material="color: #7BC8A4; roughness: 0.8;"
></a-plane>
<a-sky color="#AED7E0"></a-sky>
<a-light type="ambient" color="#888"></a-light>
<a-light type="directional" intensity="0.8" position="-1 1 2"></a-light>

Configuration Options

You can configure the player component via the data-swv-player attribute:

| Option | Type | Default | Description | | -------------- | -------- | --------- | ------------------------------------------------ | | cameraRig | selector | #camera-rig | Selector for the camera rig entity | | playerModel | selector | #player-model-entity | Selector for the player model entity | | animWalking | string | walking | Animation clip name for walking | | animIdle | string | idle | Animation clip name for idle | | speed | number | 5.0 | Walking speed | | crouchSpeed | number | 2.5 | Speed while crouching | | jumpForce | number | 8.0 | Upward velocity for jump | | gravity | number | -19.6 | Gravity applied to the player | | playerHeight | number | 1.8 | Standing player height | | crouchHeight | number | 1.0 | Height while crouching |

Example:

<a-entity
  data-swv-player="animWalking: RobotArmature|Robot_Walking; animIdle: RobotArmature|Robot_Idle; playerHeight: 1; speed: 3; crouchHeight: 0.8; jumpForce: 8;"
>
  ...
</a-entity>

Controls

  • WASD: Move player
  • Space: Jump (if not crouching)
  • C: Crouch (hold to crouch, release to stand)

Animation

The component uses the animation-mixer system from aframe-extras to switch between idle and walking animations based on movement. You can specify the animation clip names via the animWalking and animIdle options.

Browser Support

SenangWebs Verse works on all modern browsers that support A-Frame and WebGL, including:

  • Chrome
  • Firefox
  • Safari
  • Edge

Contributing

Contributions are welcome! Please submit a Pull Request or open an issue.

License

This project is licensed under the MIT License.

Acknowledgments