# typelevel/skunk

A data access library for Scala + Postgres.

Repository: https://github.com/typelevel/skunk
Canonical: https://ross.abutalabs.com/products/skunk
Homepage: https://typelevel.org/skunk/
Language: Scala
License: MIT
License Family: permissive
Topics: scala, postgres, functional-programming, cats, cats-effect, fs2, scodec, typelevel, database
Last push: 2026-08-24T04:23:51+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 55, longevity 100
- inputs: {"age_days": 2903, "days_push": 9, "days_rel": 141, "gap_med": 122, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1664, forks 175 (observed 2026-08-28T04:05:18.908634+00:00)

## What it is
Skunk is a purely functional data access library for Scala and Postgres, built on cats, cats-effect, fs2, and scodec. It provides a non-blocking, tagless-final API for querying and writing to PostgreSQL with detailed error messages.

## Use cases
- query postgres from scala without jdbc blocking
- functional database access in cats-effect applications
- stream postgres query results with fs2
- type-safe postgres driver for scala
- connect to postgres from scala native or node.js
- replace doobie with a purely functional postgres library

## When to choose
- your Scala stack already uses cats-effect and fs2
- you want a non-blocking, purely functional Postgres driver
- you need Scala 2 and Scala 3 support across JVM, Node.js, and Native
- you value precise, helpful error messages from your database layer

## When to avoid
- you need a database other than Postgres
- you want a mature 1.0 release - Skunk is pre-release software
- your team is not familiar with cats, cats-effect, and tagless-final style
- you need a full ORM with schema management and migrations

## Facets
- artifact type: library
- maturity: active
- function: database-driver, orm
- domain: databases, backend
- platform: jvm
- tags: scala, postgres, cats-effect, fs2, typelevel, functional-programming, non-blocking, tagless-final, nodejs

## Member repositories
- typelevel/skunk (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:18.908634+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:44:30.211203+00:00, confidence not recorded.
  - readme: https://github.com/typelevel/skunk (fetched 2026-08-28T04:05:18.908634+00:00, sha 9539973f2dd6)
  - homepage: https://typelevel.org/skunk/ (fetched 2026-08-29T11:16:40.152187+00:00, sha 6fcb1a917b0b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
