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

cheos-bot

v0.1.1

Published

A very,very simple Neos VR Chat Bot Library.

Downloads

2

Readme

cheos-bot Library

This is a very, early pre-release, stuff may break and you may scratch your head. DON'T USE IT YET!!!

A very small, subset of Neos' HTTP APIs, which are enough to make a small Neos Bot. It can't really do much right now. But It can do what I need it to do. If you'd like to suggest features please let me know by opening an issue.

Disclaimer: cheos-bot is not officially sanctioned or affiliated with Neos, its team or Solirax.

Usage

Install cheos-bot

npm i --save @probableprime/cheos-bot

Use cheos-bot


const {NeosBot} = require('@probableprime/cheos-bot');

const bot = new NeosBot();

async function main() {
    await bot.login('Bot', 'Boop');
    console.log('Starting');

    bot.messages.onNewMessage(message => {
        console.log(`New Message from: ${message.senderId}, of type: ${message.messageType}`);
        console.log(`Message contents: ${message.content}`);
    })

    bot.friends.onFriendAdded(friend => {
        console.log(`New Friend Added: ${friend.friendUsername}!`);
    })

    bot.onError(error => {
        console.log(error);
    })
}
main();

Docs

TODO

Notes

Things might seem a little weird here, that's because it is. This is a very early look at a working on this. Neos is new and changing and a lot of stuff is subject to change both here and in Neos. So please provide feedback in the issues section.

Design Principles

I have some random design principles at play here:

  1. Do only what is needed. Cheos doesn't aim to implement the entirety of Neos' APIs
  2. TypeScript. TypeScript provides confidence and clarity for developers and eventually... docs.
  3. Newest JavaScript / Node features. We're in 2021. We use classes, maps, async/await and whatever else.
  4. Segregated Functionality, Avoiding a God Object Lets me Write Faster
    1. Yeah I know NeosBot is a god Object, but its just wrapped for simplicity. It doesn't actually make any requests.
  5. Signals vs Event Emitters see Events for more info. I'm still not sure about this one.
  6. Make it easy. No one has time for this

Known Issues

  • Error Handling is terrible... Like really bad... Half the time I don't even handle them.
  • Failure states, retries and cascade failures can happen
  • See Events
  • No Tests
  • No Docs
  • Incomplete (V0.1.0) means basically nothing in the grand scheme of things