# Contributing to Nabeh

Thanks for helping! Nabeh is small on purpose, and new contributors are very welcome.

## The one rule: keep it minimal

Nabeh is a white screen that whispers. That's the product. Before you add something, ask:

- **Does it keep the screen quiet?** New UI goes in the Settings drawer, not on the main screen.
- **Is it the simplest thing that works?** (KISS) Prefer 10 clear lines over a clever abstraction.
- **Is it needed now?** (YAGNI) No "just in case" options, config flags or dependencies.

Things we are **not** adding: accounts, cloud sync, dashboards, calendar integrations, chat panels, extra dependencies for small jobs.

## Find something to work on

1. Look for issues labeled [`good first issue`](https://github.com/fukubie/Nabeh/labels/good%20first%20issue).
2. Comment "I'd like to work on this" so others know. One issue per person at a time, please.
3. No reply in a few days? Go ahead anyway.

The [v1.0.0 project board](https://github.com/users/fukubie/projects/3) shows what's planned for the first stable release.

## Set up

You need **Node.js 22+** and **Chrome or Edge**.

```bash
git clone https://github.com/<your-username>/Nabeh.git
cd Nabeh
npm install
npm run dev
```

Open http://localhost:3000. No meeting or API key handy? Open Settings (**Ctrl/⌘ + .**), turn on **Simulate transcript**, and use a free local model with [Ollama](https://ollama.com).

## Where things live

| File | What it does |
| --- | --- |
| `src/app/page.tsx` | The main screen: whisper text, status dot, theme toggle |
| `src/components/SettingsDrawer.tsx` | Everything in the Settings drawer |
| `src/hooks/useWhisperLoop.ts` | The loop: collect transcript → ask the model → show a whisper → save notes |
| `src/app/api/whisper/route.ts` | Server route that calls the AI model and writes the notes file |
| `src/lib/mic.ts` | Browser speech recognition (microphone) |
| `src/lib/screenpipe.ts` | Screenpipe client and the simulated meeting |

## Send a pull request

1. Create a branch: `git checkout -b fix/short-description`
2. Keep the change focused on **one** issue.
3. Check it before pushing:
   ```bash
   npm run typecheck
   npm run build
   ```
4. Open a PR, fill in the template, and link the issue (`Closes #123`).

CI runs the same checks on every PR. A maintainer will review, usually within a week. Small PRs get merged fastest.

## Reporting bugs and ideas

Use the [issue forms](https://github.com/fukubie/Nabeh/issues/new/choose). For security problems, **don't open an issue**. See [SECURITY.md](SECURITY.md).

By contributing you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md) and that your work is released under the [MIT License](LICENSE).
