How It's Made

Announcing Coil 1.0

Colin White

Colin White

Senior Android Engineer

Oct 22, 2020

I’m very excited to announce the release of Coil 1.0. Coil is a Kotlin-first image loading library for Android built on top of Kotlin Coroutines. It simplifies loading images from the Internet (or any other data source) by automatically handling memory and disk caching, image downsampling, request cancellation, memory management, and more. Coil’s image pipeline is also fully extensible and supports decoding GIFs, SVGs, and video frames.

We’ve been using Coil at Instacart in both of our Android apps for over a year with great success. Over the past year we’ve refined its API, fixed plenty of bugs, improved its performance, and added support for new features including direct memory cache access, interceptors, custom transitions, and event listeners. Coil is fast (slightly faster than Glide), lightweight (~2000 methods for apps that already use Coroutines and OkHttp), easy to use, and its adoption is growing:

Coil is also designed to integrate closely with Jetpack Compose – Android’s next generation UI toolkit. Both Coil and Compose build on top of Kotlin Coroutines and, unlike other image loading libraries, Coil is largely decoupled from Fragments and Views. The Android team even highlightedCoil in the videos for the Jetpack Compose alpha release. Coil currently doesn’t have first party support for Compose, however, we’re excited to add it once Jetpack Compose becomes API-stable. In the meantime check out Chris Banes’ Accompanist library, which adds a CoilImage composable.

You may also like...

Designing Digital Experiences That Augment the Analog World

How It's Made

Designing Digital Experiences That Augment the Analog World

Shoppers are the backbone of Instacart’s business. Every day, we’re energized by being able to help them serve customers more effectively and support their learning and development to build a long-term relationship. In their offline…...

Mar 16, 2021
7 steps to get started with large-scale labeling

How It's Made

7 steps to get started with large-scale labeling

How Instacart built a crowdsourced data labeling process (and how you can too!) Organizations that develop technologies rooted in information retrieval, machine learning, recommender systems, and natural language processing depend on labels for modeling and…...

Mar 12, 2021
Nailing the Handoff

How It's Made

Nailing the Handoff

Exploring Certified Delivery’s checkout and delivery flows While Instacart’s bread and butter has always been and will continue to be grocery, many grocers and specialty retailers have a wide variety of items in their catalogs…...

Nov 17, 2020