A rebuild.
  • TypeScript 45.9%
  • HTML 37.4%
  • CSS 15.6%
  • JavaScript 1.1%
Find a file
amayakase 7a17d4cc72
Some checks failed
M0 through M4 verification / verify (push) Has been cancelled
Implement M4 direct relationships end-to-end
Add full M4 support for direct relationship management across the stack: new relationship schemas/migrations (types, labels, social links, parent links, kinship assertions), seeded dictionary defaults, and shared core utilities for labeling, canonical pairing, scoring, and cycle detection.

Expose new API routes and OpenAPI contracts for listing, creating, editing, archiving/restoring links, querying grouped character relationships, and admin relationship-type configuration with revision checks, role/CSRF enforcement, cross-media and cycle validation, conflict handling, and audit/revision tracking.

Ship relationship UI workflows in character pages/editor and a new admin relationship-type screen, including sorting/filtering/pagination, compact overview cards, link create/edit/remove dialogs, archived link restore, and related styling updates.

Expand automation and delivery for M4 with new unit/db/e2e relationship test suites, migration/install verification scripts, dedicated Playwright M4 config, CI workflow updates, and milestone/documentation updates (README, API, DB, acceptance plan, and M4 handoff).
2026-10-14 00:03:05 +02:00
.github/workflows Implement M4 direct relationships end-to-end 2026-10-14 00:03:05 +02:00
apps Implement M4 direct relationships end-to-end 2026-10-14 00:03:05 +02:00
db Add Loreline specification starter kit 2026-10-13 18:30:59 +02:00
decisions Add Loreline specification starter kit 2026-10-13 18:30:59 +02:00
docs Implement M4 direct relationships end-to-end 2026-10-14 00:03:05 +02:00
examples Add Loreline specification starter kit 2026-10-13 18:30:59 +02:00
packages Implement M4 direct relationships end-to-end 2026-10-14 00:03:05 +02:00
reference Add Loreline specification starter kit 2026-10-13 18:30:59 +02:00
scripts Implement M4 direct relationships end-to-end 2026-10-14 00:03:05 +02:00
tests Implement M4 direct relationships end-to-end 2026-10-14 00:03:05 +02:00
.env.example Implement M3 character and asset workflows 2026-10-13 21:07:44 +02:00
.gitignore Bootstrap M0 monorepo with web/api shells 2026-10-13 19:00:41 +02:00
.nvmrc Bootstrap M0 monorepo with web/api shells 2026-10-13 19:00:41 +02:00
AGENTS.md Add Loreline specification starter kit 2026-10-13 18:30:59 +02:00
docker-compose.yml Bootstrap M0 monorepo with web/api shells 2026-10-13 19:00:41 +02:00
eslint.config.js Bootstrap M0 monorepo with web/api shells 2026-10-13 19:00:41 +02:00
package.json Implement M4 direct relationships end-to-end 2026-10-14 00:03:05 +02:00
playwright.config.ts Add M1 account auth and sessions 2026-10-13 19:59:20 +02:00
playwright.m3.config.mjs Polish M3 character UI and harden e2e checks 2026-10-13 21:18:24 +02:00
playwright.m4.config.mjs Implement M4 direct relationships end-to-end 2026-10-14 00:03:05 +02:00
pnpm-lock.yaml Implement M4 direct relationships end-to-end 2026-10-14 00:03:05 +02:00
pnpm-workspace.yaml Bootstrap M0 monorepo with web/api shells 2026-10-13 19:00:41 +02:00
README.md Implement M4 direct relationships end-to-end 2026-10-14 00:03:05 +02:00
START-CODEX.md Add Loreline specification starter kit 2026-10-13 18:30:59 +02:00
tsconfig.base.json Bootstrap M0 monorepo with web/api shells 2026-10-13 19:00:41 +02:00
tsconfig.tools.json Bootstrap M0 monorepo with web/api shells 2026-10-13 19:00:41 +02:00
vitest.config.ts Bootstrap M0 monorepo with web/api shells 2026-10-13 19:00:41 +02:00

