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 🙏

© 2025 – Pkg Stats / Ryan Hefner

imvu.js

v0.0.16

Published

The only current way to create interactive and dynamic rooms in IMVU.

Downloads

26

Readme

About imvu.js

imvu.js is a project designed to interact with your own public IMVU rooms and their users. This project is:

  • Object-oriented
  • Lightweight
  • Friendly for new developers

Installation

To install imvu.js, run the following command in your terminal:

npm i imvu.js

Getting Your Token

To obtain your token, visit our platform here and create it for FREE.

Login Example

Here is an example of how to log in and spawn furniture:

const IMVU = require('imvu.js')
   const imvu = new IMVU({ name: 'MyBot', walk: true });
   imvu.on('ready', () => {
     console.log(`Bot ${imvu.display_name} with ID ${imvu.id} successfully connected to room ${imvu.room.id}`);
	 //Bot IMVUJS with ID 123 successfully connected to room 321
   });
   imvu.login('YOUR_TOKEN');

Usage Examples

Here are some examples of how to use imvu.js:

imvu.on('message', async (message) => {
  if (message.user.bot) return;

  if (message.content.startsWith('/Ping')) {
    await message.room.send('Pong');
    // Additional action, if necessary...
    await message.user.kick();
  }
});


imvu.on('seat', async (data) => {
  const { seat, seat_num, leave, user } = data; 
  // An elevator with auth?
  if (seat.instance_id === 35 && user.isMod) {
    const mod_room = { x: 100, y: 5000 };
    seat.set(mod_room)
  } else {
    // Send a whisper
    user.send('[Bot] - Please leave this spot or you will be kicked in 5 seconds');
    setTimeout(async () => {
      if (user.furniture.id === seat.id) {
        const debug = await user.kick();
        console.log(debug);
        // {error: 'Bot does not have moderator permissions in your room'}
      }
    }, 5000);
  }
  // Lets move it back
  if (leave.instance_id === 35) {
    leave.set({
      x:0,
      y:0,
      z:0
    })
  }
});


imvu.on('join', async (user) => {
  if (user.bot) return;
  // Welcome message
  imvu.say(`Welcome ${user.display_name} to my wonderful room`)
  imvu.send(`Welcome ${user.display_name} to my wonderful room`)
  imvu.room.send(`Welcome ${user.display_name} to my wonderful room`);
  user.room.send(`Welcome ${user.display_name} to my wonderful room`);
  // Or... perhaps a whisper?
  user.send(`Welcome ${user.display_name} to my wonderful room`);
});

imvu.on('leave', async (user) => {
  if (user.bot) return;
  // Additional actions, if necessary...
});


imvu.on('furniture_update', async (furniture) => {
  // Additional actions, if necessary...
});

For more references and example codes, check the complete documentation.