
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
Interactive process management system for node.js
# Global
npm -g install weaver
# Local
npm install weaver
If you have chosen local installation, check your PATH environment variable. npm creates symlinks to
all binaries in node_modules/.bin hidden folder. So you may want to prepend it to PATH.
weaver [--port <number>] [--config <path>] [--debug]
weaver [--port <number>] [--config <path>] upgrade
weaver [--port <number>] restart [[task|pid], ...]
weaver [--port <number>] stop [[task|pid], ...]
weaver [--port <number>] kill <signal> [[task|pid], ...]
weaver [--port <number>] drop <task>
weaver [--port <number>] [--nocolor] status
weaver [--port <number>] [--nocolor] dump
weaver [--port <number>] monitor
weaver [--port <number>] exit
upgrade Extend configuration with tasks from configuration filerestart Restart all tasks, task group, task by pidstop Stop all tasks, task group, task by pidkill Send signal to task group or task by piddrop Stop task group and remove it from configurationstatus Show status for all tasksdump Show current configurationmonitor Stream log messages from daemonexit Stop all tasks and exit--config Configuration file [default: weaver.json]
--debug Do not fork and give additional output
--nocolor Do not use colors for output
--help Show help and exit
--version Show version and exit
--port Use specified port [default: 8092]
Also WEAVER_PORT and WEAVER_DEBUG environment variables can be used to set options, but
command line options have higher priority.
{
"path": "..",
"tasks": {
"web": {
"count": 2,
"source": "lib/main.js",
"persistent": false,
"arguments": ["--web", "--port", [8001, 8002]],
"watch": ["lib/**/*.js", "config/default.js", "config/local.json"],
"env": {
"NODE_ENV": "local"
}
},
"worker": {
"count": 1,
"timeout": 2000,
"source": "lib/main.js",
"persistent": false,
"arguments": ["--worker"],
"watch": ["lib/worker/*.js"],
"env": {
"NODE_ENV": "local"
}
},
"redis": {
"count": 1,
"source": "redis-cli",
"executable": true,
"arguments": ["monitor"]
}
}
}
With such config file weaver will run three processes and restart them when one of watched files is modified. Fourth process will send commands from redis in monitor mode to log. Processes are organized in three groups and can be managed by group name. For example to restart web processes you need to say
weaver restart web
and to stop redis monitor
weaver stop redis
Processes in the web group get different command line arguments but similar environment. By default tasks have access to PATH, NODE_PATH and HOME
environment variables. NODE_PATH is set automatically only when executable flag is not set.
Bash commands to start processes manually in same way as weaver does in example above
NODE_ENV="local" node ../lib/main.js --web --port 8001
NODE_ENV="local" node ../lib/main.js --web --port 8002
NODE_ENV="local" node ../lib/main.js --worker
redis-cli monitor
path Path to working directory, relative to configuration file or absolute. Optionaltasks Task groupscount Task count for group. Can be zerosource Source file or executable for task group. Relative to cwd or absolutepersistent Restart task on unclean exit. Defaults to false. Boolean. Optionalexecutable Source is executable itself and v8 instance is not needed to run it. Defaults to false. Boolean. Optionalarguments Arguments for tasks in task group. Nested array should have length equal to task count. Optionalenv Environment variables for task group. Optionalwatch Restart all tasks in task group when one of watched files was modified. Optionaltimeout Timeout between SIGINT and SIGTERM for stop and restart commands. Defaults to 1000ms. Optionalruntime Minimal runtime required for persistent task to be restarted after unclean exit. Defaults to 1000ms. Optionalcwd Task group working directory. Relative to path or absolute. OptionalConfiguration file is validated with JSON Schema from file lib/schema.json.
Weaver will collect logs for you and send anything from subtasks stdout and stderr to udp4:localhost:8092 (or any other port of your choice). In debug mode this functionality is disabled and logs are printed to stdout. To do something with this logs you can use monitor mode
weaver monitor
Or any other program capable to capture udp
socat udp4-listen:8092 stdout
Copyright 2012-2016 Alexander Nazarov. All rights reserved.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
FAQs
Interactive process management system
The npm package weaver receives a total of 53 weekly downloads. As such, weaver popularity was classified as not popular.
We found that weaver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.