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

wavelet

v0.1.3

Published

Service Oriented nodejs application with a visual tool.

Downloads

60

Readme

Wavelet

Internal name: fx-wavelet

Service Oriented nodejs application with a visual tool.

Installation

npm install -g wavelet

Usage

Usage: wavelet [action] [options]

Action:

start [app] [options]   start an application
 app: application path, by default: current working directory
 
 options:
   --config: the wavelet configuration file, by default {your app}/app.js
   --root: the web app root
   --port: the web app port
   --disableEditor: disable the application visual editor
   --disableRED: (alias of disableEditor) disable the application visual editor
   
   Some plugins accept the options from command line, check your plugin manual to see which options you can put here.

create [app] [options]    create a wavelet project
  app: the name of the application
  options:
    -g: use global repository

install [plugin name] [version] [options]   install plugin or wavelet
  plugin name: optional, the plugin or wavlet to install, if not specified it will look for all the plugins defined in the wavelet.json file

  version: optional, the version of plugin or wavelet to install, if not 
  specified the latest version will be installed
  
  options:
    -g install the plugin to global repository otherwise install it locally

install red <node-red-name> [version]   install node-red node
  node-red-name  is the name of Node-RED node module
    Example: wavelet install red node-red-node-instagram
  
  More node-red nodes see [Node-Red Library](http://flows.nodered.org/)

get repo   get repository location

set repo [location]  set repository location

Runtime options:
-v print wavelet version
-d debug, toggle debug
-h help

Example of Usage: Start wavelet application located at current directory: your_app_folder

cd your_app_folder
wavelet start

Start wavelet application by specifying your app location

wavelet start your_app_folder

Create a wavelet application: testApp

wavelet create testApp

Install all the plugins/dependences on application folder

cd your_app_folder
wavelet install

Check wavelet version

wavelet -v

global variable registered

Wavelet inherits the gloabl variables defined in fx-runtime. Besides, it registers the following global variables:

_waveletVersion

the current wavelet version

_root

the web app root. All your web routes registered in your plugin must have a prefix of _root

For example

webapp.use(_root + '/register', function(req, res) {
});

webapp.post(_root + '/login', function(req, res) {
});

It could be configured in config file or through command line argument --root

Format of config file

Wavelet config file could be a json or a js file, or any nodejs requirable files. Config file must return a json object with following fields:

  • apps: [optional] the list of application plugin
  • home: the home path of your application, usually __dirname
  • root: the root web path, default: ''
  • binding: [optional] service implementation binding, if you have multiple implementation of same service, use this binding to choose the one you want to use
  • pluginSearchPaths: a list of paths to locate your plugins
  • defaultPluginConfig: default plugin configs. [JSON object], key is the plugin name, value is the config object
  • whiteList: [optional] the white list of plugin
  • blackList: [optional] the black list of plugin

Example:

module.exports = {
  "home": __dirname,
  "pluginSearchPaths": [
    __dirname + '/plugins',
    __dirname + '/../../fx-plugins'
  ],
  "defaultPluginConfig": {
    "fx-mongodb": {

    }
  }
};