Skip to content

An intelligent anime ecosystem where Aiko recommends, Hikari converses, and Takumi recognizes, bringing the anime world to life through AI.

License

Notifications You must be signed in to change notification settings

iSathyam31/AniSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽŒ AniSync - Your Ultimate Anime AI Companion System

AniSync Banner

Meet your three specialized AI agents for the ultimate anime experience

Backend Frontend License Python React

๐Ÿš€ Live Demo โ€ข ๐Ÿ“– Documentation โ€ข ๐Ÿค– Meet the Agents โ€ข โšก Quick Start


๐ŸŒŸ Project Motto

"Bringing anime characters to life through AI, one conversation at a time"

AniSync bridges the gap between anime fans and their favorite characters through cutting-edge AI technology. Whether you're seeking personalized recommendations, want to chat with beloved characters, or need help identifying mysterious anime images, our specialized AI agents are here to enhance your anime journey.


๐ŸŽญ Meet Your AI Agents

AniSync features three unique AI agents, each crafted with distinct personalities and expertise, built on the powerful Agno Framework:

๐ŸŽŒ Aiko (ๆ„›ๅญ) - The Anime Recommender

Click to learn about Aiko

Name Origin: Aiko (ๆ„›ๅญ) means "beloved child" in Japanese, representing her love for anime and caring nature in helping fans discover their next favorite series.

Personality: Enthusiastic, knowledgeable, and caring anime specialist with encyclopedic knowledge spanning decades of Japanese animation.

Powered By: Azure OpenAI GPT-4.1 + AniList MCP Integration

What Aiko Does:

  • ๐ŸŽฏ Personalized anime and manga recommendations
  • ๐Ÿ” Genre-based discovery and analysis
  • ๐Ÿ’Ž Hidden gems and underrated series identification
  • ๐Ÿ“Š AniList database integration for accurate information
  • ๐Ÿง  Persistent user preference learning
  • ๐ŸŒˆ Cross-genre recommendation strategies

Example Conversation:

You: "I loved Attack on Titan, what should I watch next?"
Aiko: "Based on your love for Attack on Titan's intense storytelling and moral complexity, I'd recommend Vinland Saga for its historical depth and character development, or Code Geass for strategic warfare and plot twists! ๐ŸŽŒ"

โœจ Hikari (ๅ…‰) - The Character Roleplay Specialist

Click to learn about Hikari

Name Origin: Hikari (ๅ…‰) means "light" in Japanese, symbolizing her ability to bring anime characters to life and illuminate conversations with their unique personalities.

Personality: Dynamic, adaptable, and empathetic agent who can embody any anime character with authentic personality traits.

Powered By: Azure OpenAI GPT-4.1

What Hikari Does:

  • ๐ŸŽช Authentic anime character embodiment
  • ๐Ÿ—ฃ๏ธ Character archetype adaptation (tsundere, kuudere, genki, etc.)
  • ๐ŸŽฏ Dynamic speech pattern and mannerism replication
  • ๐Ÿ’ญ Persistent character relationship development
  • ๐Ÿ”„ Real-time personality consistency maintenance
  • ๐ŸŽจ Multi-character conversation switching

Supported Character Types:

  • Tsundere: Initially cold/hostile, gradually warming
  • Kuudere: Emotionally reserved, logical, rare displays
  • Genki: Energetic, optimistic, enthusiastic
  • Dandere: Shy, quiet, opens up gradually
  • Yandere: Intensely devoted with possessive tendencies

Example Conversation:

You: "I want to talk to Naruto Uzumaki"
Hikari (as Naruto): "Hey there, dattebayo! My dream is to become the greatest Hokage ever and protect everyone in the village! What's your dream? I bet it's something amazing, dattebayo! ๐Ÿœ"

๐Ÿ” Takumi (ๅŒ ) - The Image Recognition Master

Click to learn about Takumi

Name Origin: Takumi (ๅŒ ) means "artisan" or "craftsman" in Japanese, reflecting his masterful skill in analyzing and identifying anime characters from visual cues.

Personality: Analytical, precise, and detail-oriented specialist with unparalleled expertise in visual analysis.

