Git Product home page Git Product logo

polyphony's Introduction

Discord Build Issues


The Polyphony logo. a purple, square background with rounded edges. on this background, there are four vertically stacked, white lines. The lines each resemble a sine curve, although they are all shaped a little differently.

Polyphony

A multi-instance, cross-platform Discord/Spacebar API-compatible chat client, written in Rust using leptos and optionally Tauri.
Explore the docs »

Report Bug · Request Feature · Join Discord

Mockup of the 'Polyphony' client, set in dark purple hues. The bottom navigation bar displays connection to 2 instances, user '@Flori#7676' status on 'spacebar.chat', green 'online' status symbol, a 'coding' status, and 'Visual Studio code' playing. A left-side guild navigator hosts gray circles for guild previews, with one selected guild marked by a purple dot. A card-like guild preview on the right showcases the chosen 'Polyphony' guild, marked 'public' and 'verified', on a purple-blue gradient background. Beneath, a channel preview lists two categories, each with three channels coded by icons: 'welcome' (hashtag), 'announcements' (megaphone), and additional 'welcome' channels (hashtags). A centered search bar features the text 'search for anything' and an icon with three dots. At the bottom, a text input box labeled 'say something' is flanked by a paperclip and three-dots icons. early mockup of the client, not indicative of the current state of the code.

Setting up a dev environment

This repository uses Tauri 2.0.0-alpha for mobile support in the future. Tauri-generated mobile project files can be found under crates/polyphony-tauri/gen/android and /apple for Android and iOS respectively.

Add wasm as a compilation target

rustup target add wasm32-unknown-unknown

Install tauri-cli and trunk

cargo install tauri-cli trunk --locked

To start the web-based application, change into the crates/polyphony-wasm directory and run trunk serve.

To start the Tauri powered Desktop-App instead, change into the crates/polyphony-tauri directory and run cargo tauri dev.

Note that the Tauri Dev Server will try to run and listen for the trunk serve Dev server. If it fails to do so (perhaps because Port 8080 is already occupied), it will not be able to start the Tauri App.

polyphony's People

Contributors

bitfl0wer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

polyphony's Issues

Backend: Login function

The backend needs an implemented auth::fosscord_login() function, which can then be called from the frontend using a tauri command. The function should take in a backend::FosscordBackend and on success, return a String which is just the token received from the server, nothing else.

Remove code duplication in crate::auth::auth

In crate::auth::auth, we have the register_fosscord and login_fosscord methods. They do almost the exact same thing, which is send a POST request with a json body to an API route, handling any errors that may occur on the way and return an outcome. This code could very easily be put into one method, which would make it re-usable and remove code duplicates :)

Synchronize encrypted messages across a users devices, securely

To offer a better user experience, it should be considered if we should add a feature which allows an initial synchronization of messages from an already existing device to another, so that all the devices of a user would have the same message history. A potential concern here would be the possible loss of Forward Secrecy if a users device is compromised.

List Guilds, Channels and Messages

When #9 gets completed, we can focus on getting all the users' Guilds, the channels in those guilds, and the messages in these channels. I think some additional input is needed here, as to what exactly "getting" means, where we cache these things, if we even cache these things, and how the frontend will ultimately get this information.

Attach serenity client to SpacebarBackend

Once registration and login (#8) have been implemented in the rust backend, we can use the token we get from these functions to create a serenity client, which should do all the heavy lifting of connecting to a websocket etc. for us. The serenity client should be added to the backend::SpacebarBackend.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.