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

netsblox

v0.13.1

Published

Visual programming environment with networking support

Downloads

7

Readme

Build Status Stories in Ready Join the chat at https://gitter.im/NetsBlox/NetsBlox

NetsBlox

NetsBlox is a visual programming language which allows people to develop networked programs.

Overview

Netsblox is an extension of Snap! which allows users to use some distributed systems principles and develop networked apps. That is, users can create apps that can interact with other instances of Netsblox. An introduction to the new networking features can be found here

Currently, we have support for networked events and messages where a message is like an event except contains some additional information. For example, in the Tic-Tac-Toe example, the user is able to create a "TicTacToe" message which contains the row and column that the user played in.

Along with the events and messages, we also currently support remote procedure calls. RPC's are implemented as REST endpoints on the server which can perform some of the more challenging computation for the student (allowing support to make more complicated apps) as well as providing access to extra utilities not otherwise available to the student.

For example, you can import the Map utilities service which gives the user access to Google Maps with a map of (latitude), (longitude) with zoom (zoom) block:

Remote Procedure Returning a Costume

This results in the stage costume changing:

Google map costume on the stage

Installation

Before installing, NetsBlox requires nodejs (>= v6.0.0) and a MongoDB database. By default, NetsBlox will expect MongoDB to be running locally (this can be changed by setting the MONGO_URI environment variable).

First clone the repository and install the dependencies.

git clone https://github.com/NetsBlox/NetsBlox.git --recursive
cd NetsBlox
npm install

Finally, start the server with npm start and navigate to localhost:8080 in a web browser to try it out!

RPC Support

RPCs that are using 3rd party API's often require getting an API key from the given 3rd party API. After obtaining a key, the appropriate environment variable should be set to given key value:

Required Environment Variables for RPCs

  • Maps
  • Air Quality
    • AIR_NOW_KEY should be set to an API key from AirNow
  • Weather
  • NASA
    • NASA_KEY should be set to an API key from NASA
  • Traffic
    • BING_TRAFFIC_KEY should be set to an API key from Bing Traffic
  • Twitter
    • TWITTER_BEARER_TOKEN should be set to an API key from Twitter

To simplify this process (and to keep your ~/.bashrc clean), these values can be stored in a .env file in the project root directory and they will be loaded into the environment on starting NetsBlox.

Examples

After opening the browser, click the file button in the top left and click on Examples to check out some example networked apps!