Skip to content

Development

Thanks for your interest in contributing to Wyrm.

While LLM-assisted contributions are welcome, please make sure you understand the codebase by reading through Wyrm’s architecture in Architecture, and that you understand every line you push. Wyrm is built out of a passion for free software and strives to deliver quality, maintainable software for everyone.

  • Rust (stable toolchain), plus nightly for rustfmt
  • PostgreSQL
  • Node.js
  • pnpm
  • cargo-machete and pg_format 5.11, used by the lint script
  • mprocs (optional, runs backend and frontend together)

Fork wyrmrss/WyrmRSS on GitHub, then clone your fork:

Terminal window
git clone git@github.com:<your-username>/WyrmRSS.git
cd WyrmRSS

Copy the example config:

Terminal window
cp config/wyrm-example.toml config/wyrm.toml

Then edit config/wyrm.toml:

  • Set database_connection to a Postgres database you can write to.
  • Set port = 3001. The frontend dev server sends /api requests to localhost:3001.
  • Keep public_url = "http://localhost:5173", the address of the frontend dev server.

The server runs database migrations on startup, so an empty database is enough.

Start the backend from the repository root:

Terminal window
cargo run -p server

In a second terminal, start the frontend:

Terminal window
cd web
pnpm install
pnpm dev

Or run both at once with mprocs from the repository root.

Open Wyrm at http://localhost:5173.

Backend tests run against the Postgres database in config/wyrm.toml:

Terminal window
cargo test

cargo test also regenerates the TypeScript types in web/src/types/.

Run all linters before you open a pull request:

Terminal window
./scripts/lint.sh

This runs rustfmt (nightly), clippy and cargo machete on the backend and desktop app, pg_format on the SQL migrations, and eslint on the frontend. rustfmt and pg_format rewrite files in place, and the script lists any files they changed. CI runs the same checks.