Skip to main content

fabricatio-novel

MIT Python Versions PyPI Version PyPI Downloads PyPI Downloads Bindings: PyO3 Build Tool: uv + maturin

AI-powered novel generation — outline to publication-ready EPUB.

Full dataflow and generation-logic walkthrough: docs/superpowers/specs/2026-08-21-novel-generation-dataflow.md

Installation

pip install fabricatio[novel]
# or
uv pip install fabricatio[novel]

For the CLI tool:

pip install fabricatio-novel[cli]

Pipeline

Generation runs a staged, template-driven pipeline over a context tree (NovelContext → ChapterContext → StoryContext → SceneContext), with every plan and character state proposed by the LLM in batched calls:

  1. Metadata — outline → NovelPlan (title, description, word count, global writing constraint, bible)
  2. Characters — bible roster → one CharacterSpan (start + end card) per character for the whole novel
  3. Chapters — chapter plans, then N-1 boundary cards per character so chapter 1 starts at the roster start and the last chapter ends at the roster end
  4. Stories — per chapter: story plans, then S-1 boundary cards per character anchored on the chapter's start/end
  5. Scenes — per story: scene plans; the story's spans are broadcast to every scene, which is where the prose is actually written
  6. Assembly — the composed context tree becomes a Novel; NovelBuilder (Rust/PyO3) produces the EPUB
  7. Illustration (wri only) — one post-process pass proposes an image prompt per scene, renders it via ComfyUI, and embeds the PNGs in the EPUB

Character state is two pure cards, never an interpolated chain: the LLM is only asked for the coarsest boundary states, and code stitches them so continuity is guaranteed. Single-child levels inherit their parent's spans with no LLM call.

The CLI runs the pipeline as a staged workflow (DebugNovelWorkflow), persisting a whole-tree JSON snapshot after every stage so any wrong result is traceable:

01_init → 02_metadata → 03_bible → 04_characters → 05_chapter_plans → 06_story_plans
       → 07_scene_plans → 08_scenes → 09_novel → export

Those snapshots are also the run's resume points. --resume <run> reloads the newest snapshot the run holds as the starting state and restarts at the stage that follows it — the newest stage itself when the run reached the end of the pipeline, so a finished novel can be exported again or drawn. --stage <name>, e.g. 08_scenes, restarts at that stage instead, continuing from the newest snapshot taken before it; the named stage runs again, so it is also the fix for a run that died inside it. In both cases the run drives the same workflow with every stage up to the restart point leaving itself out, so a run stopped mid-novel finishes instead of starting over and nothing already written is paid for twice. A stage the run holds no state before fails the resume before any LLM call rather than quietly running the novel again, and a run is only ever resumed by a command of its own family: w for a plain run, wr/wri for a sealed one. Everything the snapshot carries comes back with it — the outline, the resolved skills, the retrieval settings and the seals — while routing (--send-to) and the export options are per invocation and are stated again as usual. The two sealed commands interchange, so wri --resume <wr run> --stage 09_novel draws the illustrations of a novel that was written without them.

An optional RAG variant (RagDebugNovelWorkflow) retrieves WritingStyleDocument entries from LanceDB at two levels. The novel level searches the outline in the init stage's before-hook and renders the documents into the metadata and chapter-planning prompts. The chapter level retrieves once per story, renders the documents raw into that story's scene prompts, and stops rendering them into later prefix walks once every scene of the story carries content (the raw texts stay on the context for scoring and audit).

The wri variant (RagIllustrationDebugNovelWorkflow) appends one final post-process stage that illustrates every scene of the finished context before export; its stage snapshots stay identical to wr's.

Data Flow & Prompt Assembly

The pipeline follows one principle: every LLM touchpoint is a template plus named context variables, and nothing else. Each stage renders a Handlebars template from the current context channel; planner calls parse the reply into validated pydantic models, while the single prose call captures raw paragraphs. Everything between calls — word-count allocation, character-arc stitching, prefix propagation, assembly — is deterministic code.

Staged pipeline with its LLM call inventory

LLM call inventory

Stage Template · prompted with Yields
Metadata novel_metadata_requirement ← outline, language, constraint, skills, style_references NovelPlan (adopted onto the root)
Bible setting_bible_characters + setting_bible_background ← outline, language, skills SeriesBible — character roster and background settings, immutable for the run
Roster spans novel_character_span ← outline, skills, bible prompt block, title, description CharacterSpan[] — skipped without a roster
Chapter plans plan_requirement ← outline, novel fields, word count, styles, constraint, characters ChapterPlan[]
Chapter boundaries boundary_requirement ← skills, roster spans, chapter titles/descriptions N−1 boundary cards per character
Story plans plan_requirement ← chapter fields, styles, constraint, characters, cast StoryPlan[]
Story boundaries boundary_requirement ← skills, chapter spans, story titles/descriptions S−1 boundary cards per character
Scene plans plan_requirement ← story fields, styles, constraint, characters, cast ScenePlan[]
Scene prose scene_requirement ← 11 variables, see below plain prose → Scene.content
Scene illustration scene_illustration_prompt ← novel/chapter/story/scene titles, description, content, cast, illustration_constraint SketchSpec (prompt, negative prompt, LLM-chosen mp/prop) → PNGs rendered concurrently per scene (post-process)

