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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@dwifte/robloxjs

v1.2.1

Published

Roblox API Wrapper written in NodeJS using fetch.

Downloads

7

Readme

RobloxJS

Roblox API written as a nodejs module.

How to install

npm i https://github.com/DwifteJB/RobloxJS

How to use

Requiring

const robloxjs = require("@dwifte/robloxjs")

Place Class

Get Details of Place

API Documentation

(async () => {
    let Place = await new robloxjs.Place(2506738224) // Place ID
    let placeDetails = await Place.getDetails()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!!

Get Settings of Place

API Documentation

(async () => {
    let Place = await new robloxjs.Place(2506738224) // Place ID
    let PlaceSettings = await Place.getSettings()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!!

Get Universe ID of Place

API Documentation

(async () => {
    let Place = await new robloxjs.Place(2506738224) // Place ID
    let UniverseJSON = await Place.getUniverse()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!!

Get Game Instances

API Documentation

(async () => {
    let Place = await new robloxjs.Place(2506738224) // Place ID
    let gameInstances = await Place.getGameInstances()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!!

Player Class

Get Avatar Icons

API DOCUMENTATION

(async () => {
    let Player = await new robloxjs.Player(1) // Player ID
    let onlineStatus = await Player.getAvatar()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!


(async () => {
    let Player = await new robloxjs.Player(1) // Player ID
    let onlineStatus = await Player.getAvatarBust()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!

    
(async () => {
    let Player = await new robloxjs.Player(1) // Player ID
    let onlineStatus = await Player.getAvatarHeadshot()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!

Get Online Status

API DOCUMENTATION

(async () => {
    let Player = await new robloxjs.Player(1) // Player ID
    let onlineStatus = await Player.getOnlineStatus()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!!

Get Player's Created Games

API DOCUMENTATION

(async () => {
    let Player = await new robloxjs.Player(1) // Player ID
    let createdGames = await Player.getCreatedGames()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!!

Get Player's General Info

API DOCUMENTATION

(async () => {
    let Player = await new robloxjs.Player(1) // Player ID
    let generalInfo = await Player.getInfo()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!!

Get Player's older Usernames

API DOCUMENTATION

(async () => {
    let Player = await new robloxjs.Player(1) // Player ID
    let olderUsernames = await Player.getOldUsernames()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!!

Universe Class

How do I get a universe ID?

Well, simply use the Get Universe ID of Place section from the Player Class

Get all places connected to Universe

API DOCUMENTATION

(async () => {
    let Universe = await new robloxjs.Universe(1337) // Universe ID
    let UniversePlaces = await Universe.getPlaces()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!!

Get Info

API DOCUMENTATION

(async () => {
    let Universe = await new robloxjs.Universe(1337) // Universe ID
    let UniverseInfo = await Universe.getInfo()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!!

Get Price of Game

API DOCUMENTATION

(async () => {
    let Universe = await new robloxjs.Universe(1337) // Universe ID
    let UniversePrices = await Universe.getPrice()
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!!

Other Methods

Get IDs from Usernames

API DOCUMENTATION

(async () => {
    let IDS = await robloxjs.getPlayerIDFromUsernames(["RobsPlayz", "Roblox"], false) // IDS IN ARRAY, EXCLUDE BANNED MEMBERS?
})(); // EVERYTHING MUST BE DONE IN AN ASYNC ENVIRONMENT!!

Special Thanks

Special thanks to roblox-api & roblox-web-apis for the documentation on the API