ADVICE WANTED - Typescript PostgreSQL without ORM

This page summarizes the projects mentioned and recommended in the original post on /r/typescript

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. kysely

    Discontinued A type-safe typescript SQL query builder [Moved to: https://github.com/kysely-org/kysely] (by koskimas)

    I dislike ORMs and have been using Kysely https://github.com/koskimas/kysely and https://github.com/RobinBlomberg/kysely-codegen for a small project and so far I love it. It's a mapper/query builder that is equivalent to Dapper in C# (without the query builder) but with the power of typescript's type system to enforce proper queries. You can also bypass something with the sql to write raw SQL.

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. kanel

    Generate Typescript types from Postgres

    I have so far found: - kanel https://github.com/kristiandupont/kanel - and pg-to-ts https://github.com/danvk/pg-to-ts

  4. pg-to-ts

    Generate TypeScript interface definitions from your Postgres schema

    I have so far found: - kanel https://github.com/kristiandupont/kanel - and pg-to-ts https://github.com/danvk/pg-to-ts

  5. SQLDelight

    SQLDelight - Generates typesafe Kotlin APIs from SQL

    Sounds like you want what SQLDelite offers, but for TypeScript. SQLDelite is only for Kotlin and SQLite though.

  6. kysely-codegen

    Generate Kysely type definitions from your database.

    I dislike ORMs and have been using Kysely https://github.com/koskimas/kysely and https://github.com/RobinBlomberg/kysely-codegen for a small project and so far I love it. It's a mapper/query builder that is equivalent to Dapper in C# (without the query builder) but with the power of typescript's type system to enforce proper queries. You can also bypass something with the sql to write raw SQL.

  7. slonik

    A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.

    I don’t think it offers codegen for types but slonik is worth checking out given what you’re interested in.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Drizzle is just as unready for prime-time as Prisma, what else is there?

    12 projects | /r/reactjs | 6 Dec 2023
  • I Hate NestJS

    4 projects | news.ycombinator.com | 24 Oct 2023
  • PostgresJs: The Fastest full featured PostgreSQL client for Node.js and Deno

    16 projects | news.ycombinator.com | 14 Oct 2023
  • Is this a valid reason to give up node?

    5 projects | /r/node | 17 Jun 2023
  • The Epic Stack by Kent C. Dodds

    6 projects | news.ycombinator.com | 12 May 2023

Did you know that TypeScript is
the 1st most popular programming language
based on number of references?