# outworkers/phantom

Schema safe, type-safe, reactive Scala driver for Cassandra/Datastax Enterprise

Repository: https://github.com/outworkers/phantom
Canonical: https://ross.abutalabs.com/products/outworkers-phantom
Homepage: http://outworkers.github.io/phantom/
Language: Scala
License: Apache-2.0
License Family: permissive
Topics: scala, phantom, cassandra, datastax-enterprise, reactive, reactive-streams
Last push: 2023-04-05T09:14:46+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4671, "days_push": 1246, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1043, forks 185 (observed 2026-08-28T04:03:21.037657+00:00)

## What it is
Phantom is a schema-safe, type-safe, reactive Scala DSL and driver for Apache Cassandra and DataStax Enterprise. It lets you define Cassandra tables and queries in Scala with compile-time type checking and pluggable concurrency backends like Scala Futures, Monix, and Twitter Util.

## Use cases
- access cassandra from scala with type-safe queries
- define cassandra table schemas in scala code
- run reactive cassandra queries with futures or monix
- build a scala data layer for datastax enterprise
- avoid raw CQL strings when querying cassandra
- manage cassandra schema migrations from scala

## When to choose
- you are building a Scala/JVM application backed by Cassandra or DataStax Enterprise
- you want compile-time safety for table schemas and CQL queries
- you need reactive-streams or pluggable concurrency backends for query execution

## When to avoid
- your project is not on the JVM or does not use Scala
- you use a database other than Cassandra/DataStax Enterprise
- you need a driver with frequent updates and active community support

## Facets
- artifact type: library
- maturity: maintenance
- function: database-driver, orm, database
- domain: databases, backend, developer-tools
- platform: jvm
- tags: cassandra, datastax-enterprise, reactive-streams, type-safe, scala-dsl

## Member repositories
- outworkers/phantom (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:21.037657+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-30T07:02:31.617797+00:00, confidence not recorded.
  - readme: https://github.com/outworkers/phantom (fetched 2026-08-28T04:03:21.037657+00:00, sha 5801a4f50a90)
  - homepage: http://outworkers.github.io/phantom/ (fetched 2026-08-29T13:03:26.912909+00:00, sha 89e2b20c12f5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
