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

@universis/robot

v3.2.0

Published

Universis Project task orchestration microservice

Downloads

66

Readme

@universis/robot

A task runner for Universis project based on bree task scheduler

Installation

Start an instance of @universal/robot by executing the following command:

npx @universis/robot

This installs the package and starts the task runner with the default configuration. @universis/robot starts its own application server and listens for incoming requests.

Use the --port option to specify a different port. The default port is 5445.

npx @universis/robot --port 6000

Use the --host option to specify the host on which the application server listens for incoming requests. The default host is localhost

npx @universis/robot --port 6000 --host "0.0.0.0"

Use the --config option to specify the path to the jobs configuration file.

npx @universis/robot --config /path/to/config.json

Configuation

The configuration file is a JSON file that contains the jobs to be scheduled. The following is an example of a configuration file:

{
  "jobs": [
    {
      "name": "job1",
      "interval": "1 hour",
      "path": "/path/to/job1.js"
    },
    {
      "name": "job2",
      "timeout": "8 hours",
      "path": "/path/to/job2.js"
    }
  ]
}

Read more about bree job scheduling here

Examples

Universis robot example is a simple project of how to use @universis/robot to schedule jobs. It contains only one job that gets stats for students grouped by their student status.

Development

Clone the repository and install the dependencies:

git clone https://gitlab.com/universis/robot.git
cd robot
npm install

@universis/robot uses jasmine for testing. Run the tests with the following command:

npm test

Start the application with the following command:

npm start