Loreline — implementation handoff for Codex

M0–M4 implementations are available for review. See M0 startup, M1 accounts, M2 persisted media, migrations and verification, and M3 characters and images. M4 direct relationships are documented in 18-m4-handoff.md. M5–M7 have not been implemented.

This is the agreed design + technical specification for a new React/Node/MariaDB anime character encyclopedia. The original brief is retained below; M0–M4 now have implementations. This folder is meant to be placed at the root of an empty Git repository before using Codex.

Start here (Codex and humans)

  1. Read AGENTS.md (non-negotiable engineering and data safety rules).
  2. Read docs/00-product.md, docs/01-architecture.md, docs/02-ui.md.
  3. Read docs/03-database.md, docs/04-relationships.md, docs/05-inference.md before building any character/relationship backend.
  4. Read docs/06-api.md, docs/07-security.md, docs/08-migrations.md, and docs/09-delivery-plan.md.
  5. Implement one milestone at a time, using docs/10-acceptance-tests.md for the definition of done.
  6. Open reference/ui/*.html in a browser to view the approved design. These are visual prototypes, not source code to copy wholesale.

Use docs/11-codex-prompts.md for copyable prompts to start tasks. Decisions are in decisions/ADR-001-core-decisions.md. Optional illustrative DDL is in db/reference-schema.sql, and reusable test fixtures are in examples/fixtures.json.

Product summary

  • Existing anime/manga universes, general accepted canon; one universe (media) per character.
  • Beautiful AniList-inspired public pages; approved designs already exist for home, media, character, shared editor.
  • Facts include identities, aliases, age, body measurements (height, weight, B/W/H), species, houses, affiliations, and image assets.
  • Each direct factual relationship is stored only once. Reciprocal labels are generated; biological kinship is inferred from recorded biological parent-child links.
  • Canon may omit facts. Unknown is not false. Never manufacture parents, biological heritage, romantic status, or full siblinghood.
  • Admin-configurable relationship definitions with preset types, role-specific gender-aware labels, directional semantics, and significance weights.
  • Profile relationships shown in complete character-grouped lists, sorted by pairwise closeness, not narrative popularity; preserve each individual edge in graphs.
  • A 2D force graph is an explorer screen; no graph on the homepage or media page.
  • Create and edit use the same forms; secure image upload with crop/zoom/paste; MariaDB; accounts and admin; non-destructive migrations.

Proposed repo structure (Codex creates during M0)

apps/
  web/                   React + TS + Vite + Tailwind
  api/                   Fastify + TS
packages/
  contracts/             Shared Zod schemas / typed DTOs
  core/                  Pure inference, label, scoring functions
  db/                    Drizzle schema, versioned migrations, seeds
  ui/                    Optional shared UI primitives; only if worthwhile
docs/                     This specification
reference/ui/             Approved standalone HTML prototypes
reference/screenshots/   Approved appearance samples
decisions/                Architecture decision records
examples/                 Test fixture semantics
scripts/                  Development / backup / verification scripts

Preferred local developer experience

Desired commands after Milestone 0:

cp .env.example .env
pnpm install
pnpm db:up
pnpm db:migrate
pnpm db:seed:reference  # idempotent; only safe reference dictionaries, never user data
pnpm dev
pnpm test
pnpm test:e2e
pnpm typecheck

Codex should create these scripts; they do not yet exist. db:up should start MariaDB via Docker Compose. The web app should proxy /api to the local backend to avoid cross-origin cookie issues.

Delivery policy

Complete the skeleton and a visually faithful front-end first, then auth → media → characters → direct parentage/relations → inference → graph. Future modules must not replace existing data with mock content. Do not promise implementation before finishing a tested milestone.

Reference sources checked (2026-10-13)

Package versions and MariaDB/ORM compatibility must be checked at installation time, not pinned blindly from these references.