Gathering detailed insights and metrics for moleculer
Gathering detailed insights and metrics for moleculer
🚀 Progressive microservices framework for Node.js
npm install moleculer
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (99.43%)
TypeScript (0.44%)
Thrift (0.08%)
Shell (0.05%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
10,606,102
Last Day
8,143
Last Week
42,543
Last Month
160,772
Last Year
2,028,822
MIT License
6,218 Stars
4,280 Commits
588 Forks
125 Watchers
7 Branches
121 Contributors
Updated on Feb 13, 2025
Minified
Minified + Gzipped
Latest Version
0.14.35
Package Id
moleculer@0.14.35
Unpacked Size
1.16 MB
Size
255.05 kB
File Count
161
NPM Version
6.14.16
Node Version
12.22.12
Published on
Nov 06, 2024
Cumulative downloads
Total Downloads
Last Day
7.7%
8,143
Compared to previous day
Last Week
7.4%
42,543
Compared to previous week
Last Month
30.1%
160,772
Compared to previous month
Last Year
-28.5%
2,028,822
Compared to previous year
10
22
55
Moleculer is a fast, modern and powerful microservices framework for Node.js. It helps you to build efficient, reliable & scalable services. Moleculer provides many features for building and managing your microservices.
Website: https://moleculer.services
Documentation: https://moleculer.services/docs
![]() |
$ npm i moleculer
or
$ yarn add moleculer
This example shows you how to create a small service with an add
action which can add two numbers and how to call it.
1const { ServiceBroker } = require("moleculer"); 2 3// Create a broker 4const broker = new ServiceBroker(); 5 6// Create a service 7broker.createService({ 8 name: "math", 9 actions: { 10 add(ctx) { 11 return Number(ctx.params.a) + Number(ctx.params.b); 12 } 13 } 14}); 15 16// Start broker 17broker.start() 18 // Call service 19 .then(() => broker.call("math.add", { a: 5, b: 3 })) 20 .then(res => console.log("5 + 3 =", res)) 21 .catch(err => console.error(`Error occurred! ${err.message}`));
Use the Moleculer CLI tool to create a new Moleculer based microservices project.
Create a new project (named moleculer-demo
)
1$ npx moleculer-cli -c moleculer init project moleculer-demo
Open the project folder
1$ cd moleculer-demo
Start the project
1$ npm run dev
Open the http://localhost:3000/ link in your browser. It shows a welcome page that contains more information about your project & you can test the generated services.
:tada: Congratulations! Your first Moleculer-based microservices project is created. Read our documentation to learn more about Moleculer.
We have many official modules for Moleculer. Check our list!
Moleculer is an open source project. It is free to use for your personal or commercial projects. However, developing it takes up all our free time to make it better and better on a daily basis. If you like Moleculer framework, please support it.
Thank you very much!
Available as part of the Tidelift Subscription.
The maintainers of moleculer and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.
You can find here the documentation.
See CHANGELOG.md.
To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.
We welcome you to join in the development of Moleculer. Please read our contribution guide.
Moleculer is available under the MIT license.
Copyright (c) 2016-2023 MoleculerJS
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
18 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/10 approved changesets -- score normalized to 6
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
badge detected: InProgress
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More