yuanbw2025/storyforge
About
Story Forge StoryForge — AI novel-writing workshop
AI & Machine LearningMeasured star growth
- in 24h
- +3
- in 7 days
- +17
- in 15 days
- +35
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalStoryForge · 故事熔炉
Write stories. Step inside them.
简体中文 · English · Français · Deutsch · Italiano · Español · Português · 日本語 · 한국어
Chinese tutorials & community: Bilibili video · Zhihu introduction · QQ group: 1082374587 · More community links
Start creating · Try Fog Harbor · Explore the architecture
StoryForge is an open-source, local-first AI narrative creation and experience toolkit. Write long or short fiction, adapt a novel into a screenplay or comic, build reusable worlds, and explore character interaction and playable stories. You choose the workflow and approve AI candidates before they become part of your work.
Long fiction, short fiction, screenplays, comics, motion-drama preproduction, and the world engine have released entries. Nodes and interactive products are previews. This README is available in nine languages; this does not imply matching coverage in the interface or linked documents. Screenshots and many guides are in Chinese.
Run without a development setup: Download the latest portable release. Extract the ZIP for Windows x64, Apple Silicon/Intel Mac or Linux x64 and launch Start-StoryForge. The built app, media and Node.js runtime are included; no npm installation is required. AI requires your own provider, and preview products keep their maturity labels. Installation guide.
First time here? Choose a download method and let a local AI help
Choose the way you want to use StoryForge.
- Installer or portable package — download the matching program from the official Release, then install or extract it.
- Source code through Git — convenient for keeping up with updates, reading code, fixing problems or developing features.
A desktop AI Agent such as ByteDance Trae, Tencent WorkBuddy, Alibaba Tongyi Lingma or Google Antigravity can help with installation. For routine installation, checking the app and basic troubleshooting, start with a free version or free allowance. Fill in your device and folder details, then copy the appropriate prompt below.
Option 1 — Clone the repository with Git
I want to download the StoryForge source through Git and run it locally. The repository is https://github.com/yuanbw2025/storyforge and the destination is “[enter your folder path]”. Check my environment, install Git as needed, read the README and development instructions, install the required runtime and dependencies, start the project, and tell me where to open it. Inspect existing files first and preserve my works, configuration and local changes. Tell me how to update the project afterward.
Option 2 — Download an official Release package
I want to download a packaged StoryForge application from the official Release for “[Windows, macOS, Linux or Android]” into “[folder path]”. The release page is https://github.com/yuanbw2025/storyforge/releases/latest . Check the latest formal stable release, select the installer or portable package for the target system and processor architecture, verify the supplied checksums, and help me install or extract and launch it. For a phone package, explain how to transfer and install it on the phone. If StoryForge is already installed, help me back up my works and configuration before updating according to the official instructions. Explain the available choices if there is no matching package.
Guides, the knowledge base, and feedback for bugs, feature requests and documentation issues are available in the official knowledge base.
Star the repository in the upper-right corner to find it again and follow updates.
Important — Use local agents (such as ByteDance’s Trae or Tencent’s WorkBuddy; download from their official websites and sign in to receive a free allowance) to investigate problems and submit feedback
StoryForge is still in development and developed and maintained by one person. With many features, bugs can occur. Feedback is welcome.
A local desktop Agent can help whether you run the Git source or a downloaded client. If a chapter fails to open, generation or saving fails, or the app exits, ask it to inspect the error and available diagnostics, organize the evidence and submit a bug report directly. Copy this prompt and describe the problem.
My StoryForge has a problem: “[describe what happened]”. Check the current version, error messages and relevant diagnostics. Organize reproduction steps, expected and actual results, and relevant logs, then submit a bug report directly through the project's official feedback entry. Add evidence to an existing report if the same issue already exists. Remove API keys, account details and private manuscripts before submission, then give me the feedback ID or link. Preserve my works, configuration and local changes, continue investigating, and propose a repair.
The Agent can investigate, organize and submit the report together, giving the maintainer the version, steps and errors needed to address it. For a simple problem, it can also help you repair it while you continue using the app and wait for updates. Back up before data operations and preserve original files and your works before editing.
You can also use a local Agent to build features on this project, create your own project, or contribute improvements to StoryForge through a PR.
Official website, preview, and knowledge base
Start with the website overview, explore the real interface in the isolated preview, then download the source and follow the knowledge base for full creation.
| Entry | Purpose |
|---|---|
| Website | Project introduction, product overview, community Workshop, and contact information |
| Project preview | Browse real screens and examples, create trial copies, and edit manually; API settings, AI generation, and external services are disabled |
| Community Workshop | Discover plugins and content packs, review authors and dependencies, and download for local import |
| Official knowledge base | Installation, quick start, product workflows, model setup, backups, Prompt methods, plugin development, and troubleshooting |
| Updates and development status | Mainline user changes, unmerged development, and historical review evidence |
Development status · GitHub Releases
The knowledge base is available in Chinese and English. Preview data uses separate browser storage; manuscripts do not automatically move between the preview, the full local app, domains, or ports. Releases are fixed snapshots; mainline capabilities, app deployment, and documentation publication are separate states.
Recent capabilities and how to use them
Reviewed against remote main on October 13, 2026. Long fiction, short fiction, screenplays, comics, motion-drama materials, and the world engine have released entries. Nodes and interactive products remain previews; plugin API 1 / SDK 0.1 is a developer preview.
Motion-drama preproduction: story to shot packages
Start from an idea or novel and develop a series bible, episode plans, character/costume/location/prop/sound materials, episode scripts, storyboards, and reference frames. Image and motion prompts are separate. Review continuity, rights, and target-tool constraints, then export Seedance, Runway, LTX, or generic adapter packages. Materials and deliveries retain versions; revisions require checking affected shots. Video generation, editing, mixing, and final production happen in external tools. Packages do not guarantee every current third-party plan supports all options.
Plugins and Workshop: tools chosen per work
Install functional plugins, code-free content packs, or bundles with locked dependencies; enable them per work or world. Twelve reference packs cover notes, cards, calendars, timelines, story boards, node flows, AI tasks, and external tools. Dedicated replacement interfaces currently cover world history and story progression. Explicitly enable the developer preview at /workshop/discover, create a separate trial work/world, and confirm trust before enabling. Disabling or uninstalling retains plugin data. Developers can check and pack .sfplugin files with the public SDK or use the documented AI instructions and Skill kit. Native UI plugins run on the same origin: trust their authors and code; capability declarations are not a malicious-code sandbox. The public Workshop and local installation manager have distinct roles.
Node preview: connect, revise, and recover
Add or search nodes on the canvas, drag from either input or output ports, select compatible nodes, and reconnect links. Select built-in or personal Prompt templates, bind variables, and attach temperature, output-token, or candidate-count controls. Edits stay with the graph instead of changing the global template. Run to a node processes only its required upstream path. Saved candidate edits and versions use the same longform adoption chain where permitted. Recover saved results after refresh; continuing generation is a separate action. Complete cross-mode acceptance remains ongoing.
Local Codex and task-specific model configuration
Alongside cloud APIs and local compatible services such as Ollama or LM Studio, local execution can reuse a signed-in ChatGPT account through Codex app-server. Detect the login, select available models, and assign task presets without entering an API key for this channel. It supports text and structured output, not a purely static hosted app; images, audio, and embeddings need separate configuration. Subscription limits and model permissions apply. Recent-request records help after disconnection; unknown outcomes are not automatically resent or switched to another paid API.
Technical characteristics: what each layer does
| Technology or design | Implementation and value |
|---|---|
| React + TypeScript + Vite | Product interfaces, explicit domain types, and separate builds; Zustand manages interaction state, TipTap edits prose, and Three.js renders built-in 3D scenes |
| Dexie / IndexedDB and lifecycle | Works and saves remain in browser storage; PROJECT_TABLES governs backup, import, deletion, migration, and reference remapping; prose export differs from a full backup |
| Traceable context and adoption | CONTEXT_SOURCES + assembleContext() register reads; Context Gateway retrieves sources on demand; FIELD_REGISTRY + AdoptionSchema + adopt() govern official writes |
| Durable Harness and version checks | Skills, Run Contracts, events, checkpoints, candidates, and receipts link task inputs to results; scope/version checks protect adoption and persisted candidates support recovery |
| Independent products and frozen worlds | Work owns creative content; worlds seal versioned semantics; downstream products read their own SourcePlan and own media, releases, and saves rather than rewriting the source novel |
See the architecture and evidence below for implementation boundaries. Engineering checks preserve evidence and state; literary quality, character performance, and provider capabilities still require author judgment.
Further reading: Motion-drama guide · Workshop installation and development · Node guide · Model configuration · Backup and recovery · Prompt methods · Feedback and support
Try an original story
Fog Harbor: The Last Light — community TTRPG preview
Investigate an old shipwreck with two AI companions, protect your character's secrets and decide how tonight's ships will return. An AI KP hosts the adventure using original 2d6 rules, with seven scenes, six clues and three endings.

