
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.
larvitadmingui
Advanced tools
node.js admin GUI
npm i larvitadmingui;
In your app, start the admin interface like this:
'use strict';
const Intercom = require('larvitamintercom'),
UserLib = require('larvituser'),
winston = require('winston'),
log = winston.createLogger({'transports': [new winston.transports.Console()]}),
App = require('larvitadmingui'),
db = require('larvitdb');
let userLib,
app;
db.setup(...); // See https://github.com/larvit/larvitdb on how to configure the database
userLib = new UserLib({
'db': db,
'log': log,
'mode': 'master',
'intercom': new Intercom({'conStr': 'loopback interface', 'log': log})
});
app = new App({
'port': 8001, // Listening port
'userLib': userLib,
'log': log,
'db': db
});
Start it up and check your browser at http://127.0.0.1:8001 - be sure to setup your MySQL or MariaDB correctly with your database settings in this file.
'use strict';
exports.run = function(req, res, cb) {
const data = {'global': res.globalData};
data.global.messages = ['Happy message'];
data.global.errors = ['Sad message'];
cb(null, req, res, data);
};
To set messages to the next page load, do this:
if ( ! req.session.data.nextCallData)
req.session.data.nextCallData = {};
req.session.data.nextCallData = {'global': {'messages': ['Happy message']}};
// or
req.session.data.nextCallData = {'global': {'errors': ['Sad message']}};
These will be loaded on the next page load, and then erased again.
FAQs
Generic admin GUI
The npm package larvitadmingui receives a total of 5 weekly downloads. As such, larvitadmingui popularity was classified as not popular.
We found that larvitadmingui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

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