{"id":15029448,"url":"https://github.com/kizitonwose/calendar","last_synced_at":"2026-01-18T06:01:08.913Z","repository":{"id":39669326,"uuid":"182417603","full_name":"kizitonwose/Calendar","owner":"kizitonwose","description":"A highly customizable calendar view and compose library for Android and Kotlin Multiplatform.","archived":false,"fork":false,"pushed_at":"2025-09-21T14:54:47.000Z","size":5319,"stargazers_count":5438,"open_issues_count":11,"forks_count":577,"subscribers_count":33,"default_branch":"main","last_synced_at":"2026-01-14T07:54:06.229Z","etag":null,"topics":["android","calendar","calendar-library","calendarview","compose","compose-calendar","compose-calendar-library","compose-multiplatform","date","date-range","date-range-picker","datepicker","heatmap-calendar","kmp","kmp-library","kotlin","kotlin-multiplatform","month-calendar","week-calendar","year-calendar"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kizitonwose.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2019-04-20T14:43:36.000Z","updated_at":"2026-01-13T11:17:06.000Z","dependencies_parsed_at":"2024-01-14T02:36:56.561Z","dependency_job_id":"8681d530-6086-4507-859e-8fbff89bc814","html_url":"https://github.com/kizitonwose/Calendar","commit_stats":null,"previous_names":["kizitonwose/calendarview"],"tags_count":69,"template":false,"template_full_name":null,"purl":"pkg:github/kizitonwose/Calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kizitonwose%2FCalendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kizitonwose%2FCalendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kizitonwose%2FCalendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kizitonwose%2FCalendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kizitonwose","download_url":"https://codeload.github.com/kizitonwose/Calendar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kizitonwose%2FCalendar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28531991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","calendar","calendar-library","calendarview","compose","compose-calendar","compose-calendar-library","compose-multiplatform","date","date-range","date-range-picker","datepicker","heatmap-calendar","kmp","kmp-library","kotlin","kotlin-multiplatform","month-calendar","week-calendar","year-calendar"],"created_at":"2024-09-24T20:10:41.566Z","updated_at":"2026-01-18T06:01:08.859Z","avatar_url":"https://github.com/kizitonwose.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calendar\n\nA highly customizable calendar library for Android and Compose Multiplatform, backed by RecyclerView for the view system, and LazyRow/LazyColumn for compose.\n\n[![Check](https://github.com/kizitonwose/Calendar/actions/workflows/check.yml/badge.svg?branch=main)](https://github.com/kizitonwose/Calendar/actions/workflows/check.yml)\n[![License](https://img.shields.io/badge/License-MIT-0097A7.svg)](https://github.com/kizitonwose/Calendar/blob/main/LICENSE.md)\n[![Twitter](https://img.shields.io/badge/Twitter-@kizitonwose-9C27B0.svg)](https://twitter.com/kizitonwose)\n[![Android Library](https://img.shields.io/badge/dynamic/xml.svg?label=Android%20Library\u0026color=blue\u0026url=https://repo1.maven.org/maven2/com/kizitonwose/calendar/core/maven-metadata.xml\u0026query=(//metadata/versioning/versions/version)[not(contains(text(),%27-%27))][last()])](https://central.sonatype.com/search?q=g:com.kizitonwose.calendar)\n[![Multiplatform Library](https://img.shields.io/badge/dynamic/xml.svg?label=Multiplatform%20Library\u0026color=blue\u0026url=https://repo1.maven.org/maven2/com/kizitonwose/calendar/compose-multiplatform/maven-metadata.xml\u0026query=(//metadata/versioning/versions/version)[not(contains(text(),%27-%27))][last()])](https://central.sonatype.com/search?q=g:com.kizitonwose.calendar)\n\n**With this library, your calendar will look however you want it to.**\n\n![Preview Phone](https://user-images.githubusercontent.com/15170090/197389318-b3925b65-aed9-4e1f-a778-ba73007cbdf7.png)\n\n![Preview Web Tablet](https://github.com/user-attachments/assets/df7b11bb-23f8-423a-bbd4-9ade376a14be)\n\n## Features\n\n- [x] Week, month, or year modes - Show a week-based calendar, or the typical month calendar, or a year-based calendar.\n- [x] Single, multiple, or range selection - Total flexibility to implement the date selection\n  whichever way you like.\n- [x] Disable desired dates - Prevent selection of some dates by disabling them.\n- [x] Boundary dates - Limit the calendar date range.\n- [x] Custom date view/composable - Make your day cells look however you want, with any\n  functionality you want.\n- [x] Custom calendar view/composable - Make your calendar look however you want, with whatever\n  functionality you want.\n- [x] Custom first day of the week - Use any day as the first day of the week.\n- [x] Horizontal or vertical scrolling calendar.\n- [x] HeatMap calendar - Suitable for showing how data changes over time, like GitHub's contribution\n  chart.\n- [x] Year/Month/Week headers and footers - Add headers/footers of any kind on each year/month/week.\n- [x] Easily scroll to any date/week/month/year on the calendar via swipe actions or programmatically.\n- [x] Use all RecyclerView/LazyRow/LazyColumn customizations since the calendar extends from\n  RecyclerView for the view system and uses LazyRow/LazyColumn for compose.\n- [x] Design your calendar [however you want.](https://github.com/kizitonwose/Calendar/issues/1) The\n  library provides the logic, you provide the views/composables.\n\n## Sample project\n\nIt's important to check out the sample app. There are lots of examples provided for both view and compose implementations. \nMost techniques that you would want to implement are already done in the examples.\n\nDownload the Android sample app [here](https://github.com/kizitonwose/Calendar/releases/download/2.5.4/sample.apk)\n\nView the Android sample app's source code [here](https://github.com/kizitonwose/Calendar/tree/main/sample)\n\nView the multiplatform sample project online at https://calendar.kizitonwose.dev\n\nView the multiplatform sample project's source code [here](https://github.com/kizitonwose/Calendar/tree/main/compose-multiplatform/sample)\n\n## Setup\n\nThe library provides the following artifacts: \n\n`com.kizitonwose.calendar:compose`: The compose artifact for Android projects. This uses the [java.time](https://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html) APIs. \n\n`com.kizitonwose.calendar:compose-multiplatform`: The compose artifact for Compose Multiplatform projects. This uses the [kotlinx-datetime](https://github.com/Kotlin/kotlinx-datetime) library and supports Android, iOS, js, WasmJs and Desktop platforms.\n\n`com.kizitonwose.calendar:view`: The view artifact for Android projects. This uses the [java.time](https://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html) APIs and can exist alongside the Android compose artifact in an Android project if needed.\n\n#### Step 1\n\n**This step is required ONLY if your Android app's `minSdkVersion` is below 26. Jump to [step 2](#step-2) if this does not apply to you.**\n\nAndroid apps with `minSdkVersion` below 26 have to enable [Java 8+ API desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring) for backward compatibility since `java.time` classes were added in Java 8 which is supported natively starting from Android SDK 26. To set up your project for desugaring, you need to first ensure that you are using [Android Gradle plugin](https://developer.android.com/studio/releases/gradle-plugin#updating-plugin) 4.0.0 or higher.\n\nThen include the following in your app's `build.gradle` file:\n\n```groovy\nandroid {\n  defaultConfig {\n    // Required ONLY if your minSdkVersion is below 21\n    multiDexEnabled true\n  }\n\n  compileOptions {\n    // Enable support for the new language APIs\n    coreLibraryDesugaringEnabled true\n    // Set Java compatibility (version can be higher if desired)\n    sourceCompatibility JavaVersion.VERSION_1_8\n    targetCompatibility JavaVersion.VERSION_1_8\n  }\n\n  kotlinOptions {\n    // Also add this for Kotlin projects (version can be higher if desired)\n    jvmTarget = \"1.8\"\n  }\n}\n\ndependencies {\n  coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:\u003clatest-version\u003e'\n}\n```\n\nYou can find the latest version of `desugar_jdk_libs` [here](https://mvnrepository.com/artifact/com.android.tools/desugar_jdk_libs).\n\n#### Step 2A - For pure Android projects without multiplatform setup\n\nAdd the desired calendar library (view or compose) to your app's `build.gradle.kts`:\n\n```kotlin\ndependencies {\n  // The view calendar library for Android\n  implementation(\"com.kizitonwose.calendar:view:\u003clatest-version\u003e\")\n\n  // The compose calendar library for Android\n  implementation(\"com.kizitonwose.calendar:compose:\u003clatest-version\u003e\")\n}\n```\n\n#### Step 2B - For Compose Multiplatform projects\n\nAdd the multiplatform calendar library to your project's `build.gradle.kts`:\n\n```kotlin\ncommonMain.dependencies {\n  // The calendar library for compose multiplatform projects\n  // Supports Android, iOS, js, WasmJs and Desktop platforms\n  implementation(\"com.kizitonwose.calendar:compose-multiplatform:\u003clatest-version\u003e\")\n}\n```\n\nYou can find the latest version of the library on the maven central badge above.\n\nSnapshots of the development version are available in [Central Portal Snapshots repository](https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/com/kizitonwose/calendar/).\n\n#### Compose UI version compatibility\n\nFor the compose calendar library, ensure that you are using the library version that matches the Compose UI version in your project. If you use a version of the library that has a higher version of Compose UI than the one in your project, gradle will upgrade the Compose UI version in your project via transitive dependency.\n\n| Compose UI | Android Calendar Library | Multiplatform Calendar Library |\n|:----------:|:------------------------:|:------------------------------:|\n|   1.2.x    |          2.0.x           |               -                |\n|   1.3.x    |      2.1.x - 2.2.x       |               -                |\n|   1.4.x    |          2.3.x           |               -                |\n|   1.5.x    |          2.4.x           |               -                |\n|   1.6.x    |          2.5.x           |             2.5.x              |\n|   1.7.x    |          2.6.x           |             2.6.x              |\n|   1.8.x    |      2.7.x - 2.8.x       |         2.7.x - 2.8.x          |\n|   1.9.x    |          2.9.x           |             2.9.x              |\n|   1.10.x   |          2.10.x          |             2.10.x             |\n\n## Usage\n\nYou can find the relevant documentation for the library in the links below.\n\n|[View-based documentation](https://github.com/kizitonwose/Calendar/blob/main/docs/View.md)|[Compose documentation](https://github.com/kizitonwose/Calendar/blob/main/docs/Compose.md)|\n|:-:|:-:|\n\n## Migration\n\nIf you're upgrading from calendar library version 1.x.x to 2.x.x, see the [migration guide](https://github.com/kizitonwose/calendar/blob/main/docs/MigrationGuide.md).\n\n## Share your creations\n\nMade a cool calendar with this library? Share an image [here](https://github.com/kizitonwose/Calendar/issues/1).\n\n## Contributing\n\nFound a bug? feel free to fix it and send a pull request or [open an issue](https://github.com/kizitonwose/Calendar/issues).\n\n## License\n\nCalendar library is distributed under the MIT license.\nSee [LICENSE](https://github.com/kizitonwose/Calendar/blob/main/LICENSE.md) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkizitonwose%2Fcalendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkizitonwose%2Fcalendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkizitonwose%2Fcalendar/lists"}