
Security News
gem.coop Tests Dependency Cooldowns as Package Ecosystems Move to Slow Down Attacks
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.
docker-browser-console
Advanced tools
Forward input/output from docker containers to your browser
npm install docker-browser-console
To quickly try out a demo clone this repo and
npm install
npm run demo
First browserify the following code to bundle.js to create a terminal in your browser
var docker = require('docker-browser-console')
var websocket = require('websocket-stream')
// create a stream for any docker image
var terminal = docker() // use docker({style:false}) to disable default styling
// connect to a docker-browser-console server
terminal.pipe(websocket('ws://localhost:10000')).pipe(terminal)
// append the terminal to a DOM element
terminal.appendTo(document.body)
You can add that to an index.html page by doing
<!DOCTYPE html>
<html>
<body>
<script src="bundle.js">
</body>
</html>
Then create a server that will host our docker containers
var ws = require('ws')
var websocket = require('websocket-stream')
var docker = require('docker-browser-console')
var server = new ws.WebSocketServer({port:10000})
server.on('connection', function(socket) {
socket = websocket(socket)
// this will spawn the container and forward the output to the browser
socket.pipe(docker('mafintosh/dev')).pipe(socket)
})
Now simply run the server and open index.html in your browser.
You should be able to see a terminal running my dev image
MIT
FAQs
Forward input/output from docker containers to your browser
The npm package docker-browser-console receives a total of 15 weekly downloads. As such, docker-browser-console popularity was classified as not popular.
We found that docker-browser-console demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.