
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A standalone, node.js-based beacon receiver for boomerang. Read more.
First you must install node.
You can then install boomcatch via npm:
npm install -g boomcatch
Add boomcatch
to the dependencies
in your project's package.json
,
then run:
npm install
To see the list of command line options run:
boomcatch --help
Available options are:
--host <name>
:
Host name to accept HTTP connections on.
The default is 0.0.0.0 (INADDR_ANY).
--port <port>
:
Port to accept HTTP connections on.
The default is 80.
--path <path>
:
URL path to accept requests to.
The default is /beacon.
--referer <regex>
:
HTTP referers to accept requests from.
The default is .*
.
--origin <origin>
:
Comma-separated list of URL(s)
for the Access-Control-Allow-Origin header.
The default is * (any origin),
specify 'null' to force same origin.
--limit <milliseconds>
:
Minimum elapsed time to allow
between requests from the same IP adderss.
The default is 0.
--maxSize <bytes>
:
Maximum body size to allow for POST requests.
The default is -1 (unlimited).
--silent
:
Prevent the command
from logging output
to the console.
--syslog <facility>
:
Use syslog-compatible logging,
with the specified facility level.
--workers <count>
:
The number of worker processes to spawn.
The default is -1
(one worker per CPU).
--validator <path>
:
Validator used to accept or reject request data.
The default is permissive
(always accept requests).
--mapper <path>
:
Data mapper used to transform data before forwarding,
loaded with require.
The default is statsd.
--prefix <prefix>
:
Prefix for mapped metric names.
The default is the empty string
(no prefix).
--forwarder <path>
:
Forwarder used to send data,
loaded with require.
The default is udp.
--fwdHost <name>
:
Host name to forward mapped data to.
The default is 127.0.0.1.
This option is only effective
with the UDP forwarder.
--fwdPort <port>
:
Port to forward mapped data on.
The default is 8125.
This option is only effective
with the UDP forwarder.
--fwdSize <bytes>
:
Maximum packet size
for forwarded data.
The default is 512.
This option is only effective
with the UDP forwarder.
--fwdUrl <url>
:
URL to forward mapped data to.
This option is only effective
with the HTTP forwarder.
--fwdMethod <method>
:
Method to forward mapped data with.
The default is GET.
This option is only effective
with the HTTP forwarder.
--fwdDir <path>
:
Directory to write mapped data to.
This option is only effective
with the file forwarder.
var path = require('path'),
boomcatch = require('boomcatch');
boomcatch.listen({
host: 'rum.example.com', // Defaults to '0.0.0.0' (INADDR_ANY)
port: 8080, // Defaults to 80
path: '/perf', // Defaults to '/beacon'
referer: /^\w+\.example\.com$/, // Defaults to /.*/
origin: [ // Defaults to '*'
'http://foo.example.com',
'http://bar.example.com'
],
limit: 100, // Defaults to 0
maxSize: 1048576, // Defaults to -1
log: console.log, // Defaults to function () {}
workers: require('os').cpus().length, // Defaults to 0
validator: path.resolve('./myvalidator'), // Defaults to 'permissive'
mapper: path.resolve('./mymapper'), // Defaults to 'statsd'
prefix: 'mystats.rum.', // Defaults to ''
forwarder: 'http', // Defaults to 'udp'
fwdUrl: 'https://stats.example.com/', // No default
fwdMethod: 'POST' // Defaults to 'GET'
});
Boomcatch implements four extension points to control how beacon requests are handled: validators, filters, mappers and forwarders.
Before sumitting any pull requests, please ensure that you have adhered to the contribution guidelines.
To clone the repository:
git clone git@github.com:nature/boomcatch.git
To set up the development environment:
npm install
To lint the code:
npm run lint
To run the unit tests:
npm test
Copyright © 2014 Nature Publishing Group
1.5.2
FAQs
A standalone, node.js-based beacon receiver for boomerang.
The npm package boomcatch receives a total of 14 weekly downloads. As such, boomcatch popularity was classified as not popular.
We found that boomcatch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.