All Projects → ruma → Homeserver

ruma / Homeserver

Licence: mit
A Matrix homeserver written in Rust.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Homeserver

Ngircd
Free, portable and lightweight Internet Relay Chat server
Stars: ✭ 292 (-73.19%)
Mutual labels:  chat, server
Nitro
A discord bot
Stars: ✭ 56 (-94.86%)
Mutual labels:  chat, server
Organizr
HTPC/Homelab Services Organizer - Written in PHP
Stars: ✭ 3,605 (+231.04%)
Mutual labels:  chat, server
Mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Stars: ✭ 3,448 (+216.62%)
Mutual labels:  application, server
Chatengine
Open source mtproto server written in golang with compatible telegram client
Stars: ✭ 544 (-50.05%)
Mutual labels:  chat, server
Mirage
A fancy, customizable, keyboard-operable Qt/QML & Python Matrix chat client for encrypted and decentralized communication.
Stars: ✭ 257 (-76.4%)
Mutual labels:  matrix, chat
Raspchat
A chat server that can run on Raspberry Pi
Stars: ✭ 418 (-61.62%)
Mutual labels:  chat, server
Element Rpm
Providing the Element messaging desktop client packaged for the Fedora, Red Hat(IBM), and OpenSUSE families of linux desktop operating systems.
Stars: ✭ 73 (-93.3%)
Mutual labels:  matrix, chat
Ejabberd
Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
Stars: ✭ 5,077 (+366.21%)
Mutual labels:  chat, server
Ssh Chat
Chat over SSH.
Stars: ✭ 4,512 (+314.33%)
Mutual labels:  chat, server
Nio
💬 Nio is an upcoming matrix client for iOS.
Stars: ✭ 235 (-78.42%)
Mutual labels:  matrix, chat
Appserver
A multithreaded application server for PHP, written in PHP.
Stars: ✭ 930 (-14.6%)
Mutual labels:  application, server
Maelstrom
High performance Matrix Home Server in rust.
Stars: ✭ 156 (-85.67%)
Mutual labels:  matrix, chat
Matrix Dimension
An open source integration manager for matrix clients, like Element.
Stars: ✭ 277 (-74.56%)
Mutual labels:  matrix, chat
Matrix Commander
simple but convenient CLI-based Matrix client app for sending and receiving
Stars: ✭ 90 (-91.74%)
Mutual labels:  matrix, chat
Nheko
No longer maintained - Desktop client for the Matrix protocol (active fork https://github.com/Nheko-Reborn)
Stars: ✭ 410 (-62.35%)
Mutual labels:  matrix, chat
Tigase Server
Highly optimized, extremely modular and very flexible XMPP/Jabber server
Stars: ✭ 170 (-84.39%)
Mutual labels:  chat, server
Matrixcli
Command line matrix client
Stars: ✭ 69 (-93.66%)
Mutual labels:  matrix, chat
Quaternion
A Qt5-based IM client for Matrix
Stars: ✭ 438 (-59.78%)
Mutual labels:  matrix, chat
Skillbox Chat 08 19
Skillbox demo application for the Python course
Stars: ✭ 25 (-97.7%)
Mutual labels:  chat, server

This repository contains the discontinued Matrix homeserver written in Rust, Ruma.

For details on the death of the project, see this blog post.

Below, you can find the previous contents of this readme. For the rest of the files, go to the master branch.

Ruma

Ruma is a Matrix homeserver written in Rust.

If you're interested in the project, please take a look at the Ruma website, follow ruma_io on Twitter and chat with us in #ruma:matrix.org on Matrix (also accessible via #ruma on the freenode IRC network.)

Status

The goal of Ruma as a project is to provide a complete implementation of a Matrix homeserver, a Matrix identity server, a Matrix client library, and Matrix application services. This repository in particular aims to implement a Matrix homeserver. The Ruma homeserver will be packaged as a single executable for small-scale deployments, and as multiple executables for large deployments that need to scale different parts of the homeserver independently. Additional Matrix libraries used by Ruma can be found in the Ruma organization on GitHub.

For a detailed view of which Matrix APIs are supported by Ruma so far, see the STATUS document.

Development

Ruma includes a development setup using Docker. To install Docker, see the installation instructions for OS X, Linux, or Windows. (Note that both Docker and Docker Compose are needed, but the standard ways of installing include both.)

Note: docker-compose version 1.6 or higher and docker-engine version 1.10.0 or higher are required.

Cargo is the main entrypoint for development. Use the script/cargo shell script as you would normally use plain cargo. This will run the Cargo command inside a Docker container that has Rust and other dependencies already installed. It will automatically start a PostgreSQL database inside a container as well. The first time you run a command with script/cargo, it will take some time to download the Docker images.

To build Ruma, run script/cargo build --bin ruma. The application will be written to target/debug/ruma. You can also build and run Ruma in one step with script/cargo run --bin ruma. (When run via Cargo, arguments to ruma itself must come after two dashes, e.g. script/cargo run --bin ruma -- run.)

Minimum Rust version

Ruma requires Rust 1.34 or later.

Developing without Docker

Docker is used to make everyone's life easier including packaging Rust along with Ruma's other dependencies, and managing test PostgreSQL databases, all without assuming anything about the host system. If you really want to avoid Docker, it's up to you to configure your development environment to match the assumptions made by code in Ruma. In particular, this means at least the minimum version of Rust, all the system-level dependencies such as libsodium, and a PostgreSQL installation with suitable permissions available at the address and port used in src/test.rs.

Documentation

To generate API documentation for Ruma, run script/cargo doc. Then open target/doc/ruma/index.html in your browser. Note that this documentation is for Ruma's internal Rust code, not the public-facing Matrix API. User-facing documentation will live on the Ruma website.

Testing

Ruma includes an integration test suite. Once Docker is installed, run script/cargo test to run the test suite.

Configuration

Ruma requires a configuration file named ruma.json, ruma.toml, or ruma.yaml/ruma.yml written in JSON, TOML, or YAML, respectively. This file should be in the working directory ruma is executed from. Ruma will attempt to load the configuration file in that same order, stopping at the first one it finds. A configuration file would look something like this, in the JSON format:

{
  "version": "1",
  "domain": "example.com",
  "macaroon_secret_key": "qbnabRiFu5fWzoijGmc6Kk2tRox3qJSWvL3VRl4Vhl8=",
  "postgres_url": "postgres://username:[email protected]:5432/ruma"
}

The complete list of attributes in the configuration is as follows:

  • bind_address (string, default: "127.0.0.1"): The network address where the server should listen for connections.
  • bind_port (string, default: "3000"): The network port where the server should listen for connections.
  • domain (string, required): The DNS name where clients can reach the server. Used as the hostname portion of user IDs.
  • macaroon_secret_key (string, required): The secret key used for generating Macaroons. Must be 32 cryptographically random bytes, encoded as a Base64 string. Changing this value will invalidate any previously generated macaroons, effectively ending all user sessions.
  • postgres_url (string, required): A PostgreSQL connection string for Ruma's PostgreSQL database.
  • version (string, required): The version of the Ruma configuration file format that this configuration represents. This field allows Ruma to make backwards-incompatible changes to the configuration file format over time without breaking existing deployments. Currently the only valid value is "1".

Usage

ruma 0.1.0
A Matrix homeserver.

USAGE:
    ruma [FLAGS] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    help      Prints this message or the help message of the given subcommand(s)
    run       Runs the Ruma server
    secret    Generates a random value to be used as a macaroon secret key

Before you run ruma run, make sure you have a configuration file in the working directory named ruma.json and that a PostgreSQL server is running and available at the location specified in the configuration file. Ruma will automatically create the database (if it doesn't already exist) and manage the database schema. You are responsible for providing Ruma with a valid PostgreSQL server URL and role that can perform these operations.

Swagger

Ruma includes an HTTP endpoint to serve Swagger data at http://example.com/ruma/swagger.json (substituting the host and port of your Ruma server for example.com, of course.) Point a copy of Swagger UI at this URL to see complete documentation for the Matrix client API. Note that Ruma does not actually implement all these API endpoints yet.

Contributing

See the CONTRIBUTING document.

Dedication

Ruma is dedicated to my best friend, Tamara Boyens, who passed away in January 2017. She and I talked online for hours every day. She was a large part of my motivation in starting Ruma, because our online communication was where we spent the most time together after we both moved away from the city where we met, and we were always looking for a system that would fix our grievances with all the subpar choices we had for chatting.

— Jimmy Cuadra

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].