Development
VibeForma is a Python application with a Tkinter interface, packaged as a source copy with a virtual environment.
Repository layout
Section titled “Repository layout”| Path | What it holds |
|---|---|
app/ |
Application modules: audio, ASR, insertion, history, dictionary, snippets, statistics, hotkey, tray, panel, settings, onboarding, updates, diagnostics |
app/vibeforma/ |
Service package: service.py, http_api.py, status.py, settings_ops.py, update_ops.py, updates.py, actions.py, selftest.py, util.py |
app/locales/ |
en.json, ru.json and any added locale |
tests/ |
About 40 test files |
tools/ |
build_release.py, ruff_gate.py and release helpers |
install.ps1, install.py, install_steps.py, install_core.py, install_system.py |
The installer |
uninstall.py |
The uninstaller |
main.py, run.cmd |
Entry points |
docs/ |
Product troubleshooting source |
Requirements
Section titled “Requirements”- Python 3.10–3.14.
- Windows for the full test suite; a subset runs on Linux.
- No GPU and no model are needed for the tests.
Local setup
Section titled “Local setup”git clone https://github.com/FormaMindPro/vibeforma.gitcd vibeformapython -m venv .venv.venv\Scripts\python -m pip install --upgrade pip.venv\Scripts\python -m pip install -r app\requirements.txt.venv\Scripts\python main.pyCUDA machines install the CUDA requirements as well:
.venv\Scripts\python -m pip install -r app\requirements-cuda.txtThe application starts as a tray service. Models are downloaded on first use.
.venv\Scripts\python -m pytest -qThe suite runs without a model, a GPU or a network. It covers configuration, locales and key parity, insertion, the installer, HTTP API guards, history, snippets, statistics, dictionary, learning, text rules, hold-to-talk, Esc, the history table and filters, the keys tab, the panel, onboarding, updates and the uninstaller.
A platform-independent subset is marked for Linux:
.venv\Scripts\python -m pytest -q -m "not windows"Linting and typing
Section titled “Linting and typing”.venv\Scripts\python tools\ruff_gate.py.venv\Scripts\python -m mypy app\vibeformaThe ruff gate compares findings with a baseline: new findings fail, existing ones are tracked. mypy runs in strict mode for the vibeforma package.
GitHub Actions runs:
- the full test suite on Windows;
- the platform-independent subset on Ubuntu;
compileall;- the ruff baseline gate;
- strict
mypyfor the service package.
A pull request is expected to pass all of them.
Language rules
Section titled “Language rules”- The core is English: code, comments, logs,
CHANGELOG.mdand commits. - Executable code is ASCII.
- Cyrillic is allowed only in
app/locales/*.json, Russian installer text, Russian and Ukrainian ASR prompts andREADME.ru.md. - A test enforces the rule.
Documentation site
Section titled “Documentation site”The site in this repository is built with Astro Starlight:
cd project\production\vibeforma.pronpm installnpm run devnpm run buildnpm run verify:allThe documentation exists in English at the root and in Russian under /ru/ with the same slugs. A new page is added in both locales.
Release build
Section titled “Release build”.venv\Scripts\python tools\build_release.py --out distThe build produces a zip archive and SHA256SUMS, including test_ru.wav. The GitHub Actions workflow builds the same archive on a tag.
The release is installed by the same install.ps1 used for a first install; the updater keeps a backup and rolls back on failure.
Where to go next
Section titled “Where to go next”- Contributing — how to send a change.
- Changelog — what shipped.
- Diagnostics and logs — the doctor and the selftest.
- Files and locations — the runtime layout.