Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@keawade/framethework
Advanced tools
Framethework is a microservices framework built on top of NATS.
Using Framethework requires a NATS server. All examples assume a NATS server is already running unless otherwise specified.
This basic example shows how to create a small math
service to add two numbers
and call it locally.
import { action, Broker, Service } from '@keawade/framethework';
// Write a service
class MathService extends Service {
public name = 'math';
@action()
public add(params: { a: number, b: number }): number {
return params.a + params.b;
}
}
// Create a broker
const broker = new Broker();
// Register your service(s) with the broker
broker.registerService(MathService);
// Start the broker
broker.start()
// Call the service
.then(() => broker.call('math.add', { a: 5, b: 3 }))
// Print the response
.then(res => console.log('5 + 3 =', res))
.catch(err => console.error(`Error occurred! ${err.message}`));
framethework-runner
Framethework Runner is a utility that helps you run Framethework services. With
it you don't need to create a Broker instance. Instead you can simply call the
framethework-runner
with paths to your service class files and it will automatically
create a broker and load your services.
framethework-runner ./path/to/MyService.js
Check out the examples/
directory for some example services.
FAQs
Microservices framework built on NATS
The npm package @keawade/framethework receives a total of 6 weekly downloads. As such, @keawade/framethework popularity was classified as not popular.
We found that @keawade/framethework 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.