4.2 KiB
Contributing
Thanks for wanting to make X better. wayBetter for X is free software (GPL-3.0-or-later) and contributions of every size are welcome: bug reports, fixes, themes, plugins, translations, docs.
Before you start
- Bugs: open an issue with what you did, what you expected and what happened, your Windows version and the app version (wayBetter → Updates). A screenshot helps a lot.
- Larger changes: open an issue first so we can agree on the approach.
- Themes and plugins don't need to live in this repository: share the
.json/.plugin.jsfile anywhere. See docs/THEMES.md and docs/PLUGINS.md. To put one in the wayBetter Store, see the next section. A plugin good enough to ship with the app can be proposed as a bundled plugin. - Another app on the same core (YouTube, Kick, Twitch, Discord…) belongs in its own repository
built on the wayBetter framework (
npm i waybetter). Tell us and we'll add it to the list of projects using wayBetter.
Add a theme, a plugin or a translation
A pull request is an addition. All you need is a free account on the forge this repository lives on (git.crt.fyi): sign up; a maintainer approves new accounts by hand, usually within a day.
A theme or a plugin for the wayBetter Store is one folder:
store/x/plugins/<id>/ your-name.plugin.js + item.json { "category": "tools", "tags": ["notes"] }
store/x/themes/<id>/ theme.json + item.json { "version": "1.0.0" }
- Make it and try it in the app (drop the file on the wayBetter window).
- Add the folder (store/README.md has every field and rule; a 640×400
preview.svgor.pngis optional). - Run
bun run check:storeandbun run test. - Open the pull request.
No git? Open an issue with the "Submit a theme" or "Submit a plugin" template and attach the file; a maintainer adds the folder.
There is no hosted CI: the checks are the commands above, and a maintainer runs them again before merging. Merging is not publishing: the Store's signing key is offline by design, so a maintainer reads the code, builds and signs the catalog, and only then is the item in the Store. Its page on the site, its search entry, link preview and sitemap entry are generated; you write no HTML. The full walk-through is in docs/STORE.md.
A translation is a change to apps/desktop/locales/<tag>.json
(docs/TRANSLATING.md). Languages are built into the app, not Store items,
and ship with the next app update. Run bun run i18n:check (it must print 0 error(s)) and open a
pull request, or an issue with the "Fix or improve a translation" template and the file attached.
Development
Requirements: Bun 1.4.2+, Node 24+, Rust stable and the Tauri prerequisites.
git submodule update --init
bun install --frozen-lockfile
bun run dev # the desktop app
bun run build && bun run test && bun run test:rust
bun run check:store # the Store's folders (store/) and the published catalog
bun run i18n:check # the language files
bun run test:e2e # browser E2E against fixtures (not live X)
Ground rules
These are enforced in review because users trust the app with their X session:
- The app never posts, follows, unfollows, likes or deletes anything on its own, never reads DMs, and never extracts credentials, cookies or tokens.
- It uses the data X already loads for the page. No hidden polling, no replayed requests.
- A field missing from X's response is unknown, never false.
- X's own network behavior (success, failure, abort) must be preserved exactly.
- Only the local shell may call privileged native commands; X tabs get a small, audited set.
- Add a test for anything touching data loss, privacy boundaries or request handling.
Commits and pull requests
Small, focused commits with a message that says what changed and why. Run the build and all tests before opening a pull request. By contributing you agree that your contribution is licensed under GPL-3.0-or-later.