Skip to main content

Storytelling: Turn Your Ideas Into Complete Narratives

Transform a simple story idea into a fully-written, multi-chapter narrative. WillWrite is an AI-powered storytelling partner that handles the heavy lifting—outline generation, chapter planning, scene development, and revision—so you can focus on your creative vision.

What It Does ?

Create complete stories in minutes. You provide a story prompt. The system generates:

  • A structured outline with plot, characters, and themes
  • Individual chapters with detailed chapter outlines
  • Four polished scenes per chapter
  • Multiple revision passes for consistency and quality
  • Session persistence—pause and resume anytime

Powered by advanced AI orchestration. Built on LangGraph and LangChain with multi-LLM provider support, knowledge-base integration, and intelligent retrieval-augmented generation (RAG).

Getting Started

Installation

# Basic installation
pip install storytelling

# With full features (web fetching, local embeddings, cloud logging)
pip install storytelling[all]

Your First Story

# Create a prompt file
echo "A detective discovers a mysterious library" > my_prompt.txt

# Generate your story
storytelling --prompt my_prompt.txt --output my_story.md

Your completed story appears in my_story.md.

Using Your Own LLMs

# With local Ollama
storytelling --prompt prompt.txt \
  --initial-outline-model "ollama://mistral@localhost:11434"

# With Google Gemini
storytelling --prompt prompt.txt \
  --initial-outline-model "google://gemini-2.5-flash"

# With Claude through the Langfuse AI Gateway: pip install 'storytelling[gateway]',
# set LANGFUSE_GATEWAY_HOST and LANGFUSE_GATEWAY_KEY. Every call is a Langfuse trace.
storytelling --prompt prompt.txt \
  --initial-outline-model "langfuse-gateway://claude-haiku-5-5?session_id=my-story"

Key Features

Flexible AI Providers

  • Google (Gemini, PaLM)
  • Ollama (local models)
  • OpenRouter (community models)
  • Claude through the Langfuse AI Gateway (langfuse-gateway://, traced in Langfuse)
  • Custom endpoints

Knowledge-Aware Generation

  • Integrate your own knowledge bases
  • Web content retrieval
  • Semantic context enhancement
  • Consistent worldbuilding

Session Management

  • Pause and resume at any stage
  • Checkpoint-based recovery
  • Narrative branching
  • Full generation history

Production Ready

  • Comprehensive logging with Langfuse
  • Type-safe with Pydantic
  • Configurable for various use cases
  • Extensible architecture

Command Line

storytelling --help                    # See all options
storytelling --prompt file.txt         # Generate story
storytelling --list-sessions           # See your past sessions
storytelling --resume <session-id>     # Continue a session

Documentation

  • Full Setup Guide: See scripts/init.sh for environment setup
  • Architecture: Check rispecs/ directory for detailed specifications
  • Specifications: RISPECS.md contains implementation architecture
  • Prompts & Models: rispecs/Prompts.md and rispecs/LLM_Provider_Specification.md

Development

# Setup development environment
./scripts/init.sh

# Run tests
make test

# Check code quality
make lint

# Build and release
make release-check

License

CC0-1.0 License - See LICENSE

Metadata

Release files for storytelling 1.0.1

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

Source distribution (sdist)

Source distribution for storytelling 1.0.1
File Size Uploaded Provenance Actions
storytelling-1.0.1.tar.gz 103.3 kB Without provenance Details for storytelling-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for storytelling 1.0.1
File Interpreter ABI Platform Actions
storytelling-1.0.1-py3-none-any.whl Python 3 none any Details for storytelling-1.0.1-py3-none-any.whl

Total release size: 207.9 kB

Release files / storytelling-1.0.1.tar.gz

Download URL storytelling-1.0.1.tar.gz
Size 103.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2d3e6eea2bc5b8a74fc391844e9d7385ae5fa587d19561ec146ba88ad9a66186
BLAKE2b-256 checksum
How to use checksums
f8c61c0e5fc4418acdaa8fe28e44663a733ce86d4bde4694708e396764175b5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Release files / storytelling-1.0.1-py3-none-any.whl

Download URL storytelling-1.0.1-py3-none-any.whl
Size 104.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9f0ae02c39bdf1ab55b1ca15c83bc0b4dce75adfbfaad6ef0900eb1f185aa60
BLAKE2b-256 checksum
How to use checksums
c6f80145ea9204f6ac88454032cbac4db3257083aa7b90f3aee8c64eec46ff91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Security for storytelling 1.0.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.

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