npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hubot-freddie

v0.0.7

Published

Rocket.Chat's Hubot for Federation with matrix.org

Downloads

16

Readme

hubot-freddie

Freddie is Rocket.Chat's Hubot for Federation via matrix.org

Freddie pairs a Rocket.Chat server with a Synapse Home Server.

From Rocket.Chat:

Rocket.Chat in federated channel

To Home Server:

Synapse in federated room

Out to the rest of the federated world - Slack, IRC, and beyond ... via matrix.org

NOTE: This project is a work in progress.

Installation

npm install --save hubot-freddie

Next, you must edit the external-scripts.json file to load Freddie:

[
  ...
  "hubot-freddie"
]

Home Server Application Service Registration

In the node_modules/hubot-freddie directory:

npm install
node src/matrix/genASRegFile.js -r -u <URL of hubot-freddie's incoming webhook>

This will generate a rocketchat-registration.yaml file in the same directory.

Copy this file to both your Rocket.Chat server and Synapse Home Server. Note the absolute path(s).

The format of the generated file is somewhat outdated, please add the following line at the top of the Synapse Home Server's copy:

id: "rocketchat"

On your home server, make sure to add an entry in homeserver.yaml to point to this file:

app_service_config_files: ["/absolute/path/to/rocketchat-registration.yaml"]

You will also need to configure Freddie for your Rocket.Chat server and Synapse Home sever..

#Configuration

You can configure Freddie via environment variables.

Configuration Options

Here are all of the options you can specify to configure hubot-freddie.

Note that these options are in addition to the options available with the hubot-rocketchat adpaters. Please see hubot-rocketchat adapter configuration options for more information.

Configure via: export VAR=Value or add to pm2 etc

Environment Variable | Description :---- | :---- HOMESERVER_URL | the URL where your Home Server is running, as seen by the bot, specify as http://host:port with no trailing slash HOMESERVER_DOMAIN | the domain of the Home Server HOMESERVER_ROOM_ID | the id of the federated room on the Home Server; note this must be the ID and not the textual name of the room ROCKETCHAT_ROOM_ID | the id of the federated room on the Rocket.Chat Server; note this must be the ID and not the textual name of the room HOMESERVER_SENDER_LOCAL | the local user on the Home Server that will create new users and send messages on behalf of incoming Rocket.Chat messages INCOMING_PORT | the port at which this bot will listen to incoming messages from the Home Server ROCKETCHAT_USER_PREFIX | the prefix added to the Rocket.Chat user name when messages are sent on his/her behalf to the Home Server WRITABLE_CONFIG_PATH | the absolute path of the directory where the bot's Matrix bridge can find the rocketchat-registration.yaml Application Service configuration file, this file must be identical to the one registered with the Home Server ROOM_MAP | a list of rooms to map, use ID_ROCKETCHAT=ID_MATRIX,...,... same as HOMESERVER_ROOM_ID ROCKETCHAT_ROOM_ID