# stripe-archive/mosql

MongoDB → PostgreSQL streaming replication

Repository: https://github.com/stripe-archive/mosql
Canonical: https://ross.abutalabs.com/products/mosql
Language: Ruby
License: MIT
License Family: permissive
Archived: true
Last push: 2020-04-07T20:36:11+00:00

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

## Adoption (not part of the score)
Stars 1616, forks 218 (observed 2026-08-28T04:05:11.920836+00:00)

## What it is
MoSQL is a Ruby tool that streams the contents of a MongoDB cluster into PostgreSQL, using an oplog tailer to keep the SQL mirror continuously up to date. It lets teams run production services on MongoDB while performing ad-hoc analytics and reporting with SQL.

## Use cases
- replicate a mongodb database into postgresql in real time
- run sql analytics and joins over data stored in mongodb
- keep a live sql mirror of a mongo oplog for reporting
- give analysts sql access to production mongodb data
- tail mongodb oplog and stream changes to a sql database

## When to choose
- your production data lives in mongodb but your team analyzes data in sql
- you need near-real-time replication from mongo to postgres for reporting
- you want a simple yaml-configured mongo-to-sql pipeline

## When to avoid
- you need an actively maintained tool - the project is explicitly unmaintained
- you use a database other than postgresql as the sql target
- you need transformations beyond simple column mapping and nested property extraction

## Facets
- artifact type: cli-tool
- maturity: abandoned
- function: etl, streaming, database, database-driver
- domain: databases, analytics, developer-tools
- platform: ruby, cli
- tags: mongodb, postgresql, oplog-tailing, data-replication, sql-mirror, ruby-gem, data-engineering, linux, macos

## Member repositories
- stripe-archive/mosql (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:11.920836+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:50:04.701050+00:00, confidence not recorded.
  - readme: https://github.com/stripe-archive/mosql (fetched 2026-08-28T04:05:11.920836+00:00, sha c267498f155b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