The game bundle ships with the repository. Configure your own model API to begin; the screenshot shows the actual adventure entry.
Play loop: propose an action → resolve rules → read the KP response → inspect clues → save and continue.
Setup and model configuration · Player guide · Production/playthrough evidence
How to play and current scope
Run current main, open TTRPG (跑团) and choose the adventure below the production section. The standalone route /storyforge/play also works. The game bundle, cover and included media ship with the repository. Configure your model API, choose a character and start.
Play solo with AI companions or use same-device handoff. Progress is local, with resume and checkpoints. Public online multiplayer is not deployed, and same-device secrets are not protected from the device owner. Read the player guide and production/playthrough evidence.
Three 3D narrative games in Text open world
Run a current main checkout and open Text open world → Built-in narrative games (内置叙事游戏). These three games have no homepage cards. No API, extra model, or external game engine is required.
| Game | Content | Local path |
|---|---|---|
| Tidemark: Between Two Bells (潮痕:两声之间) | A 4–5 minute story with investigation, tools, a sequenced sluice puzzle, and two rescue routes/endings | /storyforge/play/tidemark-echo |
| Tidemark: The Last Lamp (潮痕:最后一盏灯) | Ten chapters of coastal fantasy; over 30,000 Chinese characters of main story, over 500 distinct dialogue lines, four endings | /storyforge/play/tidemark |
| Aphelion: Dock Seven (远日点:第七码头) | Ten chapters of space science fiction, equipment puzzles, side routes, four endings; the same long-story content minimums | /storyforge/play/aphelion |
Start with Between Two Bells. Use WASD/arrow keys or click-to-move, and E to interact; phones have on-screen controls. Settings include text exploration, lighter graphics, and reading modes. An explicit first start prepares independent world and game releases. Saves stay in your browser; new journeys and checkpoint branches retain previous saves, and full project backups can restore progress. Installing npm dependencies requires a connection; the main stories work offline once loaded.
The games use frozen scripts without free-form AI dialogue or voice acting, and do not establish completion of general game-generation capabilities. Older Release archives do not automatically receive them; choose a main checkout containing this update or a later Release.
Why StoryForge
- Traceable long-form memory. Original text, facts, summaries and retrieval help recover earlier clues; confirmed chapter changes feed later writing. Long fiction
- Dedicated production workflows. Short fiction has length and completion gates; screenplays retain adaptation evidence; comics separate panels, images and lettering. Creation products
- Author control over AI output. Formal authoring produces candidates for approval. Harness adds revision protection, execution evidence and recovery. Architecture and regression evidence
Quick start · Choose a product · First session · Worlds and experiences · Models and privacy · Community
Quick start
This introduction describes
main, checked on October 13, 2026. Long-form writing, short fiction, screenplay adaptation, comic adaptation, motion-drama preproduction, and the world engine have released product entries. Nodes and interactive products are previews. Historical GitHub Releases do not include subsequent changes; the hosted site may lag behindmain. Use current source for the features shown here. Screenshots are from an isolated local workspace, not an author's private manuscript.
Open the web app or run the source locally. Core local creation does not require a StoryForge account. AI generation uses your own provider credentials; cloud API charges are separate.
Use Node.js 24 and npm, matching CI:
git clone -c core.longpaths=true https://github.com/yuanbw2025/storyforge.git
cd storyforge
npm ci
npm run dev
On Windows, use Git for Windows and a short folder path. The clone command enables long paths in this repository before checkout. If Git reports Filename too long or a fatal checkout error, stop before running npm. Keep the incomplete folder and any local edits; clone into a new folder instead of overwriting files. npm run dev now stops before Vite when essential source/configuration files are missing. This check does not certify every file in the checkout. See Git clone configuration.
Open the address printed by Vite, with the /storyforge/ path. Keep the terminal running while using the app. A downloaded source ZIP needs the same commands after extraction; it is not a desktop installer.
On the home page, open the top-right model/settings button (模型与本地设置). For API providers, choose a provider, enter your API Key, Base URL and an accessible model, then test the connection. Test a small generation before a large task. A successful connection does not establish task quality, account balance or context capacity. For browser CORS errors, follow the settings panel's local proxy instructions.
Choose your starting point

