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

electron-es6-react

v0.0.0

Published

There is a great video about javascript neural networks [on youtube](https://www.youtube.com/watch?v=P7XHzqZjXQs&feature=youtu.be) After watching the dinosaur jumping by itself I knew that I have to build something similar.

Downloads

4

Readme

Swords And Souls OpenCV Color Bot

There is a great video about javascript neural networks on youtube After watching the dinosaur jumping by itself I knew that I have to build something similar.

What does this thing do?

This is a swords and souls flash game color bot. You can watch it in action on youtube

1

Libraries

Production

Production build currently does not work. I have to figure out how to compile opencv4nodejs with electron-rebuild.

Development

  1. You have to have opencv4nodejs installed

  2. You have to install pepper flash plugin

  3. Set correct ppapi version in ./src/_shared/constants/index.js on line:5

Let me run it!

If I did not forget to mention anything important then you just have to install npm dependencies:

yarn install

And then simply start the application:

yarn start

You will see two windows.

Left window is basically our application. Where you have these options:

  • Choose action (train attack, block or shoot arrows)
  • Start or stop the bot
  • Turn on or turn off window streaming

1

Right windows is a simple chrome window with the web game:

1

  1. You have to navigate to the training section in the game
  2. You have to set the zoom level to 50% (there were some performance issues with 100%)
  3. You have to scroll down a little so that you have the game window in the center

Then you will be able to see something like this:

1

Code structure

This is my first electron application so bear with me:

  • /src is a folder with our code
  • /src/_share files that are shared between main and renderer live here
  • /src/main code for the main electron process
  • /src/main/_share files that are shared in main live here
  • /src/main/main main process
  • /src/main/game game process
  • /src/renderer code for electron renderer
  • /src/renderer/_share files that are shared in renderer live here

If there is a folder in /src/renderer then there probably also is a folder in /src/main that represents the process behind the rendered window.

Here is: src/renderer/game/helpers/frame.js where all the magic happens. I didn't really know what was I doing so if you know how to improve performance of this application I will be more than happy to hear your opinion.