Unleash your imagination and craft captivating tales with the power of AI.
KathaVerse is an innovative web application that empowers storytellers, writers, and creative enthusiasts to overcome writer’s block and rapidly prototype engaging narratives. Using AI-driven content generation, KathaVerse transforms text, voice, or image inputs into structured stories across multiple genres and styles.
-
Intelligent Story Generation
- Text Input: Enter plot details, characters, and setting to generate unique stories.
- Voice Input: Speak your ideas; AI transcribes and crafts the narrative.
- Image Input: Upload an image to inspire a story based on visual cues.
-
Customizable Parameters
- Genre: Choose from Fantasy, Sci-Fi, Mystery, Horror, Adventure, Romance, and more.
- Perspective: First-person, Second-person, or Third-person narration.
- Format: Traditional narrative or dialogue-only scripts.
- Mood & Setting: Control atmosphere (e.g., weather, season, emotional tone).
- Time Period: Place stories in Ancient, Medieval, Modern, or future settings.
- Length: Specify Short, Medium, or Long story lengths.
-
Immersive Experience
- Background Music: Play, pause, and control volume for mood-enhancing tracks.
- Text-to-Speech: Listen to stories with adjustable speed, voice selection, and sentence highlighting.
-
User Interface
- Responsive Design: Fluid layout for desktop, tablet, and mobile.
- Animations: Smooth, cascading effects for an immersive reading experience.
- Theme Toggle: Light and dark mode support.
-
Frontend
- React & TypeScript
- Vite for fast development and builds
- Tailwind CSS & shadcn/ui for styling and accessible components
- react-router-dom, @tanstack/react-query, react-hook-form & zod
- Web Speech API for voice input and text-to-speech
-
AI/ML
- Google Gemini API for story generation and multimodal input processing
KathaVerse is a Single-Page Application (SPA) with client-side AI integration:
- User Input: Handled by
StoryForm.tsx
, capturing text, voice, or image data. - API Module:
geminiApi.ts
constructs prompts, manages requests, and caches responses with in-memory store. - Story Rendering:
StoryOutput.tsx
displays generated text and rich media controls (music, TTS). - UI Components: A suite of reusable Shadcn UI components ensures consistency and accessibility.
Client → Google Gemini API → Client
- Node.js v18 or higher
- npm
# Clone the repository
git clone https://github.com/yourusername/kathaverse.git
cd kathaverse
# Install dependencies
npm install
# Start the dev server
npm run dev
Visit http://localhost:8080
in your browser to explore KathaVerse.
npm run build
Compiled files will be in the dist
folder, ready for deployment.