# shapeless

> Type class and dependent type based generic programming for Scala

Source: https://talira.ai/catalog/shapeless-cxy62mfh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / generic programming](https://talira.ai/categories/libraries/generic-programming), [languages / scala](https://talira.ai/categories/languages/scala)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (Apache-2.0).
- Free tier: yes[^1]
- Backed by: [Miles Sabin](https://talira.ai/orgs/miles-sabin.md), [Typelevel](https://talira.ai/orgs/typelevel.md)

shapeless is a generic programming library for Scala built on type classes and dependent types, for abstracting over arities and scrapping boilerplate: heterogeneous lists (HList) and the like. It started in Miles Sabin's 2011 talks on scrap your boilerplate and higher rank polymorphism in Scala and is used in production systems. It's part of the Typelevel family of projects, with builds for Scala 2.11, 2.12 and 2.13 and for Scala.js, published to Maven Central as com.chuusai artifacts.

## Links

- GitHub: https://github.com/milessabin/shapeless

## Problems it solves

- derive type class instances for case classes generically in Scala
- abstract over tuples and case classes of any arity in Scala
- remove boilerplate for working with many case classes the same way in Scala

## Features

- HList and type class based generic programming
- abstracting over arity
- builds for Scala 2.11, 2.12 and 2.13
- Scala.js builds
- a try-shapeless script for an instant Ammonite REPL

## Trust

Overall: 0.56 out of 1.
Signals: maintenance 0.70, adoption 0.71, momentum 0.39, community 0.88, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 15 commits in the last 90 days
- latest release v2.3.13 21 months ago
- 3.4k GitHub stars
- 156 contributors
- backed by Miles Sabin and Typelevel

## Sources

[^1]: https://github.com/milessabin/shapeless/blob/main/LICENSE (checked 29 Nov 2026)
