Skip to main content

AI-powered narrative generation system implementing Software 3.0 methodology - The Soul of Your Story's Blueprint

Project description

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"

Key Features

Flexible AI Providers

  • Google (Gemini, PaLM)
  • Ollama (local models)
  • OpenRouter (community models)
  • 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

storytelling-0.2.20.tar.gz (70.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

storytelling-0.2.20-py3-none-any.whl (72.5 kB view details)

Uploaded Python 3

File details

Details for the file storytelling-0.2.20.tar.gz.

File metadata

  • Download URL: storytelling-0.2.20.tar.gz
  • Upload date:
  • Size: 70.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for storytelling-0.2.20.tar.gz
Algorithm Hash digest
SHA256 270959317ee25f17ad0c3092f4663d4f5c38de0d9ec8dc903c7524638ab6fb4b
MD5 84e338eacd5f3363fe708f134a8404c1
BLAKE2b-256 ebf3f4dd7f5b1f2ecb2c344692f39c1719c5a8549cf7ba1f4cedd364ff6a6069

See more details on using hashes here.

File details

Details for the file storytelling-0.2.20-py3-none-any.whl.

File metadata

  • Download URL: storytelling-0.2.20-py3-none-any.whl
  • Upload date:
  • Size: 72.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for storytelling-0.2.20-py3-none-any.whl
Algorithm Hash digest
SHA256 5179e2b104207351ead5b4c44bcf13bebd74cf141c1d48118abef83c28fd8a72
MD5 5cb24a906b7935c28e9a9fd32e53b770
BLAKE2b-256 66ffa98a5f94206c778cabfad44d6beab35f82b0f8fe738e7ee0a1feb4727877

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page