# AGENTS.md

Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs

## Setup

```
cargo build
```

## Commands

```
cargo test   # run the test suite
```

## Layout

- `migrations/` 314 source files
- `src/`        69 source files
- `playwright/` 27 source files
- `docker/`     5 source files
- `macros/`     1 source file
- `tools/`      1 source file

## Conventions

- Tests live alongside the code they cover, following `playwright/tests/collection.spec.ts`.
- CI defines what passing means. See `.github/workflows/build.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `src/static/scripts/datatables.js` is 388KB. It will not fit comfortably in context, so read it in parts.

---

Drafted by agentreadme.com from what is in this repository. Everything marked TODO
needs a human. Check it in as AGENTS.md at the root.