Templates live in templates/built-in/ and are selectable through the Configuration keys below.

What flows down the tree

Each level materializes its plan via create(outline).update_from(plan).set_plan(plan), with word counts assigned out-of-band via expect_ (the root takes the novel plan's count, children take their allocated share). update_from adopts only the plan's scalar fields (title, description, cast); the style and constraint channels are stacked explicitly by the composing capability — set_writing_styles and set_writing_constraints each receive the parent's list followed by the child plan's own — so both accumulate down the chain, the novel's own channels being seeded from the novel plan. Each level then passes state down:

  • Running manuscript — an append-only ContextLog; every walk seeds each child with exactly the bytes that precede it in the final book (iter_prefixed_contexts)
  • Setting bible — rendered once at the root into a setting_bible prefix entry; every descendant inherits it through its own log
  • Selected skills — the names the user gave (plus their lookup roots) are resolved once at the root, carried by every level, and fetched by name from the skill library whenever a prompt is assembled: one byte-stable section heads the metadata proposal, the setting bible proposals, the roster-span proposal, the boundary-card proposals, every plan prompt, every scene write prompt and every RAG query refinement
  • Word budget — each level splits its expected_word_count among children by plan weight
  • Writing style — accumulated verbatim down the chain (style stacking); entries select the diction the prose must use — from the run's skill documents when the run carries them — rather than inventing amounts
  • Writing constraint — accumulated verbatim down the chain (constraint stacking): the ancestors' entries first, the level's own last, and the whole list reaches that level's planner and every scene's prose prompt; where two contradict, the later (deeper) entry wins
  • Unit partition — a level's children are proposed as one batch per parent, so the batch itself is the partition: the ## Requirements block in the plan prompt keeps every unit inside the parent's description and makes the units cover it exactly once
  • Character arcs — the roster fixes both endpoints; intermediate boundary cards are proposed per level and stitched in code; scenes receive the finished span list read-only

Composed prose flows back up: scene content enters the logs, and Novel.from_context aggregates the whole tree for export.

Context-tree data flow: what flows down, what flows up

How a scene prompt is assembled

The scene write is the only content-producing call, so its prompt is engineered for provider prefix caching: every row above ## Scene is byte-identical across the scenes of a story, and divergence starts exactly at the per-scene tail.

Scene prompt assembly: sources, template sections, response

Benchmark

Every finished run is measured against its own artifacts — no LLM calls, no re-execution. w/wr/wri print the scorecard right after the run, next to the delta against the newest comparable earlier run:

  • Hard gates — terms the corpus marks as gated, a chapter export that disagrees with the scenes, an empty scene, prose in the wrong script.
  • Compared metrics — length against target, both sides in the framework's own words (the core's word_count, the same counter the scene planner's satisfaction ratio uses), seam echo (the same moment written at the end of one scene and again at the top of the next), verbatim sentence repeats, cross-scene 12-gram overlap, sentence lengths (mean, median, max, spread and the share of run-on sentences, on the core's Unicode sentence segmentation), vocabulary repeats (how many n-grams repeat inside a fixed-size window, plus the thirty most frequent n-grams of every size from one to six), watch-term rate, run duration. Sentences and vocabulary are counted in characters, so every metric reads the same for a Chinese and an English run without a per-language rule.
  • Provenance — a plan_fingerprint over the planning snapshots: two runs sharing it replayed planning from the cache, so they compare per scene, with an exact sign test over the scenes that changed.

Every number above is measured in Rust — one Measure trait per signal, in fabricatio_novel.rust — and the scorer only sequences those measures: it owns the report and never re-measures, so a metric a measure adds reaches the scorecard JSON without a change here. The sizes a run is measured at live under [ext.novel.benchmark] (see Configuration).

