Typegres Documentation

What is Typegres?

Typegres is a TypeScript library that provides type-safe PostgreSQL queries. While traditional ORMs and query builders abstract over multiple SQL dialects, Typegres goes all-in on Postgres to provide the most powerful and type-safe experience possible. In a single import, you can access the full power of Postgres.

Note: Typegres is currently in early development, so expect many rough edges, breaking changes, and incomplete features. However, it is already usable for many common tasks and we welcome contributions!

Key Features

Typegres aims to give you the best of Typescript and Postgres:

  • Write real SQL: Use every PostgreSQL feature without limitations
  • Full type safety: Catch errors at compile time, not runtime
  • No magic: Your queries compile to exactly the SQL you'd expect
  • Great DX: Autocompletion, inline documentation, and type checking

Getting Started

Ready to start using Typegres? Check out our Quick Start guide to get up and running in minutes, or explore the API Reference for detailed documentation.