Anime Aggregator
An API and a job runtime that aggregates anime details from various providers into one service.
Summary
| Latest Version | Unknown |
|---|---|
| License | Unknown |
| CI Status | Failing |
| Stars | 1 |
| Forks | 0 |
| Open Issues | 0 |
| Last Commit | 2026-11-14 |
| Downloads | 0 |
| Last Indexed | 2026-11-23 09:07 |
Installation
nimble install Anime Aggregator
choosenim install Anime Aggregator
git clone https://gitlab.com/eemj/anime-aggregator
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| Anime Aggregator | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://gitlab.com/eemj/anime-aggregator |
|---|---|
| Homepage | https://gitlab.com/eemj/anime-aggregator |
| Registry Source | gitlab |
README
Anime Aggregator
A comprehensive data management and aggregation tool designed to streamline and consolidate information from various anime providers. This tool serves as a centralized hub for organizing, syncing, and maintaining anime data, making it easier to access and manage anime information across different platforms.
Features
- Multi-Provider Data Aggregation: Collects and consolidates anime data from multiple sources
- Real-time Data Synchronization: Keeps data up-to-date with automatic refresh capabilities
- Advanced Search & Filtering: Powerful search capabilities with filtering by genres, studios, seasons, and more
- RESTful API: Comprehensive gRPC API with HTTP gateway for easy integration
- Caching Layer: Redis-based caching for improved performance
- Image Processing: Integrated image processing for posters, banners, and logos
- Observability: Built-in logging, metrics, and tracing with OpenTelemetry
- Database Management: PostgreSQL with automated migrations
Architecture
The Anime Aggregator is built with a microservices architecture consisting of:
- API Service (
cmd/api): Main gRPC service with HTTP gateway - Gateway Service (
cmd/gateway): HTTP gateway for API access - Cron Service (
cmd/cron): Scheduled data refresh and maintenance - Migration Service (
cmd/migrate): Database schema management
Providers
Implemented Providers
- AniList - https://anilist.co/
- Comprehensive anime database with detailed information
-
GraphQL API integration
-
MyAnimeList - https://myanimelist.net/
- Popular anime and manga database
- Web scraping integration
-
Also accessible via Jikan (unofficial API)
-
Kitsu.io - https://kitsu.io/
- Modern anime tracking platform
-
REST API integration
-
AniDB.net - https://anidb.net/
- Extensive anime database with detailed metadata
-
XML API integration
-
Fanart.tv - https://fanart.tv/
- High-quality anime artwork and images
-
REST API integration
-
TVDB - https://thetvdb.com/
- Television database with anime coverage
- REST API integration
Planned Providers
The following providers are defined but not yet implemented:
- LiveChart - https://www.livechart.me/ (Seasonal anime information)
- Anime-Planet - https://www.anime-planet.com/ (Anime database with recommendations)
- AniSearch - https://www.anisearch.com/ (Anime database with ratings and reviews)
- Notify.moe - https://notify.moe/ (Modern anime tracking platform)
- IMDb - https://www.imdb.com/ (Movie and TV database with anime content)
- Simkl - https://simkl.com/ (Media tracking platform)
Data Model
The system aggregates data into a unified model that includes:
Core Entities
- Anime Media: Main anime entries with comprehensive metadata stored as denormalized JSONB
- Anime Mapping: Cross-provider ID mappings linking anime entries across different providers
Aggregated Data
The system performs in-memory aggregation of raw provider data into unified objects that include:
- Combined metadata from all providers
- Unified scoring and ratings
- Consolidated genres, studios, and tags
- Multi-language title support
- Cross-provider relationships
- Character information with roles and actors
- Episode information with titles and air dates
- Image references for posters, banners, and logos
Database Schema
erDiagram
anime_media {
anime_provider provider
text provider_id
jsonb titles
jsonb poster
jsonb banner
jsonb logo
integer score
text description
anime_status status
anime_format format
anime_season season
integer season_year
text source
text age_rating
timestamp start_date
timestamp end_date
text country_of_origin
jsonb genres
jsonb tags
jsonb studios
jsonb relations
jsonb recommendations
jsonb characters
jsonb episodes
timestamp created_at
timestamp updated_at
timestamp deleted_at
}
anime_mapping {
uuid id
anime_provider provider
text value
timestamp created_at
}
anime_media ||--o{ anime_mapping : "mapped"
Getting Started
Prerequisites
- Go 1.24.0 or higher
- PostgreSQL 17+ with pgvector extension
- Redis 6.0+
- Docker and Docker Compose (optional)
Configuration
The application uses JSON configuration files with the following key sections:
- Database: PostgreSQL connection settings
- Redis: Caching configuration
- Providers: Rate limiting and retry settings for each provider
- Index: Search index configuration (Typesense)
- Telemetry: OpenTelemetry observability settings
- Logging: Log level and file rotation settings
API Usage
gRPC API
The main API is exposed via gRPC which provides:
- Refresh: Trigger data refresh for specific providers
- FilterAnime: Search and filter aggregated anime data
- ParseProviders: Parse provider URLs and extract IDs
- List Operations: Get available genres, studios, tags, etc.
Project Structure
anime-aggregator/
├── api/ # Protocol buffer definitions
├── cmd/ # Application entry points
│ ├── api/ # Main gRPC service
│ ├── gateway/ # HTTP gateway
│ ├── cron/ # Scheduled tasks
│ └── migrate/ # Database migrations
├── internal/ # Internal packages
│ ├── anime_aggregator/ # Core aggregation logic
│ ├── provider/ # Provider integrations
│ ├── database/ # Database layer
│ ├── config/ # Configuration management
│ └── grpc_client/ # gRPC client implementations
├── pkg/ # Public packages
└── scripts/ # Build and deployment scripts
License
This project is licensed under the MIT License - see the LICENSE.md file for details.