Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
brb-site
Advanced tools
Readme
Simple web server that returns a maintenance message
Sure, it shouldn't ever happen. Failover should work just fine. The deploy should be instant. Then, somehow, the worst happens: it stalls. You need a downtime message, and fast! Just type brb-site
and breathe easily for a moment.
brb-site
serves a simple downtime message HTML page with client-side JavaScript to push users to your site once it's back. Every 15 seconds, the page makes a request to the server in the background. So long as it gets back a response, the page reloads. If brb-site
is still running, nothing will change. If your site is back, this ensures they're bounced back to it as soon as possible. If the server is hard-down while your site is spinning up, the page won't reload until it's up.
$ npm install -g brb-site
$ brb-site
Alternatively, use npm link
to link the cli interface globally.
$ npm install
$ npm link
$ brb-site
A pm2
ecosystem file is also included. To run as a daemon, install pm2
and run:
$ pm2 start ecosystem.config.js
Configuration is pulled from the process env
, or a .env
file if one is present.
PORT
Number. Which port to run the server on. Default: 80
VERBOSE
Boolean. Whether to log all requests to the console. Default: true
$ export PORT=8080 && brb-site
You may also use brb-site
as a dependency in your project.
const BRBServer = require('brb-site');
const brb = new BRBServer({ port: 8080, verbose: true });
brb.start();
// ...
brb.stop();
Is this some kind of joke?
Yes.
MIT © Jesse Youngblood
FAQs
Simple web server that returns a maintenance message
The npm package brb-site receives a total of 2 weekly downloads. As such, brb-site popularity was classified as not popular.
We found that brb-site 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.