Odel
StoryCanon

StoryCanon

@exp3TypeScriptUpdated 1w ago

A structured story bible for long-form fiction: scenes, characters, world, plot and foreshadowing.

View on GitHub
Server endpointStreamable HTTPOAuthProbed

This is the third-party server itself — Odel doesn't run it. Hitting this URL directly talks straight to the upstream server with no auth or proxying. Connect through Odel to front it with managed auth.

StoryCanon

StoryCanon は、ChatGPT で生成・相談した小説の設定、本文、キャラクター、世界観、伏線、TODO、現在の物語状態を作品ごとに保存するための MVP 実装です。

構成

  • apps/web: Next.js + TypeScript + Prisma + PostgreSQL の Web/API アプリ
    • Prisma 7 のクライアントは apps/web/src/generated/prisma に生成されます(git 管理外)。npm run dev / npm run build が自動で生成するので通常は意識不要ですが、tsc を単体で走らせる場合は先に npm run prisma:generate -w apps/web が必要です。
  • infra: AWS CDK v2 による App Runner / ECR / RDS / VPC / S3 / Secrets Manager 構成
  • docs: 内部仕様、外部仕様、AWS 構築メモ
  • tests/integration: ローカル結合テスト

ローカル開発

npm install
Copy-Item .env.example apps/web/.env
docker compose up -d postgres
npm run prisma:migrate -w apps/web
npm run dev -w apps/web

テスト

AWS リソースは作成せず、ローカルの結合テストのみ実行します。

npm run test:integration

AWS

CDK と AWS CLI の手順は docs/infrastructure.md にまとめています。実行前に AWS アカウント、ドメイン、Secrets Manager の値を確認してください。