Skip to content

mansi0xc/illude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 

Repository files navigation

โœจ Illude - AI-Powered Interactive Storytelling Platform

๐ŸŽญ Bring Your Imagination to Life with AI

An intelligent story generator that crafts evolving narratives in real-time, maintaining character arcs and plot continuity across unlimited chapters.


๐ŸŒŸ What Makes Illude Special?

Illude isn't just another AI writing tool. It's a living story ecosystem that:

  • ๐Ÿง  Remembers Everything - Advanced memory system tracks plot points, character development, and story continuity
  • ๐ŸŽจ Evolves Naturally - Each chapter builds meaningfully on previous events
  • ๐Ÿค Collaborative Creation - Choose between AI-driven narrative flow or direct your story's path
  • ๐Ÿ’พ Never Lose Progress - All stories are safely stored in MongoDB with full history
  • ๐ŸŽญ Rich Character Development - Watch your characters grow and change across chapters
  • โšก Instant Generation - Powered by Google Gemini 2.5 Flash for lightning-fast story creation

๐Ÿš€ Key Features

๐Ÿ“š Intelligent Story Management

  • Story Dashboard - Beautiful grid view of all your stories with status tracking
  • Multi-Chapter Narratives - Unlimited chapter generation with perfect continuity
  • Character Arc Tracking - AI monitors and develops character growth over time
  • Plot Memory System - Maintains consistency across complex storylines

๐Ÿค– Advanced AI Generation

  • Dual Generation Modes:
    • ๐ŸŽฏ AI Direction - Let AI naturally progress your story
    • โœ๏ธ User Direction - Provide specific instructions for story development
  • Context-Aware Writing - AI considers all previous chapters and character states
  • Automatic Chapter Analysis - Every chapter is analyzed for key events and plot developments

๐ŸŽจ Beautiful User Experience

  • Dark Theme with elegant emerald accents
  • Responsive Design - Perfect on desktop and mobile
  • Intuitive Navigation - Seamlessly move between stories and chapters
  • Real-time Updates - Watch your stories come to life instantly

๐Ÿงฉ Comprehensive World Building

  • Character Profiles - Detailed character creation with relationships and backgrounds
  • World Systems - Magic systems, technology, power structures, and more
  • Cultural Elements - History, lore, mythology, and cultural details
  • Setting Management - Rich environmental and location descriptions

๐Ÿ› ๏ธ Tech Stack

Frontend

  • Next.js 15.3.5 - React framework with App Router
  • TypeScript - Type-safe development
  • Tailwind CSS - Utility-first styling
  • Radix UI - Accessible component primitives
  • Lucide React - Beautiful icon library

Backend

  • Next.js API Routes - Serverless backend functions
  • MongoDB - Document database for story persistence
  • Mongoose - ODM for MongoDB integration

AI Integration

  • Google Gemini 2.5 Flash - Advanced language model for story generation
  • Smart Prompting - Context-aware prompt engineering for consistency

๐ŸŽฏ Getting Started

Prerequisites

  • Node.js 18+
  • MongoDB database (local or cloud)
  • Google Gemini API key

Installation

  1. Clone the repository

    git clone https://github.com/mansi0xc/illude.git
    cd illude/client
  2. Install dependencies

    npm install
  3. Set up environment variables

    # Create .env.local file
    cp .env.example .env.local

    Add your configuration:

    MONGODB_URI=your_mongodb_connection_string
    GEMINI_API_KEY=your_google_gemini_api_key
  4. Run the development server

    npm run dev
  5. Open your browser Navigate to http://localhost:3000


๐ŸŽฎ How to Use Illude

1. Create Your First Story

  • Click "Start Creating" on the homepage
  • Fill in your story details:
    • Basic Info: Title, description, plot, and central conflict
    • Characters: Detailed character profiles with goals and relationships
    • World Building: Settings, magic systems, rules, and lore
  • Generate your first chapter automatically

2. Continue Your Adventure

  • Visit "My Stories" to see all saved stories
  • Click "Continue Story" to add new chapters
  • Choose your generation mode:
    • ๐Ÿค– AI Direction: Let AI naturally progress the story
    • โœ๏ธ Your Direction: Tell AI exactly what should happen next

3. Read and Manage

  • Read Full Stories with beautiful chapter navigation
  • View Story Memory to see plot points and character arcs
  • Track Character Development across chapters
  • Delete or Archive completed stories

๐Ÿง  Story Memory System

Illude's revolutionary memory system ensures perfect story continuity:

What Gets Tracked:

  • ๐Ÿ“Š Plot Points - Key story developments and turning points
  • ๐Ÿ‘ฅ Character Arcs - Individual character growth and changes
  • ๐ŸŒ World State - Current state of your story world
  • โš”๏ธ Active Conflicts - Ongoing tensions and problems
  • ๐Ÿ” Mysteries - Unresolved elements to address later
  • ๐Ÿ”ฎ Foreshadowing - Elements to pay off in future chapters
  • ๐Ÿ’• Relationships - Character interactions and bonds

How It Works:

  1. Chapter Generation - AI writes new chapter with full context
  2. Automatic Analysis - AI analyzes chapter for key elements
  3. Memory Update - Story memory is updated with new information
  4. Future Reference - All future chapters use this accumulated knowledge

๐ŸŽจ Screenshots & UI Highlights

๐Ÿ  Landing Page

Elegant dark theme with emerald accents showcasing Illude's capabilities

๐Ÿ“ Story Generator

Comprehensive form for creating rich, detailed stories with dynamic character and world-building sections

๐Ÿ“š Story Dashboard

Beautiful grid layout showing all your stories with status indicators and quick actions

๐Ÿ“– Story Reader

Immersive reading experience with chapter navigation and expandable story details

๐Ÿ”ฎ Story Continuation

Split-view interface for generating new chapters with memory context and real-time preview


๐Ÿ—‚๏ธ Project Structure

illude/
โ”œโ”€โ”€ client/                     # Next.js application
โ”‚   โ”œโ”€โ”€ app/                   # App Router pages
โ”‚   โ”‚   โ”œโ”€โ”€ api/              # API routes
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ stories/      # Story CRUD operations
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ initStory/    # Initial story generation
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ stories/          # Story management pages
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ [id]/        # Individual story pages
โ”‚   โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ continue/ # Story continuation
โ”‚   โ”‚   โ”‚       โ”‚   โ””โ”€โ”€ page.tsx  # Story reader
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ page.tsx     # Stories dashboard
โ”‚   โ”‚   โ”œโ”€โ”€ story-generator/  # Story creation
โ”‚   โ”‚   โ””โ”€โ”€ page.tsx         # Landing page
โ”‚   โ”œโ”€โ”€ components/           # Reusable UI components
โ”‚   โ”œโ”€โ”€ functions/           # Utility functions
โ”‚   โ”œโ”€โ”€ lib/                # Database and utilities
โ”‚   โ”‚   โ”œโ”€โ”€ mongodb.ts      # MongoDB connection
โ”‚   โ”‚   โ””โ”€โ”€ models.ts       # Database schemas
โ”‚   โ””โ”€โ”€ package.json
โ””โ”€โ”€ README.md

๐Ÿ”ง API Reference

Stories

  • GET /api/stories - Get all stories
  • POST /api/stories - Create new story
  • GET /api/stories/[id] - Get specific story
  • PUT /api/stories/[id] - Update story
  • DELETE /api/stories/[id] - Delete story

Chapters

  • POST /api/stories/[id]/chapters - Generate new chapter
    {
      "generateType": "ai" | "user-directed",
      "userDirection": "Optional direction for the story"
    }

Story Generation

  • POST /api/initStory - Generate first chapter and create story
    {
      "story": {
        "title": "Story Title",
        "description": "Story description",
        "characters": [...],
        "settings": "Story setting",
        // ... other story properties
      }
    }

๐ŸŽญ Sample Story: "The Echoing Void"

Try Illude with this ready-to-use story concept:

Genre: Sci-Fi Fantasy
Setting: Memoriam - floating city where memories are currency
Protagonist: Kira Ashwind - memory thief seeking the legendary "First Memory"
Conflict: Must choose between power and protecting reality itself

Perfect for testing multi-chapter generation and memory continuity!


๐Ÿค Contributing

We welcome contributions! Here's how you can help:

  1. ๐Ÿ› Report Bugs - Use GitHub issues for bug reports
  2. ๐Ÿ’ก Suggest Features - Share your ideas for improvements
  3. ๐Ÿ”ง Submit PRs - Help improve the codebase
  4. ๐Ÿ“– Improve Docs - Help make the documentation better

Development Guidelines

  • Use TypeScript for type safety
  • Follow the existing code style
  • Add JSDoc comments for functions
  • Test your changes thoroughly

๐Ÿ“‹ Roadmap

๐Ÿ”„ Current Features

  • โœ… AI-powered story generation
  • โœ… MongoDB story persistence
  • โœ… Multi-chapter continuity
  • โœ… Advanced memory system
  • โœ… Beautiful responsive UI
  • โœ… Character arc tracking

๐Ÿš€ Coming Soon

  • ๐Ÿ”Š Audio Generation - Text-to-speech for chapters
  • ๐ŸŽจ Image Generation - AI-generated story illustrations
  • ๐Ÿ‘ฅ Collaborative Stories - Multi-user story creation
  • ๐Ÿ“ฑ Mobile App - Native iOS/Android experience
  • ๐ŸŒ Story Sharing - Public story gallery
  • ๐ŸŽฏ Genre Templates - Pre-built story frameworks

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments

  • Google Gemini - For powerful AI story generation
  • Next.js Team - For the amazing React framework
  • Tailwind CSS - For beautiful, utility-first styling
  • MongoDB - For reliable data persistence
  • Radix UI - For accessible component primitives
  • Lucide - For beautiful, consistent icons

๐ŸŒŸ Ready to Create Your Epic Story?

Visit Illude and let your imagination run wild!


"Every great story begins with a single word. Let Illude help you find yours." โœจ

About

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors