
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Goodly is an unopininated microservice communication framework. It manages the low-level queing so you can focus on the important stuff: handling events.
Goodly has several design goals:
Goodly doesn't tell you the best way to structure you app, it gives you a set of tools and lets you build on-top of RabbitMQ. Goodly manages the AMQP exchange creation, queue creation, and messaging routing creation. It does all this to provide a simple interface for building your application that will automatically scale.
How easy it is to use? Create a service in a few lines of code...
import goodly from 'goodly';
const service = goodly({ name: 'documents' });
// start the service
service.start({ brokerPath: 'ampq://192.168.99.100' });
// listen for an event and do something
service.on('document.uploaded', async ({ data, emit }) => {
// do something with the data
let document = await saveDocumentAsync(data);
// emit another event
emit('document.available', document);
});
With the above code, you could start a single instance or 1000 instances. The work will be distributed between your instances automatically.
Promise start({ brokerPath, concurrent)
Starts the service and if necessary creates all exchange and queues owned by the service. Once start is complete, the service will immeidately begin pulling work from the service queue.
Parameters:
Promise stop()
stops the service and disconnects from RabbitMQ
Promise emit(path, data, options)
Emits a message with the specified path and data. Emit does not expect a response and is equivalent to pub/sub actions.
Paramters:
Promise request(path, data)
Makes a request with the specified path and data. Request will block until a response is received.
Paramters:
Promise on(path, fn1, fn2, ...)
Adds a handler to the service for supplied path. The supplied functions will be executed in order of attachment.
Parameters:
Handlers are called with an Event
object. The Event
object contains several methods and pieces of data:
Properties:
Methods:
FAQs
Microservice framework
The npm package goodly receives a total of 1 weekly downloads. As such, goodly popularity was classified as not popular.
We found that goodly 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 how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.