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

trboss

v1.0.10

Published

Trbo (SS) lets you run server-side js straight from Trbo's editor.

Downloads

3

Readme

NOTE THAT THIS SOFTWARE IS STILL BEING TESTED


For use with Trbo editor + JS task runner

Trbo is an editor + client-side js task runner that runs in the browser.

TrboSS (Trbo Server-Side) lets you run server-side js straight from the Trbo editor.

Install

cd into your project root.

$ npm install trboss

Run

cd down to node_modules/trboss

$ node trboss.js

You should see

Running trboSS

This has fired up trboSS and it's now listening for commands from Trbo.

Control from the Trbo editor

Use the trboss() function to send commands to trboSS. trboss() takes an object with Do: ['array', 'of', 'commands']

For example:

- trboss({Do: ['thing1', 'thing2']});

The above example will tell trboss to Do thing1 and thing2

Configuring trboss.js with tasks

Within the trboss.js file you can add tasks for trboss to perform.

A task taskes the following format:

orchestrator.add('thing1', function(){
  console.log("doing thing 1");
});

trboSS uses Orchestrator to execute it's tasks, so you can look there for more detail.

There are three example tasks already loaded:

orchestrator.add('thing1', function(){
  console.log("doing thing 1");
});
orchestrator.add('thing2', function(){
  console.log("doing thing 2")
});
orchestrator.add('thing3', function(){
  console.log("doing thing 3 - yay")
});

So when you run - trboss({Do: ['thing1', 'thing2']}); from the Trbo editor, this will run thing1 and thing2 and console log "doing thing 1" and "doing thing 2".