FluentTyper / Contributing
Help improve writing assistance that keeps text local and works offline. This guide takes you from a checkout to a pull request.
| I want to… | Read |
|---|---|
| Understand the product | User guide |
| Fix a bug or add a feature | Start with the setup below. |
| Find the right code | Architecture |
| Change runtime behavior | Feature workflows |
| Measure resource use | Performance guide |
| Report a vulnerability | Private security reporting |
Check open issues before starting substantial work. Keep changes focused. Preserve unrelated work in your checkout.
Use Bun 1.4.4, as pinned in package.json. bun.lock is the canonical lockfile.
Run commands from the repository root.
-
Fork the repository.
-
Clone your fork.
-
Create a branch from
master. -
Install dependencies:
bun install --frozen-lockfile
-
Build for your browser:
bun run build # Chrome bun run build --platform=edge # Edge bun run build --platform=firefox # Firefox
-
Load the output from
build/:- Chrome or Edge: enable Developer mode on the extensions page, then select Load unpacked.
- Firefox: open
about:debugging, select This Firefox, then loadbuild/manifest.jsonas a temporary add-on.
Use bun run watch for a development build that updates when source files change.
See build commands for release builds and generated assets.
Follow the core principles. Also:
- Follow the layer and import rules.
- Never log reviewed text. Keep development traces out of production builds.
Autocomplete uses Presage. Optional Local AI belongs to Review and must not become a requirement for ordinary typing or standard Review.
Run every baseline check before you open or update a pull request. Runtime changes also require the relevant Chrome, Firefox, and development suites. The testing guide defines those requirements and the coverage policy. Every bug fix needs a regression test that fails without the fix.
Use bun run test:e2e:wordpress --platform=chrome or --platform=firefox for fast Gutenberg tests.
These tests require no Docker or WordPress server.
Add --runtime=playground for native WordPress history and persistence checks.
See the Gutenberg support matrix for setup and remaining checks.
Use bun run fix to apply lint and formatting fixes. Review the resulting diff before committing.
- Update the relevant documentation when behavior changes.
- Keep commits focused and descriptive.
- Open the pull request against
master. - Describe the user-visible change and list the checks you ran.
- Include screenshots when a UI change needs visual evidence.
- Resolve failing CI checks before merging.
User documentation should explain tasks, expected results, and limits.
Place implementation detail in a linked reference or a guide under docs/agents/.
- Grammar or Review: Follow the runtime workflow and Review reference.
- Language assets: Use the rebuild procedure.
- Versions and releases: Use the versioning procedure. Do not hand-edit manifest versions.
- Performance: Start with the local smoke workload. Keep synthetic and live-site evidence separate.
- README screenshots: Build the extension, then run
bun scripts/readme-demo.ts. The script uses local example text and checks acceptance.
If the Chrome test browser cannot start
If the error names a missing “Google Chrome for Testing Framework”, the browser installation may be incomplete.
Check the browser path under ~/.cache/puppeteer/chrome and the downloaded archive before replacing that version's extracted directory.
Re-extract the matching archive, then repeat the test. Do not remove unrelated browser versions or personal profiles.
FluentTyper uses Presage. By contributing, you agree that your contributions are licensed under the MIT License.