---
title: "TypeSQL"
description: "Generates fully typed query functions from raw SQL files by introspecting the database, giving type-safe results without an ORM layer."
canonical: "https://vibing.inc/library/typesql-vg-0881"
category: "Dev Utilities & Vibe-Coding Tooling"
subcategory: "Database tooling"
license: "MIT"
author: "@wsporto"
source: "https://github.com/wsporto/typesql"
---

# TypeSQL
Generates fully typed query functions from raw SQL files by introspecting the database, giving type-safe results without an ORM layer.
## Facts
- Source: https://github.com/wsporto/typesql
- Category: Dev Utilities & Vibe-Coding Tooling / Database tooling
- Author: @wsporto
- Licence: MIT
- Tags: sql, codegen, typescript, mysql
## Why it's a gem
sqlc for the JavaScript world. Write real SQL, still get end-to-end types.
---
Listed in The Vibeary: https://vibing.inc/library/typesql-vg-0881 · JSON: https://vibing.inc/api/public/library/gems/typesql-vg-0881