# AGENTS.md

PDF Reader in JavaScript

## Setup

```
npm ci
```

## Commands

```
# TODO: nothing declares a build or test command, so an agent has to guess.
# This is the single most valuable section of this file. Fill it in.
```

## Layout

- `src/`        212 source files
- `test/`       126 source files
- `web/`        84 source files
- `external/`   75 source files
- `examples/`   10 source files
- `extensions/` 9 source files

## Conventions

- Tests live alongside the code they cover, following `src/core/file_spec.js`.
- TypeScript runs in strict mode. Type errors are the fastest feedback available, so do not weaken it.
- CI defines what passing means. See `.github/workflows/ci.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `external/openjpeg/openjpeg_nowasm_fallback.js` is 441KB. 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.
