
Product
Unify Your Security Stack with Socket Basics
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
@koyfin/ms-basement
Advanced tools
This package is the base for each microservice, which provides an interface for implementation by derived application. It powers up boundaries, handles startup and graceful shutdown, binds basic Node.js process
event handlers.
This package is a part of Koyfin microservices generator and does not need explicit installation in general case, but it still can be used as a standalone application base:
npm install @koyfin/basement
New application is created by extending the Basement
class and overriding constructor
arguments, startSequence
and stopSequence
methods.
//src/app.js
const Basement = require('@koyfin/ms-basement');
const settings = require('./settings');
const boundaries = {
inbound: require('./boundaries/inbound'),
outbound: require('./boundaries/outbound'),
};
module.exports = class App extends Basement {
/**
* @todo If necessary, implement custom logger
*/
constructor() {
super({ settings, boundaries });
}
async startSequence() {
await this.boundaries.inbound.init();
await this.boundaries.outbound.init();
}
async stopSequence() {
await this.boundaries.outbound.stop();
await this.boundaries.inbound.stop();
}
};
After that, instantiate the application and call it's public start
method:
// src/index.js
const App = require('./app');
const app = new App();
app.start();
FAQs
Koyfin microservices basement
We found that @koyfin/ms-basement demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.
Research
/Security News
The Socket Threat Research Team uncovered a coordinated campaign that floods the Chrome Web Store with 131 rebranded clones of a WhatsApp Web automation extension to spam Brazilian users.