
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@flexwie/mikro
Advanced tools
mikro
aims to simplify developing microservices on nodejs by taking away the need to configure infrastructure. Simply write services with the framework and deploy them by ejecting the infrastructure for use with Docker or K8s. Read more on how to deploy mikro
at Deployment.
Install the framework from npm:
npm install --save @flexwie/mikro
Then use it in your microservice like so:
const { Mikro } = require('@flexwie/mikro')
/*
create a new instance and configure it (optional)
first parameter is the name of your service, second are options for your environement
*/
const mikro = new Mikro('example', {
redis: { // redis connection details
host: 'localhost',
port: 6379,
db: 0
}
})
// ... your microservice code here
// register your new service with the registry
mikro.register()
You can use the included CLI to quickly create a boilerplate. For more information see the CLI Readme.
npx @flexwie/mikro new service_name
mikro
will automatically send heath metrics to the registry in the background. You can then use mikro
s functions to help with your service. See detailed information below.
mikro
features an event stream for node communication and alerting.
// publish an event
mikro.events.publish("testevent", {data: "test"})
// add a new subscriber to an event
mikro.events.subscribe("testevent", (err, data) => {
console.log(data)
/*
{
emitterName: "automatically-generated-name",
timestamp: 123456789,
data: "test"
}
*/
})
FAQs
True microservices framework for nodeJs
The npm package @flexwie/mikro receives a total of 0 weekly downloads. As such, @flexwie/mikro popularity was classified as not popular.
We found that @flexwie/mikro 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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.