New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hyper-ipc-secure

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyper-ipc-secure

Hyperswarm IPC Library

latest
Source
npmnpm
Version
1.4.48
Version published
Weekly downloads
8
300%
Maintainers
1
Weekly downloads
 
Created
Source

hyper-ipc-secure

hyper-ipc-secure is a version of hyper-ipc where you can have many named endpoints and the client needs only a pubkey and a name. This library allows you to split your program into different parts, and use it to get one part to ask another to run code, and receive the response, allowing you to expose your functions remotely. The different instances will automatically find each other and connect using a peer-to-peer library called hyperswarm. You can hand the constructor a secret key when you create it to make endpoints harder to guess. Communication is noise encrypted.

Installation

To install hyper-ipc-secure, follow the steps below:

  • Ensure that you have Node.js and npm installed on your machine.
  • Run the following command in your terminal:
npm install --save hyper-ipc-secure

This will install hyper-ipc-secure and save it as a dependency in your project.

The different instances will automatically find each other and connect using a peer-to-peer library called hyperswarm.

You can hand the constructor a secret key when you create it to make endpoints harder to guess.

Communication is noise encrypted.

UPDATE:

There is a new webhook client available in this project, this allows you to run a local webhook that executes code on remote hyperswarm based nodes, giving you easy access to all your swarms for webhook based tools like n8n

Usage

Here are some examples of how to use hyper-ipc-secure:

  • Calling remote code with parameters:
const ipc = require('hyper-ipc-secure');
//kp needs at both private and public keys to spawn
const output = await ipc.serve(kp.publicKey, 'hello.world', (input)=>{
    console.log(input);
    return {success:true};
}));
const ipc = require('hyper-ipc-secure');
//kp needs at least publicKey defined to run calls
const output = await ipc.run(kp.publicKey, 'hello.world', {hello:"world"});
console.log(output.success);

Please refer to the examples directory for more detailed examples.

Contributing

We welcome contributions to hyper-ipc-secure! Here are the steps to contribute:

  • Fork the repository.
  • Create a new branch for your changes.
  • Make your changes in your branch.
  • Submit a pull request with your changes.

Please make sure to update tests as appropriate and follow the code style of the project.

FAQs

Package last updated on 23 May 2024

Did you know?

Socket

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.

Install

Related posts