{"id":20881473,"url":"https://github.com/js-bhavyansh/anime_app","last_synced_at":"2026-05-18T01:03:37.389Z","repository":{"id":248482706,"uuid":"816896318","full_name":"js-bhavyansh/Anime_App","owner":"js-bhavyansh","description":"An anime app using Jetpack Compose, Kitsu API, and MVVM. Displays trending anime with shared element transitions. Includes splash and onboarding screens. Built with Kotlin and Hilt.","archived":false,"fork":false,"pushed_at":"2024-08-20T16:33:57.000Z","size":2088,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T03:30:05.184Z","etag":null,"topics":["android","anime","coil","dependency-injection","hilt","jetpack-compose","kitsu-api","kotlin","mvvm-architecture","shared-element-transition"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/js-bhavyansh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-18T15:51:30.000Z","updated_at":"2025-02-19T00:52:37.000Z","dependencies_parsed_at":"2024-10-22T08:56:46.779Z","dependency_job_id":null,"html_url":"https://github.com/js-bhavyansh/Anime_App","commit_stats":null,"previous_names":["bhavyansh03-tech/anime_app","js-bhavyansh/anime_app"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/js-bhavyansh/Anime_App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bhavyansh%2FAnime_App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bhavyansh%2FAnime_App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bhavyansh%2FAnime_App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bhavyansh%2FAnime_App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/js-bhavyansh","download_url":"https://codeload.github.com/js-bhavyansh/Anime_App/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bhavyansh%2FAnime_App/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33161411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","anime","coil","dependency-injection","hilt","jetpack-compose","kitsu-api","kotlin","mvvm-architecture","shared-element-transition"],"created_at":"2024-11-18T07:24:59.855Z","updated_at":"2026-05-18T01:03:33.325Z","avatar_url":"https://github.com/js-bhavyansh.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anime App\n\nThis is an Android application that fetches and displays trending anime information using the Kitsu API. The app includes a splash screen, an onboarding screen, and uses the MVVM architecture. It also incorporates shared elements for smooth transitions between screens.\n\n## Features\n\n- Fetches trending anime information from the Kitsu API\n- Splash screen\n- Onboarding screen\n- MVVM architecture\n- Shared element transitions\n\n## Libraries and Tools\n\n- Jetpack Compose\n- Kitsu API\n- Hilt for Dependency Injection\n- Coil for image loading\n- kotlinx.serialization for navigation\n\n## Screenshots\n### Dark Mode :\n\u003cdiv style=\"display: flex; justify-content: center; align-items: center;\"\u003e\n    \u003cimg src=\"https://github.com/user-attachments/assets/3a59f7f4-39e0-4da4-8239-71aea389eb71\" alt=\"First Screenshot\" style=\"width: 200px; height: auto; margin-right: 10px;\"\u003e\n    \u003cimg src=\"https://github.com/user-attachments/assets/d08acb33-87b1-47f8-b271-a14de9e0392e\" alt=\"Second Screenshot\" style=\"width: 200px; height: auto;\"\u003e\n\u003c/div\u003e\n\n### Light Mode :\n\u003cdiv style=\"display: flex; justify-content: center; align-items: center;\"\u003e\n    \u003cimg src=\"https://github.com/user-attachments/assets/f16a180a-2b9b-4c75-8913-7de66c2e469e\" alt=\"First Screenshot\" style=\"width: 200px; height: auto; margin-right: 10px;\"\u003e\n    \u003cimg src=\"https://github.com/user-attachments/assets/77c29526-e106-4104-a1f8-b84c888c69cb\" alt=\"Second Screenshot\" style=\"width: 200px; height: auto;\"\u003e\n\u003c/div\u003e\n\n## Getting Started\n\n### Prerequisites\n\n- Android Studio\n- Kotlin\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n     git clone https://github.com/Bhavyansh03-tech/Anime_App.git\n   ```\n   \n2. Open the project in Android Studio.\n3. Build the project and run it on an emulator or a physical device.\n\n## Code Overview\n\n### ViewModel\n\n`AnimeViewModel` is responsible for fetching anime details and holding the data for `AnimeScreen`.\n\n```kotlin\n@HiltViewModel\nclass AnimeViewModel @Inject constructor(\n    private val api: KitsuRepository\n) : ViewModel() {\n\n    private var _anime = MutableStateFlow\u003cAnimeData?\u003e(null)\n    val anime = _anime.asStateFlow()\n\n    fun fetchAnime(id: Int) {\n        viewModelScope.launch {\n            _anime.update { api.getAnime(id) }\n        }\n    }\n}\n```\n\n`TrendingAnimeViewModel` is responsible for fetching anime details and holding the data for `TrendingAnimeListScreen`.\n\n```kotlin\n@HiltViewModel\nclass TrendingAnimeViewModel @Inject constructor(\n    private val repository: KitsuRepository\n) : ViewModel() {\n\n    private var _animeData = MutableStateFlow\u003cList\u003cAnimeData\u003e\u003e(emptyList())\n    val animeData = _animeData.asStateFlow()\n\n    init {\n        viewModelScope.launch {\n            _animeData.update { repository.getTrendingAnime() }\n        }\n    }\n}\n```\n\n`NavGraph SetUp`\n\n```koltin\n@OptIn(ExperimentalSharedTransitionApi::class)\n@Composable\nfun NavGraph(\n    startDestination: Screens\n) {\n    val navController = rememberNavController()\n\n    SharedTransitionLayout {\n        NavHost(\n            navController = navController,\n            startDestination = startDestination\n        ) {\n            navigation\u003cScreens.AppStartNavigation\u003e(\n                startDestination = Screens.OnboardingScreen\n            ){\n                composable\u003cScreens.OnboardingScreen\u003e{\n                    // Initializing the view model :-\u003e\n                    val viewModel = hiltViewModel\u003cOnboardingViewModel\u003e()\n\n                    // Calling Onboarding Screen :-\u003e\n                    OnboardingScreen(\n                        event = viewModel::onEvent\n                    )\n                }\n            }\n\n            navigation\u003cScreens.HomeNavigator\u003e(\n                startDestination = Screens.HomeScreen\n            ) {\n                composable\u003cScreens.HomeScreen\u003e {\n                    TrendingAnimeListScreen(\n                        onAnimeClick = { coverImage, id -\u003e\n                            navController.navigate(\n                                Screens.AnimeScreen(id.toString(), coverImage.toString())\n                            )\n                        },\n                        animatedVisibilityScope = this\n                    )\n                }\n\n                composable\u003cScreens.AnimeScreen\u003e {\n                    val args = it.toRoute\u003cScreens.AnimeScreen\u003e()\n\n                    AnimeScreen(\n                        id = args.id.toInt(),\n                        coverImage = args.coverImage,\n                        animatedVisibilityScope = this\n                    )\n                }\n            }\n        }\n    }\n}\n```\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.\n\n1. Fork the repository.\n2. Create your feature branch (`git checkout -b feature/your-feature`).\n3. Commit your changes (`git commit -am 'Add some feature'`).\n4. Push to the branch (`git push origin feature/your-feature`).\n5. Create a new Pull Request.\n\n## Contact\n\nFor questions or feedback, please contact [@Bhavyansh03-tech](https://github.com/Bhavyansh03-tech) on GitHub or connect with me on [LinkedIn](https://www.linkedin.com/in/bhavyansh03/).\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-bhavyansh%2Fanime_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjs-bhavyansh%2Fanime_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-bhavyansh%2Fanime_app/lists"}