
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
etcd-registry-router
Advanced tools
Route http requests to services registered in etcd-registry
npm install etcd-registry-router
etcd-registry-router is a http server that forwards requests (and websockets!) to services registered in etcd-registry.
var router = require('etcd-registry-router');
var server = router('127.0.0.1:4001', function(request, route) {
// pass a service name or service object to route the http request
route(request.headers.host);
});
server.on('route', function(request, service) {
console.log('Routing', request.url, 'to', service.name);
});
server.listen(8080);
The above snippet will start the router and route requests to services registered under {host-header}.
To create a service that accepts all requests routed to example.com do.
var registry = require('etcd-registry');
var services = registry('127.0.0.1:4001');
var server = http.createServer(function(request, response) {
response.end('hello from service')
});
server.listen(0, function() { // listening on 0 will just give you a free port
services.join('example.com', {port:server.address().port});
});
See example.js for a working example.
MIT
FAQs
Route http requests to services registered in etcd-registry
We found that etcd-registry-router 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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.