No description
  • C# 85%
  • HTML 12.5%
  • CSS 2.3%
  • Dockerfile 0.1%
Find a file
Björn Wittmann 59d30380e3
Some checks failed
CI / build (push) Successful in 41s
Build and Push Docker Image / build-and-push (push) Successful in 1m15s
CI / test (push) Failing after 2m40s
Merge pull request 'chore(novelai): bump vendored NovelAI.ImageGen past the v5 mask grid-alignment fix (608829e)' (#255) from chore/novelai-imagegen-mask-fix into main
Reviewed-on: #255
2026-08-22 06:09:25 +02:00
.config feat(deploy): Dockerfile, Portainer stack, and registry CI (ADR 0015) 2026-07-09 18:21:19 +02:00
.github docs(ci): update stale submodule comment in docker-publish.yml 2026-07-22 14:05:56 +00:00
deploy feat(tts): Qwen3-TTS joins the provider registry, cloning included 2026-08-02 12:49:49 +02:00
docs feat(novelai): Diffusion 5 as the default model, native sprite transparency (ADR 0065) 2026-08-21 13:45:55 +00:00
external chore(novelai): bump vendored NovelAI.ImageGen past the v5 mask grid-alignment fix (608829e) 2026-08-21 16:43:03 +00:00
src Review feedback (Jibril, PR #254): pin the V5 negative-tag arm, refresh the stale model docs 2026-08-21 14:19:50 +00:00
tests chore(novelai): bump vendored NovelAI.ImageGen past the v5 mask grid-alignment fix (608829e) 2026-08-21 16:43:03 +00:00
.dockerignore build: vendor NovelAI.ImageGen as a git submodule (ADR 0011) 2026-07-10 23:39:13 +02:00
.gitattributes docs: initial ADR collection and project plan 2026-07-08 12:18:30 +02:00
.gitignore Character-editor components: Tabs, LabeledEntriesTable, QuicklinkNav, SaveIndicator (#23) 2026-07-10 12:47:01 +02:00
.gitmodules refactor(ui): the design system moves out — Kagaku.UI, shared by all Kagaku apps (ADR 0044) 2026-07-21 17:58:09 +02:00
AGENTS.md feat(characters): base-image-only tags outside the inheritance (ADR 0061) 2026-08-09 11:51:42 +02:00
CLAUDE.md docs: agent notes — use the dev seed for Playwright verification, extend it with new features 2026-07-12 16:41:04 +02:00
Directory.Build.props feat(deploy): Dockerfile, Portainer stack, and registry CI (ADR 0015) 2026-07-09 18:21:19 +02:00
Directory.Packages.props feat(assistant): the AI looks at stored images through view_image (ADR 0059) 2026-08-07 15:06:33 +02:00
Kagura.slnx refactor(ui): the design system moves out — Kagaku.UI, shared by all Kagaku apps (ADR 0044) 2026-07-21 17:58:09 +02:00
README.md Review feedback (Jibril, PR #254): pin the V5 negative-tag arm, refresh the stale model docs 2026-08-21 14:19:50 +00:00

Kagura

An AI-powered visual novel creation suite — a self-hosted content-management and creation system for multiple VN projects, built around a deeply connected knowledge base (characters, lore, locations, chapters, timelines) that grounds userAI collaboration: from AI-assisted sprite and background generation, through scene-by-scene writing, to previewing the result — all in one Blazor app.

At a glance

  • Self-hosted, single user on a home server, behind a shared-secret access gate.
  • ASP.NET Core + Blazor Server on .NET 10, structured as a modular monolith in clean ports-and-adapters.
  • One SQLite knowledge graph (records are nodes, relationships are links) plus on-disk assets; every change is auto-applied, journaled, and reversible (undo + Wikipedia-style per-document history).
  • Image generation via NovelAI (Diffusion 5, with 4.5 for reference-driven generations); LLM collaboration via OpenRouter; a bundled booru tag database for spelling-safe tag authoring.
  • A built-in C#-native player for previewing; shipped as a Docker image.
  • An AI collaborator that reads and edits the same project data you do, through the same validated use cases — every change reversible.

Architecture in brief

  • Ports & adapters — Server / BlazorAdapter / UI / UseCases / Domain / Infrastructure / Kernel (ADR 0003), organized as bounded-context modules over one graph DB (ADR 0017).
  • Knowledge graph — Entry nodes + generic Link edges + backlink navigation (ADR 0019).
  • Reversible by design — a persistent change journal, soft delete, and per-document revision history (ADR 0020, 0022).
  • Fluxor UI state with per-circuit event bridges + cross-session sync (ADR 0016); Material Symbols icons + CSS-variable design tokens (ADR 0023).
  • DB-native scenes (ordered steps) and a C#-native player engine (ADR 0007, 0008).

Built on / informed by

Reused as dependencies:

  • NovelAI.ImageGen — NovelAI Diffusion 4.5 / 5 client
  • OpenRouter.Net — LLM client + agent loop
  • booru_tag_db_dart — the danbooru tag database (bundled, read-only reference data)

Designed fresh, informed by (references, not dependencies): VNovelPlayer (scene format + player design), NovelAI.VisualNovelCreator (generation pipeline), novel-crafter / NovelArtist (knowledge base + agent tooling), story-forge (timeline / routes / biography).

Documentation

Planning is complete and captured here — a good reading order:

Status

Planning complete — 23 accepted ADRs, a full SRS with ~20 feature stories, an architecture overview, a design system, and a phased plan. The repository is documentation only; implementation begins with Phase 0 (scaffold) in the project plan.