Powered By: Google Gemini 2.0 Flash (optimized for multimodal image processing)

What Takumi Does:

  • ๐ŸŽฏ Precise anime character identification from images
  • ๐Ÿ“š Comprehensive character background analysis
  • ๐ŸŽญ Series information and context provision
  • ๐ŸŽจ Art style and studio recognition
  • ๐Ÿ”— Character design element interpretation
  • ๐Ÿ“ˆ Visual storytelling analysis

Analysis Depth:

  1. Visual Analysis: Hair, eyes, clothing, accessories
  2. Character Identity: Name, aliases, titles
  3. Series Context: Anime title, studio, release info
  4. Character Role: Protagonist/antagonist/supporting
  5. Background Story: History, motivations, development
  6. Cultural Impact: Popularity, merchandise, fan reception

Example Analysis:

Upload: [Image of character with spiky blonde hair]
Takumi: "This is Naruto Uzumaki from the series 'Naruto' by Studio Pierrot. He's the main protagonist, recognizable by his spiky blonde hair, blue eyes, and orange jumpsuit. As a jinchลซriki containing the Nine-Tailed Fox, his character arc focuses on gaining acceptance and achieving his dream of becoming Hokage... ๐Ÿ”"

๐Ÿ—๏ธ Project Architecture

AniSync follows a modern, scalable architecture designed for optimal performance and user experience:

๐ŸŽŒ AniSync System Architecture
โ”œโ”€โ”€ ๐ŸŒ Frontend (React + TypeScript + Vite)
โ”‚   โ”œโ”€โ”€ ๐ŸŽจ Anime-themed dark UI with smooth animations
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฑ Responsive design for all devices
โ”‚   โ”œโ”€โ”€ โšก Real-time agent status monitoring
โ”‚   โ””โ”€โ”€ ๐Ÿ’พ Persistent chat history with session storage
โ”‚
โ”œโ”€โ”€ ๐Ÿ”ง Backend (FastAPI + Agno Framework)
โ”‚   โ”œโ”€โ”€ ๐Ÿค– Three specialized AI agents
โ”‚   โ”œโ”€โ”€ ๐Ÿ—„๏ธ SQLite databases for agent memory
โ”‚   โ”œโ”€โ”€ ๐Ÿ”— External API integrations (AniList, Azure, Gemini)
โ”‚   โ””โ”€โ”€ ๐ŸŒ CORS-enabled REST API endpoints
โ”‚
โ””โ”€โ”€ โ˜๏ธ Deployment
    โ”œโ”€โ”€ ๐Ÿš€ Backend: Render (https://anisync-w38h.onrender.com)
    โ””โ”€โ”€ ๐ŸŒ Frontend: Vercel

๐Ÿ“ Project Structure

anisync/
โ”œโ”€โ”€ ๐Ÿ“ฑ app/
โ”‚   โ”œโ”€โ”€ ๐Ÿ”ง backend/           # FastAPI backend services
โ”‚   โ”‚   โ”œโ”€โ”€ api/             # Combined API endpoints
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ main.py      # Main FastAPI application
โ”‚   โ”‚   โ””โ”€โ”€ models/          # Pydantic data models
โ”‚   โ””โ”€โ”€ ๐ŸŒ frontend/         # React frontend application
โ”‚       โ”œโ”€โ”€ src/
โ”‚       โ”‚   โ”œโ”€โ”€ components/  # React components
โ”‚       โ”‚   โ”œโ”€โ”€ types/       # TypeScript definitions
โ”‚       โ”‚   โ””โ”€โ”€ utils/       # API services & utilities
โ”‚       โ””โ”€โ”€ package.json     # Frontend dependencies
โ”‚
โ”œโ”€โ”€ ๐Ÿค– src/
โ”‚   โ”œโ”€โ”€ agents/              # AI agent implementations
โ”‚   โ”‚   โ”œโ”€โ”€ aiko.py         # Anime recommender agent
โ”‚   โ”‚   โ”œโ”€โ”€ hikari.py       # Character roleplay agent
โ”‚   โ”‚   โ””โ”€โ”€ takumi.py       # Image recognition agent
โ”‚   โ”œโ”€โ”€ prompts/            # Agent instructions & personalities
โ”‚   โ””โ”€โ”€ memory/             # SQLite databases for agent memory
โ”‚
โ”œโ”€โ”€ ๐Ÿ“‹ requirements.txt      # Python dependencies
โ”œโ”€โ”€ ๐Ÿš€ render.yaml          # Render deployment config
โ”œโ”€โ”€ ๐Ÿ“„ README.md            # This file
โ””โ”€โ”€ ๐Ÿ“œ LICENSE              # MIT License

โšก Quick Start

๐Ÿ”ง Prerequisites

  • Python 3.13+ (specified in .python-version)
  • Node.js 18+ (for frontend development)
  • API Keys for Azure OpenAI, Google Gemini, and AniList

๐Ÿš€ Local Development

1๏ธโƒฃ Clone the Repository

git clone https://github.com/your-username/anisync.git
cd anisync

2๏ธโƒฃ Set Up Environment Variables

# Copy the example environment file
cp .env.example .env

# Edit .env with your API keys
# - Azure OpenAI credentials (for Aiko & Hikari)
# - Google Gemini API key (for Takumi)
# - AniList API token (for Aiko's anime data)

3๏ธโƒฃ Install Backend Dependencies

pip install -r requirements.txt

4๏ธโƒฃ Start Backend Services

cd app/backend
python api/main.py

Backend will be available at: http://localhost:8000

5๏ธโƒฃ Install Frontend Dependencies

cd app/frontend
npm install

6๏ธโƒฃ Start Frontend Development Server

npm run dev

Frontend will be available at: http://localhost:3000

๐ŸŒ Production Deployment

Backend (Render)

  1. Connect your GitHub repository to Render
  2. Set environment variables in Render dashboard
  3. Deploy using the included render.yaml configuration

Frontend (Vercel)

  1. Connect your GitHub repository to Vercel
  2. Set root directory to app/frontend
  3. Add environment variable: VITE_API_BASE_URL=https://your-backend-url.onrender.com

๐Ÿš€ Live Demo

Experience AniSync in action:

๐ŸŽฎ Try These Examples:

๐ŸŽŒ Chat with Aiko:

  • "Recommend anime similar to Your Name"
  • "What are some hidden gem romance anime?"
  • "I love psychological thrillers, what should I watch?"

โœจ Roleplay with Hikari:

  • Character: "Goku" โ†’ "Tell me about your training!"
  • Character: "Nezuko Kamado" โ†’ "How do you feel about your brother?"
  • Character: "Light Yagami" โ†’ "What is justice to you?"

๐Ÿ” Analyze with Takumi:

  • Upload any anime character image
  • Ask: "Who is this character and what anime are they from?"
  • Get detailed character analysis and series information

๐Ÿ› ๏ธ Technology Stack

๐Ÿ”ง Backend

  • Framework: FastAPI - Modern, fast web framework
  • AI Framework: Agno - Advanced AI agent orchestration
  • AI Models:
    • Azure OpenAI GPT-4.1 (Aiko & Hikari)
    • Google Gemini 2.0 Flash (Takumi)
  • Database: SQLite (agent memory & conversation history)
  • External APIs: AniList (anime data), MCP (Model Context Protocol)

๐ŸŒ Frontend

  • Framework: React 18 with TypeScript
  • Build Tool: Vite - Lightning fast development
  • Styling: Tailwind CSS with custom anime theme
  • Icons: Lucide React - Beautiful, customizable icons
  • State Management: React Hooks + Session Storage

โ˜๏ธ Deployment

  • Backend: Render - Reliable cloud platform
  • Frontend: Vercel - Optimized for React applications
  • CI/CD: Automatic deployment on git push

๐Ÿ“– API Documentation

๐ŸŽŒ Aiko Endpoints

POST /aiko/chat
GET  /aiko/health
GET  /aiko

โœจ Hikari Endpoints

POST /hikari/chat
GET  /hikari/health
GET  /hikari

๐Ÿ” Takumi Endpoints

POST /takumi/analyze
GET  /takumi/health
GET  /takumi

๐Ÿ”ง System Endpoints

GET  /           # API information
GET  /health     # System health check
GET  /docs       # Interactive API documentation

๐Ÿ“š Full API Documentation: Visit /docs on your deployed backend for interactive Swagger documentation.


๐Ÿค Contributing

We welcome contributions from the anime and AI community! Here's how you can help:

๐ŸŒŸ Ways to Contribute

  • ๐Ÿ› Bug Reports: Found an issue? Let us know!
  • ๐Ÿ’ก Feature Requests: Have ideas for new agent capabilities?
  • ๐ŸŽจ UI/UX Improvements: Make the interface even more beautiful
  • ๐Ÿค– Agent Enhancements: Improve agent personalities and responses
  • ๐Ÿ“š Documentation: Help improve our guides and examples

๐Ÿ”ง Development Setup

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and test thoroughly
  4. Commit your changes: git commit -m 'Add amazing feature'
  5. Push to the branch: git push origin feature/amazing-feature
  6. Open a Pull Request

๐Ÿ“‹ Code Style

  • Python: Follow PEP 8 guidelines
  • TypeScript/React: Use ESLint and Prettier configurations
  • Commits: Use conventional commit messages
  • Documentation: Update README and code comments

๐Ÿ› Troubleshooting

Common Issues

๐Ÿ”ง Backend Issues

Agent Import Errors

# Ensure you're in the correct directory
cd app/backend
python api/main.py

Missing Dependencies

pip install -r requirements.txt

Environment Variables

  • Check that all required API keys are set in .env
  • Verify Azure OpenAI and Gemini credentials are valid
๐ŸŒ Frontend Issues

API Connection Errors

  • Verify VITE_API_BASE_URL is set correctly
  • Check that backend is running and accessible

Build Errors

# Clear node modules and reinstall
rm -rf node_modules package-lock.json
npm install

Environment Variables

  • Ensure .env.local has the correct backend URL
  • Check Vercel environment variables for production
โ˜๏ธ Deployment Issues

Render Deployment

  • Check build logs for Python dependency issues
  • Verify environment variables are set in Render dashboard
  • Ensure render.yaml configuration is correct

Vercel Deployment

  • Set root directory to app/frontend
  • Verify build command is npm run build
  • Check environment variables in Vercel dashboard

๐Ÿ”’ Privacy & Security

๐Ÿ›ก๏ธ Data Protection

  • No Personal Data Storage: Conversations are stored locally in agent memory
  • API Key Security: All credentials are environment-variable based
  • HTTPS Encryption: All communications are encrypted in transit
  • Session Management: Secure session handling with unique identifiers

๐Ÿ” Best Practices

  • Environment Variables: Never commit API keys to version control
  • CORS Configuration: Properly configured for production domains
  • Input Validation: All user inputs are validated and sanitized
  • Error Handling: Comprehensive error handling without data leakage

๐Ÿ™ Acknowledgments

๐ŸŒŸ Special Thanks

  • Agno Framework: Powering our AI agent orchestration
  • AniList: Comprehensive anime database API
  • Azure OpenAI: Advanced language model capabilities
  • Google Gemini: Cutting-edge multimodal AI for image recognition
  • Anime Community: Inspiration and feedback from fellow otaku

๐ŸŽจ Design Inspiration

  • Japanese Aesthetics: Traditional and modern Japanese design elements
  • Anime UI/UX: Inspired by popular anime and manga interfaces
  • Dark Theme: Optimized for comfortable long-term usage

๐Ÿ“œ License

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

MIT License - Feel free to use, modify, and distribute
Copyright (c) 2025 AniSync Team

๐ŸŽŒ Made with โค๏ธ for the Anime Community

AniSync - Where AI meets Anime

โญ Star this repo ๐Ÿด Fork this repo ๐Ÿ‘€ Watch this repo

"The best anime recommendations come from understanding what moves your heart" - Aiko ๐ŸŽŒ

About

An intelligent anime ecosystem where Aiko recommends, Hikari converses, and Takumi recognizes, bringing the anime world to life through AI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors