- TypeScript 45.9%
- HTML 37.4%
- CSS 15.6%
- JavaScript 1.1%
|
Some checks failed
M0 through M4 verification / verify (push) Has been cancelled
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). |
||
|---|---|---|
| .github/workflows | ||
| apps | ||
| db | ||
| decisions | ||
| docs | ||
| examples | ||
| packages | ||
| reference | ||
| scripts | ||
| tests | ||
| .env.example | ||
| .gitignore | ||
| .nvmrc | ||
| AGENTS.md | ||
| docker-compose.yml | ||
| eslint.config.js | ||
| package.json | ||
| playwright.config.ts | ||
| playwright.m3.config.mjs | ||
| playwright.m4.config.mjs | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| START-CODEX.md | ||
| tsconfig.base.json | ||
| tsconfig.tools.json | ||
| vitest.config.ts | ||
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)
- Read
AGENTS.md(non-negotiable engineering and data safety rules). - Read
docs/00-product.md,docs/01-architecture.md,docs/02-ui.md. - Read
docs/03-database.md,docs/04-relationships.md,docs/05-inference.mdbefore building any character/relationship backend. - Read
docs/06-api.md,docs/07-security.md,docs/08-migrations.md, anddocs/09-delivery-plan.md. - Implement one milestone at a time, using
docs/10-acceptance-tests.mdfor the definition of done. - Open
reference/ui/*.htmlin 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)
- Drizzle MySQL/mysql2: https://orm.drizzle.team/docs/get-started/mysql-new
- Fastify v5 migration requirements: https://fastify.dev/docs/v5.0.x/Guides/Migration-Guide-V5/
- MariaDB recursive queries: https://mariadb.com/docs/server/reference/sql-statements/data-manipulation/selecting-data/common-table-expressions/recursive-common-table-expressions-overview
- OWASP passwords: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html
- OWASP sessions: https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html
- OWASP uploads: https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html
Package versions and MariaDB/ORM compatibility must be checked at installation time, not pinned blindly from these references.