1
0
Fork 0
mirror of https://github.com/mat-1/variance.git synced 2025-08-02 07:26:03 +00:00
An opinionated fork of Cinny that aims to align itself more closely with Discord
Find a file
2025-04-21 15:09:45 -13:45
.github format everything with prettier 2023-09-26 15:19:29 -05:00
.vscode Replace Webpack to Vite (#1023) 2022-12-20 20:47:51 +05:30
contrib/nginx rebrand to variance 2023-09-23 16:56:45 -05:00
public update to latest twemoji 2025-01-08 01:51:19 +00:00
src upgrade deps 2025-04-21 15:09:45 -13:45
.dockerignore Improve Dockerfile (#256) 2022-01-30 20:58:38 +05:30
.gitignore vendor yarn 2023-10-13 17:09:07 -05:00
.prettierignore Replace Webpack to Vite (#1023) 2022-12-20 20:47:51 +05:30
.prettierrc.json Replace Webpack to Vite (#1023) 2022-12-20 20:47:51 +05:30
.yarnrc.yml upgrade deps 2025-04-21 15:09:45 -13:45
_redirects added redirects 2021-07-31 12:55:20 +05:30
config.json halogen.place now not halogen.city 2023-10-13 18:26:46 -05:00
CONTRIBUTING.md link matrix space near beginning of readme 2023-10-14 13:04:27 -05:00
Dockerfile Fix mismatched yarn version in docker build (#10) 2024-11-09 21:44:01 -06:00
eslint.config.js fix loading encrypted images 2025-02-01 06:05:50 +00:00
index.html disable zoom on mobile and other qol changes 2025-01-07 10:19:20 +00:00
LICENSE Change license to AGPLv3 (#1115) 2023-02-24 17:28:04 +05:30
package.json upgrade deps 2025-04-21 15:09:45 -13:45
README.md preserve room on reload and proper forward/backward room nav 2025-02-09 03:57:21 +00:00
tsconfig.json prepare to start adding custom themes 2023-10-21 21:27:24 -05:00
vite.config.mts upgrade deps 2025-04-21 15:09:45 -13:45
viteSvgLoader.ts Vite plugin to add svg as inline data (#1072) 2023-01-15 09:52:58 +05:30
yarn.lock upgrade deps 2025-04-21 15:09:45 -13:45

Variance

A Matrix client that aims to be user-friendly and provide an experience similar to Discord. It's a hard-fork of Cinny.

Notable features

  • Markdown preview like Discord
  • More keybinds like Discord (esc to focus input and scroll down, alt+arrow to navigate rooms, back/forward navigation, etc)
  • Better markdown support like Discord
  • Indicator for when a message is still being sent, like Discord
  • Threads
  • Element-compatible theming
  • Private read receipts

Getting started

A web app is available at https://variance.matdoes.dev and is updated on every commit.

To host Variance on your own, build it with yarn build and serve the dist/ directory. To set default Homeserver on login and register page, place a customized config.json in webroot of your choice.

Local development

We recommend using a version manager as versions change very quickly. You will likely need to switch between multiple Node.js versions based on the needs of different projects you're working on. NVM on windows on Windows and nvm on Linux/macOS are pretty good choices. Also recommended nodejs version Hydrogen LTS (v18).

Execute the following commands to start a development server:

yarn # Installs all dependencies
yarn dev # Serve a development version

To build the app:

yarn build # Compiles the app into the dist/ directory

Running with Docker

This repository includes a Dockerfile, which builds the application from source and serves it with Nginx on port 80. To use this locally, you can build the container like so:

docker build -t variance:latest .

You can then run the container you've built with a command similar to this:

docker run -p 8080:80 variance:latest

This will forward your localhost port 8080 to the container's port 80. You can visit the app in your browser by navigating to http://localhost:8080.