| Goal | Entry | Result and maturity |
|---|---|---|
| Write a novel | Long novel | Settings, characters, outlines, chapters, continuity and revision; current engineering workflow accepted |
| Finish short fiction | Short novel | Story design, chapter cards, drafting, review, frozen release, Markdown/TXT/JSON export |
| Adapt a novel into a screenplay | Novel to screenplay | Frozen source, adaptation decisions, beats, scene writing, review, Fountain/FDX/print export |
| Adapt a novel into a comic | Novel to comic | Pages, panels, visual references, lettering, storyboard/visual releases and PNG/WebP/CBZ/PDF export; visual output depends on supported image services or suitable author assets |
| Prepare an animated series | Motion-drama materials | Series bible, episodes, materials, storyboards, reference frames, and tool packages; video production remains external |
| Build a world | World engine | Semantic content, explicit derivation, frozen world versions and read access |
| Compose a visual workflow | Node authoring | Preview; shares the long-form backend and work data |
| Play an original adventure | TTRPG → Published adventures | Community preview of Fog Harbor: The Last Light |
| Create interactive experiences | Character chat / Afterstory town / Text games | Preview; each product has its own production and runtime lifecycle |
Novel writing does not require the world engine. Long and short fiction may optionally be derived into a world by their author. Screenplays and comics are independent adaptations. A published adventure can be played without creating a world first.
Your first writing session
- Open Long form (
长篇) → Library (作品库) → New novel (新建长篇) and enter a title. A local folder can be configured here or later in settings. - Use project information, references and writing rules to record your intent. Fill only the settings needed for your story.
- Plan the conflict and characters, then create volumes and chapters in the outline. Write manually or edit and approve AI candidates.
- Open chapters, develop scene outlines and draft the text. Review before adopting results.
- Check changes to facts, character states, relationships and foreshadowing before continuing.
- Open Data management (
数据管理) to export Markdown/TXT and a full JSON backup.

What the architecture does for your work
Long fiction needs evidence from earlier chapters. Adaptation needs traceable decisions. Comics need readable pages as well as images. Each StoryForge product has a dedicated production model, backed by shared context retrieval, candidate approval, version checks and recoverable execution.
Product mechanisms and practical benefits
| Product | Concrete engineering | Practical benefit |
|---|---|---|
| Long fiction | Original text, structured facts, layered summaries, retrieval and future-impact review | Revisit early clues and track what a new chapter changes |
| Nodes — preview | Official actions reuse long-form Skills, work data and adoption | Compose smaller steps while retaining the existing manuscript |
| Short fiction | Dedicated length/chapter constraints, evidence-based review and completion gates | See what remains to draft, revise and finalize |
| Screenplays | Frozen sources → facts/causality → adaptation decisions → beats/scenes → structured script | Trace creative changes and review fidelity separately from dramatic effect |
| Comics | Script/page/panel pipeline, visual subjects, explicit reading order and separate lettering | Revise a panel or its dialogue and inspect page readability |
| Worlds | Versioned semantic snapshots and product-specific source plans | Reuse a known version across multiple works |
| Interactive previews | Dedicated rules, character knowledge, event histories and runtime state | Preserve consequences and independent playthroughs |
See the architecture and long-term consistency loop for diagrams, implementation links and regression evidence.
Long fiction and nodes
The long-form workspace includes references, world settings, character profiles and relationships, storylines, outlines, chapter editing, foreshadowing, facts, inventories, style learning, prompt templates, usage records and version history.
Memory has a traceable path back to the manuscript. Original text provides evidence; facts, relationships, events and storylines hold structured state; chapter/volume/global summaries aid navigation; retrieval finds relevant passages. Context Gateway discovers resources before reading details and records actual sources. Derived indexes and summaries are checked against source hashes, with original-text fallback when indexes are missing or stale. Work scope and chapter boundaries filter retrieval.
For example, a recurring object late in the novel can lead back to its earlier appearance so the author can check its owner or associated promise. The source record makes the retrieved context inspectable; it does not guarantee perfect recall or literary consistency.
New chapters have a follow-up workflow. Chapter settlement proposes changes to facts, character states, relationships, inventory, timelines, foreshadowing and storylines for author confirmation. Impact analysis identifies future plans needing revision while preserving confirmed history. If you reveal a secret earlier than planned, you can inspect affected future outlines and decide what to change. Version checks block stale candidates from overwriting newer edits.
Node mode exposes smaller building blocks. Official node actions bind to the same long-form domain Skills and candidate/adoption chain. Authors can arrange intermediate artifacts and generation steps; improvements to a shared action serve both interfaces. Experimental node drafts cannot be adopted into canonical work. Complete cross-mode UI and lifecycle interoperability remains under validation.
Implementation: narrative retrieval, chapter settlement, long-form and node contract.
Engineering tests cover 100,000 / 300,000 / 1,000,000-character workloads. These demonstrate storage and retrieval support, not a guarantee of literary quality or consistent million-word manuscripts. Model performance and author review still matter.
Short fiction, screenplays and comics
Short fiction: a visible route to completion
The dedicated workflow targets 5,000–25,000 Chinese characters across 3–8 chapters: confirm the brief and story design, plan chapter cards, draft and approve chapters, review, rewrite and release.
- Completion checks inspect actual manuscript length, chapter structure, missing text and pending candidates, making unfinished work visible.
- Review issues point to chapters and supporting text. Reviews bind to the manuscript hash; edits require a current review before publication. Rewrites target specific chapters.
- Blocking issues prevent release. An accepted manuscript becomes a new frozen edition, preserving earlier releases while revision continues. Export Markdown, TXT or JSON.
Implementation: production and completion gates, dedicated durable AI runs.
Screenplays: traceable adaptation, structured scenes
The pipeline freezes selected novel sources, then connects facts and causal relationships to adaptation decisions, beats, scene cards and script scenes.
- Source and decision mappings let authors inspect why an event was removed, merged or transformed into a scene.
- Scenes use an AST, a structured representation of script blocks. Code validates format and renders the same structure to Fountain, FDX or print.
- Source fidelity and dramatic structure have separate reviews. Revision patches name the scene, issues and expected revision; locked scenes must be unlocked first, and stale patches are blocked.
- Releases freeze sources, decisions and scenes. Later novel edits do not silently change a published screenplay.
When turning internal monologue into a confrontation, the author can inspect both the retained source information and the resulting dramatic scene. Implementation: production and targeted revisions, release snapshots, renderers.
Comics: script, visual assets and lettering as separate layers
Comic production first develops script beats, page plans and panels, then images and lettering. Authors can assess the visual narrative before spending on image generation.
- Stable page/panel identities and explicit reading order connect layout, shots, actions, dialogue and source evidence. Issues can target one page or panel.
- Visual subjects give characters, places and props stable identities and selected references. Image candidates record provenance and actual reference-transmission evidence for inspection and selection.
- Local SVG rendering adds editable bubbles, captions and sound effects above the images. Correcting dialogue does not require regenerating the panel. Checks flag lettering capacity, overlaps and unsafe boundaries; authors still inspect image occlusion.
- Storyboard and visual releases have distinct completion gates. Visual editions verify selected image bytes and retain strong Blob references so replacing working images does not alone remove old release media. Supported exports include PNG, WebP, CBZ and PDF.
Current image adapter limit: the built-in generic OpenAI-compatible adapter sends text only and declares no reference-image, fixed-seed or inpainting capability. The app reports these limits; naming a reference in a prompt is not recorded as transmitting an image. Visual production needs a configured image service or suitable author assets, with human selection and continuity review.
Implementation: production, media evidence, lettering, quality gates.
All three have their current engineering workflows implemented on main. Provider performance and content quality continue to be evaluated. See the capability baseline for evidence and limits.
Worlds and interactive products
Create a world directly or explicitly derive one from confirmed long/short fiction. Freeze a version, then configure and start production inside the selected product. Published experiences own their media, save data and private evolution. Later edits to a novel do not automatically synchronize with a derived world, and gameplay does not automatically rewrite the shared world.
The world engine preserves identity, provenance and immutable versions. Derivation records the source work, revision, selected range and content hash. Only semantic content is sealed into the world; products own their images and runtime data. Product-specific adapters declare required, optional and forbidden resources and freeze a SourcePlan before production. Progressive describe / search / read access records per-run context and a final SourceManifest of actual reads.
An adventure can continue using world version one while its author edits version two. A new experience can explicitly select the newer version. Developers can consume the versioned semantic interface without traversing internal world tables. See the world resource client and world contract.
Interactive products use dedicated runtime mechanisms. All remain previews; implemented mechanisms and complete experience validation are distinct:
| Product | Implemented mechanisms and their purpose | Current limit |
|---|---|---|
| TTRPG / AI KP | Rules, dice/effect resolution, separate KP/player/NPC contexts, recipient-filtered secrets, events and checkpoints give actions inspectable consequences | Fog Harbor has real-model production/playthrough evidence; public online multiplayer is not deployed |
| Character chat | Frozen profiles, voice rules, scene goals, commitments/secrets/conflicts as memory, and trust/closeness/wariness/respect state preserve conversation consequences | Long-term character quality remains under evaluation |
| Afterstory AI town | Six daily time slots, place access and travel, resident knowledge and memories, relationships, light management and offline-time catch-up organize life after the original ending | 14-day replay validation exists; longitudinal model and non-fixture media quality remain under evaluation |
| Text adventure | Action prerequisites, inventory, resources, abilities, quests and code-resolved checks connect progress to available actions | Complete experiences require work-specific validation |
| AVG | Declarative cues bind story beats to layered backgrounds, actors and audio; asset checks and stage snapshots support presentation recovery | Full audiovisual delivery remains under validation |
| Text open world | Regions, travel, resources, faction influence, actor schedules, task cards/templates and time-based regional changes support persistent exploration state | Full production and long-term play remain in development |
Online community and commercial services are later-stage work.
Shared execution and data architecture
Independent products, shared governed AI execution
Each product owns its domain services and artifacts. Harness is the execution and validation system around model calls: it records task contracts, actual inputs, candidates, versions, checkpoints and results, connecting that evidence to the work.
flowchart TB
subgraph PRODUCTS["Products · domain services and separate ownership"]
L["Long fiction / Nodes"]
C["Short fiction / Screenplays / Comics"]
W["World engine"]
I["TTRPG / Character chat / AI town / Text games"]
end
L & C & W & I --> H["Shared Harness · Formal AI tasks<br/>Skill + Run Contract · Budget · Versions · Recovery"]
H --> G["Context Gateway / Memory<br/>Registered sources · Retrieval · Original evidence"]
H --> M["Model adapters<br/>Candidates and raw responses"]
H --> A["Formal authoring adoption<br/>Author approval · Validation · adopt"]
H -.-> E["Durable ledger<br/>Events · Checkpoints · Verification receipts"]
G -->|"Scoped reads"| D["Local data and files<br/>IndexedDB / File and media storage<br/>PROJECT_TABLES governs lifecycles"]
A -->|"Transactional writes and readback"| D
E --> D
classDef engine fill:#e8f0fa,stroke:#5279a4,color:#18324f
classDef author fill:#fff2df,stroke:#b58a45,color:#593b16
classDef data fill:#eaf4ee,stroke:#628b73,color:#254a34
class H,M,E engine
class A author
class G,D data
Arrows show dependencies or data access, not execution order. Long and short fiction do not require the world engine. Interactive runtimes use product-specific commands and state machines; each product owns its media and saves. The next diagram follows formal long-fiction authoring.
How Harness maintains long-term consistency
Consistency depends on a continuing cycle: retrieve evidence, approve changes, and make the correct version available to the next task. Chapter generation, memory settlement, review and future planning each contribute.
flowchart TB
K["Confirmed records<br/>Text / Facts / State / Clues"]
K --> R["1. Freeze task and retrieve<br/>Scope, time, versions and deficits"]
R --> C["2. Generate and check candidate<br/>Structure, information boundaries<br/>Semantic review when configured"]
C --> A["3. Author approval and version check<br/>Adopt → Read back → Receipt"]
A --> P["4. Settlement and future impact<br/>Propose changes → Author approval"]
P -->|"Update records and indexes for later chapters"| K
R -. "Required evidence missing" .-> X["Pause / Reject writeback<br/>Preserve evidence for resolution"]
A -. "Source or target is stale" .-> X
classDef engine fill:#e8f0fa,stroke:#5279a4,color:#18324f
classDef author fill:#fff2df,stroke:#b58a45,color:#593b16
classDef data fill:#eaf4ee,stroke:#628b73,color:#254a34
classDef paused fill:#f7eaea,stroke:#b27a7a,color:#6a3030
class R,C engine
class A,P author
class K data
class X paused
Each formal run also persists its ledger and checkpoints. Settlement and future revisions are separate, bounded runs with their own version checks and approvals; the loop can span multiple writing sessions.
| Consistency risk | Implemented control | Inspectable evidence |
|---|---|---|
| Forgotten early facts or clues | Structured facts, layered summaries and long-tail retrieval lead back to original text; required-source deficits block progress | Context Manifest with sources, hashes, actual reads and missing evidence |
| Wrong work or premature knowledge | Work/world scope and task time boundaries filter sources; information-boundary checks apply | Source scope and boundary evidence |
| Author edits while generation is running | Adoption rechecks relevant context and target revisions; stale candidates cannot overwrite newer work | Input versions, stale status and retained output |
| A saved chapter fails to carry forward | Readback verifies persisted state; settlement connects memory, retrieval and storylines; authors handle future-impact candidates | Adoption events, post-state, linked runs and receipts |
| Review no longer matches the manuscript | Explicit consistency audits bind to the text hash; edits invalidate old audit evidence | Recoverable audit candidates, sources and findings |
| Refresh or interruption breaks the process | Verified checkpoints restore saved candidates with version checks; unknown external outcomes are not blindly retried | Run, attempt, checkpoint and terminal records |
For example, chapter 8 establishes who holds a unique token. When chapter 80 needs it, retrieval supplies the original passage and confirmed ownership state. If the author changes ownership while a candidate is awaiting approval, revision checks block direct adoption of the stale result. After the new chapter is accepted, confirmed settlement updates become available to later chapters. This illustrates the mechanism; detecting every implicit contradiction still depends on review and author judgment.
Evidence you can inspect
These existing regression tests cover concrete promises and failure cases:
| Claim | Regression evidence |
|---|---|
| Distant, middle and recent evidence at 100k / 300k / 1m characters; future/wrong-world isolation | Long-form scale gate |
| Missing required evidence blocks progress; exact edit targets cannot degrade to a prefix | Gateway execution |
| Changed prose or upstream settings block stale adoption | Prose adoption |
| Saved chapter-settlement candidates recover without another model call | Settlement recovery |
| Text changes invalidate audits; unknown model outcomes do not auto-retry | Explicit consistency audit |
| Written history is preserved and upstream changes invalidate future plans | Future evolution boundaries |
Implementation: formal prose runs, verification receipts, architecture, Harness standard.
Scope of assurance: deterministic code checks versions, scope, structure, state transitions and writeback rules. Semantic review depends on task configuration or explicit author action. Subtext, metaphors, unregistered clues and literary quality still require model and human judgment. Scale fixtures demonstrate engineering behavior, not verified literary consistency across a million-word novel. Recovery covers persisted state; auxiliary and experimental entries retain their explicitly registered limits.
Models, storage and privacy
- Bring your own cloud provider or use a compatible local model service such as Ollama or LM Studio. Provider presets are connection options, not certification that every model works equally well for every product.
- Cloud generation sends the task's selected context to your configured provider. Local-first does not mean every AI request is offline.
- Work and saves live in IndexedDB for the current browser profile and origin. Changing browser, hostname or port does not move your data.
- API Keys last for the current browser session by default. Explicitly choosing “remember on this device” stores them in localStorage.
- Export a full JSON backup before changing devices or clearing browser data. Markdown/TXT exports do not replace full backups; use the product/workspace export paths for media.
- Local folder access is user-authorized. See the memory workspace guide.
- Optional GitHub Gist backup uploads full project JSON to your private Gist. It is not end-to-end encrypted storage.
Community and contributing
- Bilibili video guide and Zhihu introduction: historical Chinese tutorials; menus may differ from current versions.
- QQ community: 1082374587.
- Developer's project site and GitHub Issues.
- Developer’s Zhihu profile.
For bugs, include the app version, browser/OS, steps, expected behavior and actual result. Remove secrets and private writing from screenshots and logs. Stars, tutorials, examples, translations and contributions are welcome.
StoryForge uses React, TypeScript, Vite, Zustand, TipTap and Dexie. Registered context sources, governed adoption and table lifecycle registries support the shared Agent/Harness infrastructure.
npm run ci
npm run ci:e2e
Read AGENTS.md, CONTRIBUTING.md and the collaboration workflow before contributing. Product boundaries are defined in the project charter.
Star history and support
Sponsorship is voluntary and does not change access to features or future updates. It supports model subscriptions and maintenance. See sponsorship details.
Code is licensed under MIT. Original works, models, third-party media and outputs retain their respective terms. See the TTRPG SRD license notice where applicable.
Explore related projects
Loading…