Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mx-puppet-bridge

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mx-puppet-bridge

Matrix Puppeting Bridge library

  • 0.0.25-1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Support Chat donate

mx-puppet-bridge

This is a library for easily building puppeting bridges for matrix.

A puppeting bridge is a bridge which logs into a remote account of a service for you (puppeting) and thus allows you to use it via matrix. Matrix will basically act as a client for that remote implementation. Double-puppeting is available, but 100% optional.

In addition to puppeting mode, this library also supports a relay mode: The account of the remote protocol is used as relay bot between the remote protocol and matrix.

Example implementation

  • Echo, this just echos back messages sent to it

Current protocol implementations

Docs

  • bridge.md
  • npm run docs

Features

Please note that not all protocol implementations support all features. This is just a feature list of the features available in this library.

  • Plain messages
  • Formatted messages
  • Message edits
  • Message redactions
  • Message reactions
  • Send files/images/videos/audio/etc.
  • Remote user mapping
  • Remote room mapping
  • Remote group mapping
  • Multi-account (many matrix users can start many remote links)
  • Automatic double puppeting
  • Relay mode

Group Mapping

For group mapping to work the homeserver in use has to support groups and group creation. For synapse, you need to set enable_group_creation: true in your homeserver.yaml. After that, in the protocols config.yaml set bridge.enableGroupSync to true.

Relay mode

Relay mode is a mode where the remote puppet acts as a relay bot, rather than a puppeting bot. In relay mode the display name of the author of the message on the matrix side is prepended to the message.

Automatic double-puppeting

It can be a hassle to have to tell the bridge what your access token is to enable double-puppeting. To circumvent that automatic double-puppeting is available. Configure your homeserver with matrix-synapse-secret-auth and set the secert for that homeserver in the bridge.loginSharedSecretMap mapping.

Bridging new protocols

To bridge a new protocol only a small amount of features has to be implemented. For examples see the corresponding section. For a full list of available endpoints, see bridge.md.

FAQs

Package last updated on 19 Jan 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc