Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
octopod
Advanced tools
Readme
Octopod is a npm package to ease the making of octopod services and octopod service calls in the octopod network.
The octopod network is a network working around one or many octopod cores. An octopod core is a webdav server which allow the management of octopod services and allow them to work together. An octopod service is a node in the octopod network linked directly to the octopod core. A client or another octopod service can command or call a method of a octopod service through the octopod core.
Here is a generic example of an octopod :
This module allow to :
npm install octopod
import { Service } from 'octopod'
class BlaBlaService extends Service
{
constructor(coreUrl : string)
{
super('blabla', coreUrl);
}
start()
{
this.reference({
inputs: {
'methodName': {
isVolatile: true,
mainOutputMethod: 'outputMethodName', // The outputMethodName which will contain the returned data
outputs: {
'outputMethodName': 1 // Might pipe to another method
}
}
}
}, (e) => {
if(e)
throw e;
this.bindMethod('methodName', (data, info) => {
this.putObject(info.mainOutput, {
value: data.value + ' blabla'
}, (e) => {
this.log('Responded');
this.dispose(info);
})
})
})
}
}
const service = new BlaBlaService('http://...');
// Define a command "stop" for this service
service.commands['stop'] = (input, cb) => {
cb();
process.exit();
}
service.start();
import { call } from 'octopod'
this.call('http://...', 'blabla', 'methodName', {
value: 'so?'
}, (response, paths, cleanup) => {
console.log(response.value); // Will display 'so? blabla'
cleanup();
})
FAQs
Classes and interfaces to help the making of services or the call of services for the 'octopod-core' npm package.
The npm package octopod receives a total of 6 weekly downloads. As such, octopod popularity was classified as not popular.
We found that octopod 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.