A metric that moves off zero is never called noise — one gated term is a regression regardless of sample size. A metric with no better side (how long the sentences are, how much their lengths vary) reports an out-of-band move as drift instead of inventing a verdict. Semantic over-run (a scene staging the next scene's beats in its own words) is deliberately not gated: calibration showed term statistics cannot decide it, which is why benchmark/scorecard.py records what is measurable and what is not.

The scorecard and the comparison are handlebars templates (bench_scorecard, bench_comparison), so their wording and layout change without touching the scorer; the board is one table and nothing else, so Board renders it directly. The scorer only measures: every number a report prints is carried by the models themselves as a *_display field (handlebars has no arithmetic helpers, so rounding, percentages and units are precomputed next to the measurement), and a table's column widths span several rows (Comparison.table, Board), so the models measure and pad it for the same reason and the template prints it as-is; --json leaves those report-only fields out of the machine-readable form.

Each model also owns how it is read and measured, as classmethod factories — StageArtifact.collect/ load, SceneRef.collect, SceneScore.of, RepetitionScore.of, ProbeScore.of and their siblings — so benchmark/scorecard.py only sequences those factories and no measurement lives outside the model that carries it.

Content probes

Term lists belong to a corpus, not to this package, so they live in one table beside it — probes.toml in the working directory, which every fanvl bench command reads without being handed a path. gated terms fail the run when they appear in the prose, watch terms are reported per 1000 characters (raw and unlicensed — vocabulary the outline or the bible uses itself is licensed), and each aliases group warns when one novel mixes two names for the same object.

gated   = ["hologram"]              # every occurrence fails the run
watch   = ["sapphire"]              # counted per 1000 characters
aliases = [["lamp", "lantern"]]     # names one object must not alternate between

JSON works as well. --probes measures a single invocation against another table, and fanvl bench scan applies the same table to prose that has no run directory behind it:

fanvl bench score novels/20260101-101010     # one run's scorecard (--json for the raw form)
fanvl bench compare novels/20260101-101010   # against the newest comparable run (--against to pin one)
fanvl bench board novels -n 12               # the newest runs side by side
fanvl bench scan novels/ draft.txt           # manuscripts, chapters, drafts (dirs read every *.txt)
fanvl bench score novels/20260101-101010 --probes corpus/probes.toml

--probes defaults to probes.toml in the working directory, so a project with one table never repeats a path, and a path that does not exist only skips the probe rows — the benchmark never fails a run over its probe file. Without a table the corpus-independent metrics still run, and the probe row reads not configured.

Key Classes

Context channels

Class Role
NovelContext Root channel: outline, language, the run's skill_names, roster charactor_span, chapter_context
RagNovelContext NovelContext subclass carrying the novel-level RagRetrieval settings and the documents fetched from the outline; renders them into the metadata and chapter-planning prompts
ChapterContext Chapter channel: charactor_span, story_context, heading block
RagChapterContext ChapterContext subclass whose stories are RagStoryContexts; the RAG chapter stage promotes what it plans, so a reloaded snapshot keeps the sealed types
StoryContext Story channel: charactor_span, scene_context, accumulated writing_styles
RagStoryContext StoryContext subclass sealed with RagRetrieval settings; the RAG pipeline swaps it in before scene planning and stops rendering its references once every scene of the story carries content
SceneContext Leaf channel: broadcast charactor_span, content (the only composed prose)
CharacterSpan Start + end CharacterCard; derive_child_spans stitches boundary cards
ContextLog / ContextEntry Append-only manuscript log per channel: append, branch (fork history), clear (fresh fork); renders the prefixed-content prompt streams
SeriesBible characters name list + background_settings fact list; rendered once into a setting_bible prefix entry at the root

Every channel carries its running manuscript as an append-only ContextLog: composed blocks enter as frozen ContextEntry records, parents seed children with pure log snapshots, and prompts render them exactly like the former prefixed-content strings. Logs support with_entry/with_entries appends, branch() to fork alternative continuations from any point (copy-on-write), and clear() which returns a fresh empty log while the original history stays intact.

Plans & models

Class Description
NovelPlan Novel metadata: title, description, word count, global constraint, bible
ChapterPlan / StoryPlan / ScenePlan Weighted per-element plans (title, description, weight, style, constraint, cast)
Scene / Story / Chapter / Novel Materialized output tree with word-count satisfaction
SketchSpec / IllustratedScene LLM-proposed generation instruction — positive/negative prompt plus per-scene mp/prop (comfyui model); the scene output carrying its rendered illustration
WritingStyleDocument / EnrichedDocument LanceDB-backed writing-style references

Capabilities (mixins)

Class Description
SceneCompose Scene requirement rendering, prose generation, and the refusal guard: a reply that comes back far short of the scene's word budget, or that a judge calls a refusal, is asked again and then fails the run
StoryCompose Scene planning, scene write preparation, serial scene composition
ChapterCompose Story planning, draft_story_spans (S-1 boundary cards), story composition
NovelCompose Metadata, prepare_character_span (roster), chapter planning, draft_chapter_spans (N−1 boundary cards), and the run's skills — fetch_skills resolves names through the fabricatio-skill library (which logs and skips an unknown one), apply_skills binds the names that resolved to the root, whose prompts render their bodies as one leading section
RAGStyleFetch Writing-style retrieval shared by the RAG-bound levels: the rag_query/rag_limit/rag_decompose_attempts settings plus the decomposed multi-head search, whose refinement prompt leads with the run's skills section
RAGNovelCompose Seals the root with the retrieval settings in before_compose_novel_context, searches the outline, and renders the documents into the metadata and chapter-planning prompts
RAGChapterCompose Retrieves style docs once per story, extends scene prompts, and stops rendering them into later prefix walks once the story's scenes are written
BibleCompose Composes the setting bible from the outline once; immutable for the run
IllustrateScenes Post-process illustration: batch-proposes one complete generation instruction (SketchSpec: prompt, negative prompt, LLM-chosen mp/prop) per pending scene (honoring illustration_constraint), renders them concurrently via ComfyUI into the run's images/ directory, and attaches IllustratedScene outputs

Actions (staged workflow)

Action Stage
InitNovelContext / RagInitNovelContext 01_init — build context from outline/language/bible, then fire before_compose_novel_context (the RAG variant's hook seals the root and searches the outline)
ProposeNovelMetadataStage 02_metadata — propose_novel_metadata
ProposeSettingBibleStage 03_bible — compose_setting_bible, then seed the bible prefix; skipped when a bible is already present
PrepareCharacterSpanStage 04_characters — prepare_character_span (roster)
PlanChaptersStage / RagPlanChaptersStage 05_chapter_plans — plan_chapters_phase + boundary drafting (the RAG variant renders the novel's references and promotes the chapters to RagChapterContext)
PlanStoriesStage / RagPlanStoriesStage 06_story_plans — fires before_compose_chapter_context per chapter, then plan_stories_phase + boundary drafting (RAG seals each chapter's stories)
PlanScenesStage / RagPlanScenesStage 07_scene_plans — fires before_compose_story_context per story, then plan_scenes_phase (with RAG)
ComposeScenesStage / RagComposeScenesStage 08_scenes — writes scene prose, then closes each story (after_compose_story_context + post_process_story) and each chapter (after_compose_chapter_context + post_process_chapter)
AssembleNovelStage 09_novel — fires after_compose_novel_context, then assemble_novel
IllustrateNovelStage DumpNovelStage of the illustrated pipeline: post_process_novel resolves to IllustrateScenes', whose interface declares persist_dir, send_to and the illustration knobs, so this action declares and passes them; adds no snapshot dir
DumpNovelStage fires post_process_novel(ctx, novel) — exactly the arguments the novel capability declares — then exports: JSON always, EPUB and/or chapters/NN.txt per the unpacked export_format (ExportFormat) plus output_path/font/cover

The structured stages (02–07: metadata, setting bible, roster spans, and the three plan levels) fall back to the PLAN agent variant: a run whose context names no routing group proposes and plans through the [agent] plan slot, while the scene write (08) and assembly (09) keep their TASK default and the illustrated pipeline's illustration proposals ride the SMOL variant — mechanical prompt drafting that need not ride the run's writing group. An explicit --send-to still governs every stage alike. Leave --send-to unset to plan on the plan model, keep the prose on the TASK model, and draft illustrations on the SMOL model.

The RAG query refinement is no stage of its own: decomposing a level's text into search heads is mechanical, so it rides the SMOL agent variant — arefined_query's own default — and neither --send-to nor a level's fallback moves it off the [agent] smol slot. A decomposition that never arrives — the reply parses into no list — is asked again, up to rag_decompose_attempts times, each retry bypassing the cache read so a stored failure is refreshed rather than replayed, and a level still unanswered after that searches its raw text; an empty answer is the model's own verdict, so that level retrieves nothing at all, while a lone head is discarded for the raw text.

The scene write is guarded against refusals. A model that declines answers with a few hundred characters of policy prose in place of the scene, which the scene's own word budget already gives away: measured on a refused run, every refusal came back at 0.15–0.78 of its budget, while every composed scene ran 1.03–2.11. A reply under scene_refusal_ratio_floor is a refusal and nothing is asked, one at or above scene_refusal_ratio_accept is prose and nothing is asked, and only the band between them goes to ajudge on the SMOL tier, asking whether the requested scene is present rather than whether the answer reads as a refusal — a refusal-shaped question reads explicit prose as one — while a verdict that comes back unparseable counts as a refusal, because a reply nobody could vouch for is not one to write down. Every refusal is asked again, up to scene_refusal_max_retries times, with the cache read bypassed but the answer still stored, so the refusal sitting in the cache for that prompt is replaced rather than replayed. A scene refused on its last attempt raises SceneRefusedError and the run stops: a refusal is not prose, and written down it would reach the chapter, the prefix every later scene reads, and the EPUB with nothing downstream to flag it. refusal_ratio_floor, refusal_ratio_accept and refusal_max_retries on a role override the [ext.novel] defaults for that role's scenes.

Every stage wraps one compose_novel chain segment and fires the chain's lifecycle hooks at their chain positions, so a hook override on a stage customizes the staged run exactly like it customizes the programmatic chain; the scene-level hooks fire inside compose_scenes_phase, exactly as they do in the chain.

Workflows

Workflow Description
DebugNovelWorkflow Outline → exported novel (--format epub|txt|both), one stage per action with per-stage snapshots
RagDebugNovelWorkflow Same, with writing-style RAG at the novel (outline) and story levels
RagIllustrationDebugNovelWorkflow Same, plus a single post-process pass that renders a ComfyUI illustration for every scene into the EPUB

Rust / PyO3

Symbol Description
NovelBuilder Builder for EPUB 3.0 novels: title/description/authors, chapters (auto-XHTML), cover, fonts, CSS, TOC
split_paragraphs / join_paragraphs / text_to_xhtml_paragraphs Paragraph splitting and XHTML wrapping
significant_terms The distinctive terms of a text: every CJK 3..4-char n-gram and every Latin word of 4+, lowercased
Metric One number a measure reported: name (<measure>.<metric>) and value
Knobs The sizes every measure reads a run at; an argument left out keeps its calibrated value
measure_repetition(scenes, knobs=None) The overlap of every scene pair, the echo at every seam, and the stats over both
measure_vocabulary(text, knobs=None) N-gram slots, distinct/repeated grams, windows measured, recycled slots per 1000, and one gram table per size from 1 to 6
measure_probes(prose, watch, gated, aliases, licensed) Watch and gated hits, alias groups mixing two names, hits the licence never uses
measure_script(text) Characters by script — CJK, Latin, digits, other — whitespace included
RepetitionReport / VocabularyReport / ProbeReport / ScriptReport What each measure read, number by number, plus metrics()
GramTable One size's n-gram counts and the most frequent grams of that size, min(knobs.vocab_tops, distinct) of them

Every measure is one implementation of one trait, so a new measurement is a new type and nothing else: it reads any iterator of documents (Measure<T> where T: AsRef<str> — scenes, drafts, whole manuscripts), returns its own report, and names its numbers <measure>.<metric> through Reported. A report carries the evidence it was read from (the pairs, the seams, the ordered gram counts) and the flat metrics() list the scorecard JSON publishes, so a measure that gains a number reaches the artifact without a Python change. The sizes a run is measured at are calibrated once, in Knobs::default(); [ext.novel.benchmark] moves any of them for a run.

from fabricatio_novel.rust import Knobs, measure_repetition, measure_script, measure_vocabulary

knobs = Knobs(seam_size=4)          # only the named knob moves off its calibrated value
measured = measure_vocabulary(prose, knobs)
print(measured.size, measured.distinct, measured.windows, measured.recycled_per_1k)
for table in measured.tables:       # every size from 1 to 6, 30 grams each by default
    print(table.size, table.distinct, table.tops[:5])

repeats = measure_repetition([scene.content for scene in scenes])
print(repeats.max_pair, repeats.median_pair, repeats.p90_pair, repeats.worst_seam_index, repeats.loud_pairs)

print(measure_script(prose).cjk_share)

Vocabulary windows are packed into integers (21 bits per scalar value) and counted by sorting, so measuring a 200k-character text costs one pass and a single key vector per size rather than a string per window. Only the grams a report names are ranked and unpacked — the tail is selected away rather than sorted — so naming thirty grams of each of the six sizes costs about half a millisecond on that text.

Configuration

All options below are read through the fabricatio configuration chain (see the Configuration Guide). Set them under the [ext.novel] table in fabricatio.toml, equivalently under [tool.fabricatio.ext.novel] in pyproject.toml, or via FABRICATIO_EXT__NOVEL__<FIELD_UPPER> environment variables.

[ext.novel]
novel_metadata_requirement_template = "built-in/novel_metadata_requirement"
Option Type Default Description
novel_metadata_requirement_template str "built-in/novel_metadata_requirement" template used to extract the novel metadata (title, synopsis, word count) from the outline.
plan_requirement_template str "built-in/plan_requirement" template used to plan the chapters of the novel, the stories of a chapter and the scenes of a story.
scene_requirement_template str "built-in/scene_requirement" template used to write a single scene in full prose.
render_chapter_xhtml_template str "built-in/render_chapter_xhtml" template used to render a chapter as a full XHTML document.
scene_overlap_min_chars int 40 minimum whitespace-normalized overlap between a new scene's prefix and the previous prose that gets stripped; shorter echoes are kept.
scene_overlap_max_ratio float 0.6 maximum fraction of a generated scene the overlap may cover before the content is kept untouched with a warning instead of stripped.
scene_refusal_ratio_floor float 0.8 word count satisfaction below which a scene's reply is a refusal without asking a judge; refusals measured 0.15–0.78 of the budget where composed scenes ran 1.03–2.11.
scene_refusal_ratio_accept float 1.2 word count satisfaction at or above which a scene's reply is prose without asking a judge.
scene_refusal_max_retries int 3 how many times a scene is asked again when its reply reads as a refusal before the run fails.
bench_scorecard_template str "built-in/bench_scorecard" template used to render one run's benchmark scorecard.
bench_comparison_template str "built-in/bench_comparison" template used to render two runs' benchmark comparison.
setting_bible_characters_template str "built-in/setting_bible_characters" template used to propose the bible's character roster as a list of plain strings, one character per item.
setting_bible_background_template str "built-in/setting_bible_background" template used to propose the bible's background settings as a list of strings.
setting_bible_context_template str "built-in/setting_bible_context" template that renders the bible into the block seeded into the running manuscript prefix.
setting_bible_export_template str "built-in/setting_bible_export" template used to render the bible as a human-readable markdown document.
writing_style_as_prompt_template str "built-in/writing_style_as_prompt" template used to render writing style documents as prompts.
enriched_as_prompt_template str "built-in/enriched_as_prompt" template used to render enriched reference documents as prompts.
novel_character_span_template str "built-in/novel_character_span" template used to propose the novel roster as one CharacterSpan per character.
boundary_requirement_template str "built-in/boundary_requirement" template used to draft the N-1 chapter- and the S-1 story-boundary cards from the parent's spans.
scene_illustration_prompt_template str "built-in/scene_illustration_prompt" template used to propose one image-generation prompt for a composed scene.
illustration_constraint str "" global style/content constraint merged into every scene illustration prompt proposal; empty when unset.
illustration_negative_prompt str quality/anatomy exclusion list negative prompt forwarded to ComfyUI for every scene illustration unless the proposal supplies its own.
illustration_prompt_suffix str "best quality,masterpiece,4k,highres" quality tags appended to every scene illustration render prompt after the LoRA trigger augmentation; set empty to append nothing.
illustration_always_loras list[LoraEntry] [] LoRA entries chained into every scene illustration render before any selection — the slot for always-on style/character loras; each entry's trigger_words activate it in the prompt. Selectable loras live in the [ext.comfyui] loras catalog, where the LLM picks per scene on top of this chain.
illustration_choose_loras bool False opt-in per-scene LLM LoRA selection from the [ext.comfyui] loras catalog during illustration; off by default. illustration_always_loras chains regardless of this flag.
illustration_judge bool False opt-in per-scene visual judgement of each rendered illustration via a vision LLM; off by default. A failed verdict re-proposes the illustration prompt with the accumulated defect feedback and re-renders; an unavailable judge (None verdict) accepts the image.
illustration_judge_max_tries int 3 total generation attempts per scene when illustration_judge is on; the last attempt's image is always kept, judged or not. Rejected attempts are archived beside the canonical PNG as scene_XX_YY.attempt<N>.png.
scene_illustration_feedback_template str "built-in/scene_illustration_feedback" template rendering the rejected-attempt feedback tail appended to the requirement when a judged render is retried.
illustration_mp float | None None megapixel budget of each scene illustration's finished image (1.0 = 1,000,000 px); a per-scene proposal's mp wins, otherwise None falls back to [ext.comfyui] mp, then the active ComfyUI template's canvas.
illustration_mp_max float 1.2 hard ceiling on every scene illustration's megapixel budget, enforced at render time even when the LLM proposes a larger mp; the renderable quality brink (512x512x2.2x2.2) is ~1.27 MP, so 1.2 keeps a margin under it.
illustration_prop Prop | None None aspect-ratio preset of each scene illustration — enum member names like prop_2_3 (portrait), coerced to the Prop enum at load; a per-scene proposal's prop wins, otherwise None falls back to [ext.comfyui] prop, then the active ComfyUI template's ratio.
illustration_seed int | None None scene illustration sampler seed; None keeps the bundled ComfyUI template's seed.
illustration_skip_existing bool True skip scenes whose illustration PNG already exists so re-runs fill only the gaps.
illustration_timeout_per_image float 210.0 per-image render timeout in seconds; the total render timeout scales linearly with the batch size (value x pending renders) since all renders share one ComfyUI queue; 0 falls back to [ext.comfyui] timeout.

[ext.novel.benchmark] re-takes every measurement at other sizes than the calibrated ones; every key is optional, and a key left unset keeps the value the measures were calibrated with:

Option Type Default Description
pair_size int | None 12 characters per shingle when two scenes are compared.
seam_size int | None 8 characters per shingle when a scene seam is compared.
seam_window int | None 300 characters read from each side of a seam.
echo_warn float | None 0.05 overlap from which a pair or a seam is reported as a repetition.
vocab_size int | None 3 characters per vocabulary n-gram (1..=6).
vocab_window int | None 1000 n-grams per vocabulary window; windows are averaged, so the rate does not follow the run's length.
vocab_tops int | None 30 how many of the most frequent n-grams each size's table names.
duplicate_min_chars int | None 10 shortest sentence counted as a verbatim duplicate.
long_sentence_chars int | None 80 length from which a sentence counts as long.

Access at runtime: from fabricatio_novel.config import novel_config.

Usage

CLI

# Generate a novel from an outline
fanvl w -o "In a world where dreams are currency..."

# Generate with writing style RAG (LanceDB)
fanvl wr -o "In a world where dreams are currency..." -rq "Hemingway terse prose style"

# Generate with RAG + ComfyUI scene illustrations embedded in the EPUB
fanvl wri -o "In a world where dreams are currency..." -rq "Hemingway terse prose style"
fanvl wri -o "..." --choose-loras  # per-scene LLM-chosen LoRAs from the [ext.comfyui] catalog
fanvl wri -o "..." --judge --judge-tries 5  # vision-judge each illustration; retry with a revised prompt up to N total attempts

# Constrain generation with a setting bible
fanvl w -o "..." -b settings/bible.json

# Write with the user's own skills from the fabricatio-skill library
fanvl w  -o "..." -s terse-action -s no-adverbs   # repeatable, or comma-separated: -s terse-action,no-adverbs
# Extra skill roots are configured once, not per run: [ext.skill] extra_skill_dirs in fabricatio.toml

# Export as plain text instead of (or besides) EPUB: chapters/01.txt, 02.txt, …
fanvl w -o "..." --format both
fanvl w -o "..." --format txt

# Resume a run that stopped mid-novel without re-running what is on disk
fanvl wr --resume novels/20260101-101010                    # restarts at the stage after the newest snapshot
fanvl wr --resume novels/20260101-101010 --stage 08_scenes  # restarts at the prose stage, running it again

# Draw the illustrations of a novel that was written without them
fanvl wri --resume novels/20260101-101010 --stage 09_novel --judge

# Create / update / show the setting bible
fanvl bible create -o "In a world where dreams are currency..." --out settings/bible.json
fanvl bible update settings/bible.json -o "..." --sections characters
fanvl bible show settings/bible.json

# Store reference texts as writing style documents in LanceDB
fanvl store-refs ./corpus/*.txt
fanvl enrich-refs ./corpus/*.txt -eg "Extract world-building facts"

Skills

Skills are built into novel composition, not an add-on: a run names them and every planning prompt and scene write honors them. --skill/-s (repeatable, comma-separated allowed) resolves each name through the fabricatio-skill library — <root>/<name>/SKILL.md then <root>/<name>.md, over the cross-client skill dirs plus [ext.skill] extra_skill_dirs — and a name that resolves nowhere is logged by the library, with the roots it searched, while the run goes on with the names that resolved. Extra skill roots are configured there once (extra_skill_dirs), never per run.

The run binds only the names it resolved to its root context (skill_names), and every level carries that selection the way it carries outline. The bodies stay in the process-wide fabricatio-skill library, which parses a skill once and hands the same text to every walk: prompt assembly fetches them by name through ctx.skill_references(), so a run renders byte-identical text on every walk and a tree rebuilt in a fresh process re-reads exactly the files it resolved (a name that no longer resolves is logged and dropped rather than crashing the walk that renders it). Each reference comes back rendered as <name>body</name> — the skill's body wrapped in a tag named after it — so a prompt separates one skill's instructions from the next.

The resolved text forms one section (ctx.skill_section()) whose bytes are identical everywhere they appear: the metadata proposal, the setting bible proposals, the roster-span and boundary-card proposals, every plan prompt and every scene write prompt render it as their first block — ahead of the outline, or, for a scene, ahead of the manuscript block — so a run's calls to one model open with the same head and the provider's prefix cache carries over between them. The refinement prompt builds its head the same way: the section is prepended to the wrapped outline its template renders at byte 0. Nothing stores the text as prompt context: the log carries the manuscript itself, and the section is rendered from the root's skill_names wherever a prompt shows it.

import asyncio

from fabricatio_novel.actions.novel import InitNovelContext

ctx = asyncio.run(
    InitNovelContext().init_novel_context("In a world where dreams are currency...", skills=["terse-action"])
)

Programmatic

from fabricatio_novel.workflows.novel import DebugNovelWorkflow
from fabricatio_core import Event

event = Event.instantiate("write")
event.payload["novel_outline"] = "In a world where dreams are currency..."
event.payload["skills"] = ["terse-action"]  # resolved once at the root, honored by every prompt
role = Role.with_bio(name="writer").subscribe(event, DebugNovelWorkflow).dispatch()

EPUB Builder (Rust)

from fabricatio_novel.rust import NovelBuilder, text_to_xhtml_paragraphs

xhtml = text_to_xhtml_paragraphs(raw_chapter_text)

builder = (
    NovelBuilder()
    .new_novel()
    .set_title("My Novel")
    .add_author("Author Name")
    .add_chapter("Chapter 1", xhtml)
    .add_inline_toc()
)

builder.export("output.epub")

Dependencies

  • fabricatio-core — Core interfaces, template management, LLM capabilities
  • fabricatio-skill — Markdown skill library the run resolves its --skill names against
  • fabricatio-character — Character card models
  • pydantic — Data validation via models
  • Optional: fabricatio-lancedb — writing style RAG, typer — CLI

License

MIT — see LICENSE

Metadata

Release files for fabricatio-novel 0.32.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for fabricatio-novel 0.32.1
File Actions
fabricatio_novel-0.32.1-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for fabricatio_novel-0.32.1-cp314-cp314-win_amd64.whl
fabricatio_novel-0.32.1-cp314-cp314-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ x86-64 Details for fabricatio_novel-0.32.1-cp314-cp314-manylinux_2_34_x86_64.whl
fabricatio_novel-0.32.1-cp314-cp314-manylinux_2_34_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ ARM64 Details for fabricatio_novel-0.32.1-cp314-cp314-manylinux_2_34_aarch64.whl
fabricatio_novel-0.32.1-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for fabricatio_novel-0.32.1-cp314-cp314-macosx_11_0_arm64.whl
fabricatio_novel-0.32.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for fabricatio_novel-0.32.1-cp313-cp313-win_amd64.whl
fabricatio_novel-0.32.1-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details for fabricatio_novel-0.32.1-cp313-cp313-manylinux_2_34_x86_64.whl
fabricatio_novel-0.32.1-cp313-cp313-manylinux_2_34_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ ARM64 Details for fabricatio_novel-0.32.1-cp313-cp313-manylinux_2_34_aarch64.whl
fabricatio_novel-0.32.1-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for fabricatio_novel-0.32.1-cp313-cp313-macosx_11_0_arm64.whl
fabricatio_novel-0.32.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for fabricatio_novel-0.32.1-cp312-cp312-win_amd64.whl
fabricatio_novel-0.32.1-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details for fabricatio_novel-0.32.1-cp312-cp312-manylinux_2_34_x86_64.whl
fabricatio_novel-0.32.1-cp312-cp312-manylinux_2_34_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ ARM64 Details for fabricatio_novel-0.32.1-cp312-cp312-manylinux_2_34_aarch64.whl
fabricatio_novel-0.32.1-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for fabricatio_novel-0.32.1-cp312-cp312-macosx_11_0_arm64.whl

Total release size: 27.6 MB

Release files / fabricatio_novel-0.32.1-cp314-cp314-win_amd64.whl

Download URL fabricatio_novel-0.32.1-cp314-cp314-win_amd64.whl
Size 2.3 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
c6db8be79dacd815738d570288316289576b6034e7c2126771d00aba122567e5
BLAKE2b-256 checksum
How to use checksums
57bfd3a99cda8952c5ebfe1a786a4b415d3af5495004b66c1169884e46c78118
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_novel-0.32.1-cp314-cp314-manylinux_2_34_x86_64.whl

Download URL fabricatio_novel-0.32.1-cp314-cp314-manylinux_2_34_x86_64.whl
Size 2.5 MB
Tags CPython 3.14 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
8b27c34eb7466a5874ffb72b047a77b5d223f10574923594f65647078a0e5b83
BLAKE2b-256 checksum
How to use checksums
53f766512f8c0bf99e1371f09b876e6a6714595572d6be3f7b4c968b3a9334b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_novel-0.32.1-cp314-cp314-manylinux_2_34_aarch64.whl

Download URL fabricatio_novel-0.32.1-cp314-cp314-manylinux_2_34_aarch64.whl
Size 2.3 MB
Tags CPython 3.14 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
8b491acf091904d95cb2b9121cdf91133227ab2a7d9a29507aa8ef3713954843
BLAKE2b-256 checksum
How to use checksums
248b537138f9bf87dc04604d0722dc9b2352f840825ac73fe335feffdcfe4d19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_novel-0.32.1-cp314-cp314-macosx_11_0_arm64.whl

Download URL fabricatio_novel-0.32.1-cp314-cp314-macosx_11_0_arm64.whl
Size 2.2 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cb08d9b0e34e460bcf878f5624c5c900b596aefba6a42f037d18860ffadd98d5
BLAKE2b-256 checksum
How to use checksums
45ced99442f34388de2b4055d455c4eca8924cbb464ba8293e96421a4f14a194
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_novel-0.32.1-cp313-cp313-win_amd64.whl

Download URL fabricatio_novel-0.32.1-cp313-cp313-win_amd64.whl
Size 2.3 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
389258c12144b464d68b4f5551113fee17c2e9fcf45f7905586277fdbd3d0f72
BLAKE2b-256 checksum
How to use checksums
bdd8c14db0eb54cd857a269ed4fbcbdc69a92fc7520c7bd5f88d4dde7feba444
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_novel-0.32.1-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL fabricatio_novel-0.32.1-cp313-cp313-manylinux_2_34_x86_64.whl
Size 2.5 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
9daf13fd12fec32b7f7b873bb782db06829b807c10bad9a13c1dc024a22350e8
BLAKE2b-256 checksum
How to use checksums
1e8cc128bd7a3a4558affb84d44d03133b47232fb23c6dbcd2e07e247b1e921a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_novel-0.32.1-cp313-cp313-manylinux_2_34_aarch64.whl

Download URL fabricatio_novel-0.32.1-cp313-cp313-manylinux_2_34_aarch64.whl
Size 2.3 MB
Tags CPython 3.13 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
77dc7bff34caca76ce8ed447d100eaf2e95e36a88547866e0a7211f91359c595
BLAKE2b-256 checksum
How to use checksums
6e171ae5e6cd18769d17a2bc590de451fd9e730094e0f8e198e11db49061d116
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_novel-0.32.1-cp313-cp313-macosx_11_0_arm64.whl

Download URL fabricatio_novel-0.32.1-cp313-cp313-macosx_11_0_arm64.whl
Size 2.2 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b9c0feda44bf17ed6b5edc766fbb0b5f3bda94f21dc9e530c54e88c3b5fed16b
BLAKE2b-256 checksum
How to use checksums
0114b8334888495e63f626a26f38912e8a5944554ceb46b546f8655bf3218b4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_novel-0.32.1-cp312-cp312-win_amd64.whl

Download URL fabricatio_novel-0.32.1-cp312-cp312-win_amd64.whl
Size 2.3 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
ecc918a68b94e8f4ea6b5b59f7cae02519cb33cdd93c0e1561194ff009e59b4e
BLAKE2b-256 checksum
How to use checksums
30e98ff652b5c34d26f67d5fff8094a73fdc17d3a6ad16f4bea060113e7227b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_novel-0.32.1-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL fabricatio_novel-0.32.1-cp312-cp312-manylinux_2_34_x86_64.whl
Size 2.5 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
5c67f37e82508cffb942205923f39fc0b68811ab42748dbc80af90b7702fe6e0
BLAKE2b-256 checksum
How to use checksums
44fbb4b8fd9b2531b440b4837b3db07c766fa8bfaadaa2e3ec6af0f4476a34fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_novel-0.32.1-cp312-cp312-manylinux_2_34_aarch64.whl

Download URL fabricatio_novel-0.32.1-cp312-cp312-manylinux_2_34_aarch64.whl
Size 2.3 MB
Tags CPython 3.12 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
c28858671ca21e2719744562d0a34833770e057accb41b5938fe74d82722edfa
BLAKE2b-256 checksum
How to use checksums
1742e44d8756e054b4d54ea68a862e2f3011481b09d424cfb55ae879b181f8f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fabricatio_novel-0.32.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL fabricatio_novel-0.32.1-cp312-cp312-macosx_11_0_arm64.whl
Size 2.2 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8f206c0e128f051ccdc75c67ce00fe273bdde92995117f4461d17735914aa87b
BLAKE2b-256 checksum
How to use checksums
c59423f21777f896c369cb7d529ba36038db48ced2f5111e7eda1451120a81ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for fabricatio-novel 0.32.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.32.1 This release

12 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page