#208208th of 358 in Backends, databases and hosting

reylo

Import .sql files into TypeScript with types inferred from your database

Releases and problems feed (RSS)

Stars
1.8k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
Rust
Stars, last 5 weeks+1,687
21 Oct 2026: 64 stars28 Oct 2026: 1,379 stars4 Nov 2026: 1,515 stars11 Nov 2026: 1,596 stars18 Nov 2026: 1,620 stars25 Nov 2026: 1,751 stars

64 on 21 Oct 20261,751 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Reylo is a TypeScript 7.1 content mapper that lets you import .sql files and call them with `.run(db, params)`. It has a dev database prepare each query without running it, then derives column and parameter types, nullability, row cardinality and enum unions. It works with Postgres, MySQL, SQLite and ClickHouse (preview) through your own driver, with no generated files.

Who it is for: TypeScript developers who write raw SQL and want inferred types without codegen

Strengths

  • Types come from the live dev schema, so a misspelled column is a type error
  • No codegen step, generated files or watcher
  • Works with many drivers: pg, postgres.js, mysql2, better-sqlite3, D1, Turso, Drizzle, Knex
  • Plugins for Node, Bun, Vite, Next.js, esbuild, webpack and Cloudflare Workers

Weaknesses

  • Requires TypeScript 7.1, which is still in beta
  • Type-checking needs a running dev database and `tsc --runExternalCode`
  • ClickHouse support is preview and needs version 25.11 or later
  • Parameters need colon names and casts where the query does not fix a type

What it needs

  • no GPU
  • Needs Node 24+, TypeScript 7.1 (beta), Dev database: Postgres, MySQL 8.0.38+, ClickHouse 25.11+ (preview) or SQLite

What changed

  1. “feat(spec)!: write enum values as objects by @colinhacks in https://github.com/reylosql/reylo/pull/420”

  2. “feat(cli)!: name the file only when reylo analyze reads several by @colinhacks in https://github.com/reylosql/reylo/pull/350”

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Known problems

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Also in Backends, databases and hosting

See all 358
Also in Backends, databases and hosting
RankProjectScore
#206driftReactive SQLite persistence library for Flutter and Dart with generated type-safe queries3.3k starsMIT68 out of 100
#207remultTypeScript entity library that generates CRUD, realtime API and typed client Live demo ↗ (opens in a new tab)3.2k starsMIT68 out of 100
#209arangodbMulti-model database for graphs, JSON documents and full-text search via AQL14.3k starscustom license67 out of 100
#210ubicloudOpen-source IaaS control plane for VMs, Postgres and Kubernetes on bare metal12.4k stars+92 (+0.7%) in 30 daysAGPL-3.067 out of 100
#211tortoise-ormAsync Python ORM with a Django-like API and built-in migrations5.6k starsApache-2.067 out of 100