Socket
Book a DemoInstallSign in
Socket

@moleculer/lab

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moleculer/lab

[![NPM version](https://badgen.net/npm/v/@moleculer/lab)](https://www.npmjs.com/package/@moleculer/lab) [![Moleculer](https://badgen.net/badge/Powered%20by/Moleculer/0e83cd)](https://moleculer.services)

latest
npmnpm
Version
0.6.5
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

Moleculer Laboratory - Agent Service

NPM version Moleculer

Install

npm i @moleculer/lab --save

Usage

Laboratory Agent service

// lab.service.js
const Laboratory = require("@moleculer/lab");

module.exports = {
    mixins: [Laboratory.AgentService],
    settings: {
        token: "<something secret text>", // or set process.env.LAB_TOKEN
        apiKey: "<your API key>" // or set process.env.LAB_APIKEY
    }
};

The API key is sent to beta testers in e-mail.

Open the https://lab.moleculer.services and add a new project with the http://localhost:3210 URL and use the given (or generated) token.

Laboratory Metric Reporter

// moleculer.config.js
const Laboratory = require("@moleculer/lab");

module.exports = {
    // ...
    metrics: {
        enabled: true,
        reporter: "Laboratory"
    },        
    // ...
}

Laboratory Tracing Exporter

// moleculer.config.js
const Laboratory = require("@moleculer/lab");

module.exports = {
    // ...
    tracing: {
        enabled: true,
        exporter: "Laboratory"
    },       
    // ...
}

Laboratory Logger

// moleculer.config.js
const Laboratory = require("@moleculer/lab");

module.exports = {
    // ...
	logger: [{
		type: "Console",
		options: { /*...*/ }
	}, "Laboratory"],    
    // ...
}

Contact

Copyright (c) 2016-2025 MoleculerJS

@moleculerjs @MoleculerJS

FAQs

Package last updated on 18 Apr 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.