AI-Powered Interactive Storytelling Engine built with OpenAI, dynamic world generation, memory systems, quests, NPCs, analytics, and export functionality.
NarrAIte is a modular Generative AI storytelling framework that creates interactive narrative experiences. The project combines large language models with game-inspired systems such as character progression, inventory management, quests, NPC interactions, achievements, memory tracking, and story analytics.
The goal of NarrAIte is to demonstrate practical applications of Generative AI beyond simple chat interfaces by building a complete narrative ecosystem.
- OpenAI-powered narrative generation
- Offline fallback support
- Dynamic chapter creation
- Choice-driven storytelling
- Custom playable characters
- Character state tracking
- Story progression management
- Dynamic fantasy world creation
- Locations and regions
- Expandable world-building framework
- Quest creation and management
- Story objectives
- Progress tracking
- Item management
- Persistent inventory state
- Story-integrated equipment
- Dynamic NPCs
- Relationship tracking
- NPC memory support
- Unlockable achievements
- Progress milestones
- Story history tracking
- Context persistence between chapters
- Chapter statistics
- Word counts
- Location tracking
- NPC interaction metrics
- TXT export
- PDF export
- Markdown export
NarrAIte/
├── notebooks/
├── src/
├── tests/
├── assets/
├── docs/
├── examples/
├── exports/
├── saves/
├── README.md
├── requirements.txt
└── LICENSE
git clone https://github.com/sammysamad402/NarrAIte.git
cd NarrAIte
pip install -r requirements.txtCreate a .env file:
OPENAI_API_KEY=your_api_key_hereOpen:
notebooks/NarrAIte_Main.ipynb
Run all notebook cells to generate:
- Dynamic worlds
- Characters
- Quests
- Inventory
- AI-generated story chapters
- Analytics
- Exports
pytest tests -vCurrent Status:
8/8 Tests Passing
- Python
- OpenAI API
- SQLite
- JSON Storage
- Jupyter Notebook
- Google Colab
- PyTest
- ReportLab
- Matplotlib
- Multi-provider AI support
- Branching story trees
- Advanced NPC intelligence
- Visual world maps
- Web interface
- Multiplayer storytelling
Abdul Samad Shaikh Bachelor of Engineering -I.T
GitHub: https://github.com/sammysamad402






