# Reylo

> Import .sql files into TypeScript with types inferred from your live database, plus SQL-first migrations

Source: https://talira.ai/catalog/reylo-0v2g7263
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [libraries / databases / sql toolkits](https://talira.ai/categories/libraries/databases/sql-toolkits), [developer tools / database / migrations](https://talira.ai/categories/developer-tools/database/migrations)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source under the MIT licence.
- Free tier: yes[^1]
- Backed by: [Variadic](https://talira.ai/orgs/variadic.md)

A type inference engine for SQL. You write queries in plain .sql files and import them into TypeScript; Reylo has your Postgres, MySQL or SQLite database prepare each statement without running it and hands TypeScript the types of its parameters and rows, through the content mapper API that TypeScript 7.1 added, so there is no code generation step. Reylo Migrate models the schema in a schema.sql file and generates or applies migrations from it. MIT licensed, from Variadic.

## Links

- Website: https://reylo.dev/
- GitHub: https://github.com/reylosql/reylo
- Docs: https://reylo.dev/docs

## Problems it solves

- write raw SQL in my TypeScript app and still get typed results without an ORM
- keep my database schema in one SQL file and generate migrations from it
- stop hand-writing TypeScript types for my SQL queries

## Features

- import .sql files into TypeScript with inferred parameter and row types
- types come from the live database's own analysis of each query
- Postgres, MySQL and SQLite
- schema modeled in schema.sql, with generated or hand-written migrations (Reylo Migrate)
- deploy guides for Neon, Supabase, PlanetScale, Cloudflare D1 and Turso

## Trust

Overall: 0.65 out of 1.
Signals: maintenance 1.00, adoption 0.65, momentum 0.94, community 0.36, backing 0.30, extensibility 0.00.

- last commit 5 days ago
- 1117 commits in the last 90 days
- latest release v0.8.3 6 days ago
- 1.7k GitHub stars
- fast-growing: 1.7k stars in 40 days
- 7 contributors
- backed by Variadic

Warnings:

- young project (first commit 40 days ago)

## Alternatives

- [Kysely](https://talira.ai/catalog/kysely-em8f33ta.md): Type-safe SQL query builder for TypeScript
- [Knex.js](https://talira.ai/catalog/knex-js-ym73tqpg.md): SQL query builder for Node.js with migrations and seeds

## Sources

[^1]: https://reylo.dev/blog (checked 24 Nov 2026)
[^2]: https://github.com/reylosql/reylo/blob/main/LICENSE (checked 24 Nov 2026)
