{"id":28384401,"url":"https://github.com/polyphony-chat/symfonia","last_synced_at":"2025-10-25T23:09:07.058Z","repository":{"id":168310673,"uuid":"637010549","full_name":"polyphony-chat/symfonia","owner":"polyphony-chat","description":"A Polyphony chat server, compatible with Spacebar and the Discord API.","archived":false,"fork":false,"pushed_at":"2025-06-18T09:43:38.000Z","size":988,"stargazers_count":50,"open_issues_count":44,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-18T10:38:58.652Z","etag":null,"topics":["chat","chat-server","discord","polyphony","spacebar"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/polyphony-chat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["bitfl0wer"]}},"created_at":"2023-05-06T08:24:12.000Z","updated_at":"2025-06-18T09:43:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2532c65-2636-4bbd-99c2-c0c750fd5732","html_url":"https://github.com/polyphony-chat/symfonia","commit_stats":null,"previous_names":["zert3x/spacebar-oxidized","polyphony-chat/symfonia"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/polyphony-chat/symfonia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyphony-chat%2Fsymfonia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyphony-chat%2Fsymfonia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyphony-chat%2Fsymfonia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyphony-chat%2Fsymfonia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polyphony-chat","download_url":"https://codeload.github.com/polyphony-chat/symfonia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyphony-chat%2Fsymfonia/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261972554,"owners_count":23238537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chat","chat-server","discord","polyphony","spacebar"],"created_at":"2025-05-30T08:30:27.677Z","updated_at":"2025-10-25T23:09:07.041Z","avatar_url":"https://github.com/polyphony-chat.png","language":"Rust","funding_links":["https://github.com/sponsors/bitfl0wer"],"categories":[],"sub_categories":[],"readme":"\u003e [!IMPORTANT]\n\u003e 📦️ We moved! Come check out our new place over on [Codeberg](https://codeberg.org/polyphony)! ([Repository link](https://codeberg.org/polyphony/symfonia))\n\u003e\n\u003e We have moved to [Codeberg](https://codeberg.org/polyphony) as our primary Git Forge, and the project is *alive and well* over there! :purple_heart: The GitHub repositories will be archived and potentially deleted in the future.\n\n\u003cdiv align=\"center\"\u003e\n\n[![Discord]][Discord-invite]\n\u003cimg src=\"https://img.shields.io/static/v1?label=Status\u0026message=Early%20Development\u0026color=blue\"\u003e\n[![FAQ-shield]][FAQ]\n\n[FAQ-shield]: https://img.shields.io/badge/Frequently_Asked_Questions_(FAQ)-ff62bd\n[FAQ]: https://github.com/polyphony-chat/.github/blob/main/FAQ.md\n\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \n  \u003cimg width=\"128\" src=\"https://github.com/polyphony-chat/branding/blob/main/logos/polyphony-symfonia-transparent-8bit.png?raw=true\" alt=\"The Symfonia logo. a dark, square background with rounded edges. on this background, there are four vertically stacked, purple lines. The lines are all vaguely u-shaped and resemble sound waves being emitted into one direction, with the lower lines being thicker and wider than the upper lines.\" /\u003e\n  \u003ch1 align=\"center\"\u003eSymfonia\u003c/h1\u003e\n\u003c/p\u003e\n\n## About\n\nThis is a WIP implementation of a Spacebar compatible Server in Rust!\n\nThis repository contains:\nA partial implementation of:\n\n- [HTTP API Server](/src/api)\n- [HTTP CDN Server](/src/cdn)\n- [WebSocket Gateway Server](/src/gateway)\n- [Database Models](/src/database)\n\n## Local Development/Test Environment\n\nWhether you are using Docker or not, you will need to have the following installed:\n\n- [Rust](https://www.rust-lang.org/tools/install)\n- [git](https://git-scm.com/downloads)\n- [`sqlx-cli`](https://crates.io/crates/sqlx-cli)\n\nIf your development environment is hosted on a Windows machine, please additionally make sure that\nyou have a bash shell available to execute pre-commit hooks. This can be done by installing\n[Git Bash](https://git-scm.com/downloads) or\n[Windows Subsystem for Linux 2](https://learn.microsoft.com/en-us/windows/wsl/install) and, additionally,\nconfiguring your IDE correctly.\n\nSee the instructions below for guidance on how to run the project.\n\n### Non-Docker\n\n1. Install and host a [PostgreSQL database](https://www.postgresql.org/download/)\n2. Create a new database, and a user that has full access to that database\n3. Create a `.env` file in the root of the project with the following contents:\n\n```env\nDATABASE_HOST=[ip/domain of your Postgres database]\nDATABASE_PORT=[Postgres port, usually 5432]\nDATABASE_USERNAME=[Your Postgres username]\nDATABASE_PASSWORD=[Your Postgres password]\nDATABASE_NAME=[Your Postgres database name]\nAPI_BIND=[ip:port to bind the HTTP API server to. Defaults to 0.0.0.0:3001 if not set]\nGATEWAY_BIND=[ip:port to bind the Gateway server to. Defaults to 0.0.0.0:3003 if not set]\n# For rauthy:\nCOOKIE_MODE=danger-insecure\n```\n\n4. Install and host an instance of [rauthy](https://github.com/sebadob/rauthy). Documentation on how\n   to do this can be found [here](https://sebadob.github.io/rauthy/intro.html).\n5. Install the sqlx CLI with `cargo install sqlx-cli`\n6. Run `cargo sqlx migrate run` from within the project directory to run the migrations\n7. Run the project with `cargo run`.\n\n### Docker\n\n1. Copy the `compose-example.env` file to `.env` in the root of the compose project and fill in the values\n   to your liking.\n2. Create a `rauthy.cfg` in the root of the compose project and fill in the\n   values according to [the rauthy documentation. A reference config is included on that page](https://sebadob.github.io/rauthy/config/config.html#reference-config).\n\n    !!! tip\n\n        rauthy also supports PostgreSQL as a database backend, but comes with [Hiqlite](https://github.com/sebadob/hiqlite)\n        as a default database backend.fe\n\n3. Adjust ports in `docker-compose.yml` if needed.\n4. Run `docker compose up --build`.\n\nIf you haven't edited the corresponding `rauthy.cfg` settings, the default user for rauthy is `admin@localhost.de`.\nThe password will be generated at first launch and you can discover it using `docker compose logs`.\n\nCode changes will require you to restart the container with `docker compose up --build`. If you want\nto reset to a fully clean state, run `docker compose down -v`.\n\n[Discord]: https://dcbadge.vercel.app/api/server/m3FpcapGDD?style=flat\n[Discord-invite]: https://discord.com/invite/m3FpcapGDD\n[build-shield]: https://img.shields.io/github/actions/workflow/status/polyphony-chat/symfonia/rust.yml?style=flat\n[build-url]: https://github.com/polyphony-chat/symfonia/blob/main/.github/workflows/rust.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyphony-chat%2Fsymfonia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolyphony-chat%2Fsymfonia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyphony-chat%2Fsymfonia/lists"}