# yaoi.dev

> カップリングから物語をつくる、BL 創作・連載プラットフォーム

yaoi.dev is a serialized BL (boys' love) fiction platform for a women's
audience. Its catalog is organized around the PAIRING (CP), not the
individual character: a pairing is an ordered `seme × uke` couple plus the
relationship dynamics (tropes) between them. Characters are components of a
pairing; episodes hang off a pairing.

## Invariants

- Every character is a fictional adult (18+). Enforced in the domain layer
  and by a CHECK constraint in the D1 schema.
- Three rating tiers: all-ages / r15 / r18. Unknown values fail closed to r18.
- Age confirmation is required for r15 and above, and grants access only up
  to the tier that was confirmed.
- Draft series are excluded from the catalog, the API and the sitemap.

## Read-only API

- `GET https://yaoi.dev/api/pairings` — published pairings
- `GET https://yaoi.dev/api/pairings/{slug}` — one pairing with its episodes
- `GET https://yaoi.dev/api/tropes` — the trope taxonomy by category
- `GET https://yaoi.dev/health` — liveness

## Pages

- [CP index](https://yaoi.dev/cp)
- [Trope index](https://yaoi.dev/tag)
- [About](https://yaoi.dev/about)
- [Terms](https://yaoi.dev/terms)
