
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
diogenes-lantern
Advanced tools
This package visualise the dependency graph of a diogenes registry. It helps understanding the code in a visual way.

The idea is to import it as express middleware:
const express = require('express');
const lanternMiddleware = require('diogenes-lantern');
const app = express();
app.get('/', lanternMiddleware(getRegistry, { title: 'test' }))
app.listen(3000, () => console.log('Listening at: http://localhost:3000'))
The middleware takes a function that returns a diogenes registry. This function takes req and res as argument so it is able to extract a registry from there if necessary.
When hitting the endpoint you get a representation of the dependency graph. You can inspect every node and get helpful info such as documentation, file and line number etc. Here's an example implementation of getRegistry:
const getRegistry = (req, res) => registry.clone().addDeps({ req, res })
The "clone" ensure I am not changing the original registry.

FAQs
It helps debugging diogenes
The npm package diogenes-lantern receives a total of 0 weekly downloads. As such, diogenes-lantern popularity was classified as not popular.
We found that diogenes-lantern 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
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers