A modern AI-powered story creation platform that helps writers and storytellers generate engaging stories with AI assistance and beautiful illustrations.
- Smart Story Generation - Create stories with AI assistance
- Interactive Editor - Rich text editor with formatting tools
- Story Templates - Pre-built templates for different genres
- Real-time Collaboration - Work on stories with others
- Story Illustrations - Generate images based on your story content
- Multiple AI Models - Support for Hugging Face and other AI models
- Custom Prompts - Fine-tune image generation with custom prompts
- High-Quality Output - Professional-grade illustrations
- Story Library - Organize and manage your stories
- Gallery View - Visual browsing of your story collection
- Export Options - Download stories in various formats
- Cloud Storage - Secure cloud storage for your work
- Secure Login - Firebase authentication
- User Profiles - Personalized experience
- Data Privacy - Your stories are private and secure
- Node.js 20 or higher
- npm or yarn
- Firebase account (for authentication)
- Hugging Face API key (for image generation)
-
Clone the repository
git clone https://github.com/Mugeshgithub/Story_spark_book.git cd Story_spark_book
-
Install dependencies
npm install
-
Set up environment variables Create a
.env.local
file in the root directory:HUGGING_FACE_API_KEY=your_hugging_face_api_key_here FIREBASE_API_KEY=your_firebase_api_key_here FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com FIREBASE_PROJECT_ID=your_project_id FIREBASE_STORAGE_BUCKET=your_project.appspot.com FIREBASE_MESSAGING_SENDER_ID=your_sender_id FIREBASE_APP_ID=your_app_id
-
Run the development server
npm run dev
-
Open your browser Navigate to http://localhost:9002
- Sign up/Login - Create an account or sign in
- Start New Story - Click "Create New Story"
- Write Your Story - Use the rich text editor
- Generate Images - Click the image generation button
- Save & Share - Save your story and share with others
- Story Suggestions - Get AI-powered writing suggestions
- Character Development - AI helps develop characters
- Plot Ideas - Generate plot twists and story arcs
- Image Generation - Create illustrations for your stories
- Frontend: Next.js 15, React 18, TypeScript
- Styling: Tailwind CSS, Radix UI
- AI/ML: Hugging Face API, Genkit
- Backend: Next.js API Routes
- Database: Firebase Firestore
- Authentication: Firebase Auth
- Deployment: Vercel, Firebase Hosting
src/
├── app/ # Next.js app router
│ ├── api/ # API routes
│ ├── story-creator/ # Story creation pages
│ └── gallery/ # Story gallery
├── components/ # React components
│ ├── ui/ # Reusable UI components
│ └── ... # Feature components
├── ai/ # AI integration
│ └── flows/ # AI workflows
├── lib/ # Utilities and configurations
└── hooks/ # Custom React hooks
We welcome contributions! Please feel free to submit a Pull Request.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Next.js - For the amazing React framework
- Tailwind CSS - For the beautiful styling system
- Hugging Face - For AI model APIs
- Firebase - For backend services
- Radix UI - For accessible UI components
If you have any questions or need help:
- Issues: GitHub Issues
- Discussions: GitHub Discussions
If you find this project helpful, please give it a ⭐ star on GitHub!
Made with ❤️ by Mugesh
Transform your ideas into stories with AI magic! ✨