Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more β
Top 23 TypeScript SQL Projects
-
Sequelize
Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.
-
Directus
The Modern Data Stack π° β Directus is an instant REST+GraphQL API and intuitive no-code data collaboration app for any SQL database.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
drizzle-orm
Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too π
-
beekeeper-studio
Modern and easy to use SQL client for MySQL, Postgres, SQLite, SQL Server, and more. Linux, MacOS, and Windows.
-
azuredatastudio
Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
-
MikroORM
TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
sql-translator
SQL Translator is a tool for converting natural language queries into SQL code using artificial intelligence. This project is 100% free and open source.
-
database-lab-engine
DBLab enables π database branching and β‘οΈ thin cloning for any Postgres database and empowers DB testing in CI/CD. This optimizes database-related costs while improving time-to-market and software quality. Follow to stay updated.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Sequelize - modern Typescript and NodeJS ORM for Oracle, Postgres, MySQL, MariaDB, SQLite, SQL Server+docs
Project mention: How to Deploy Directus as a Backend-as-a-Service (BaaS) on Koyeb | dev.to | 2024-04-25Directus is an open data platform built to serve as a headless CMS, API, or Backend-as-a-Service (BaaS) for other applications. It is designed to make data accessible to people of all technical levels and to make it easy to build data-centric applications. Directus is extensible and can be integrated with many different frontend technologies to create stable, well-structured development and user experiences.
Drizzle ORM is a very popular TypeScript ORM that provides type safe access to your database, automated migrations, and a custom data model definition.
If we access a client like PgAdmin or Beekeeper, or accessing its container via bash and checking via CLI, we can see that the table was created successfully:
Project mention: Show HN: Tsynamo β Type-friendly DynamoDB query builder for TypeScript | news.ycombinator.com | 2024-04-10Hello HN! I was recently introduced to Kysely (https://github.com/kysely-org/kysely), a type-safe Typescript SQL query builder, and instantly fell in love! I got inspired and wanted to make something similar for AWS DynamoDB.
Thus, I developed Tsynamo! Instead of calling it type-safe, I decided to go with type-friendly, because the library is still in an early stage, and is not 100% type-safe.
Under the hood, Tsynamo compiles the built queries into AWS SDK v3 commands. I feel that Tsynamo simplifies the AWS SDK API quite a lot since the developer doesn't have to mess around with condition/filter expressions or attribute names/values themselves, and as a bonus gets autocompletion for building the queries!
There's also a playground to test it out in your browser: https://try.tsynamo.dev. It might not have the most up-to-date API of the library in use yet, but you can get the library's main idea from there.
Since the project is still in its early stages, it doesn't yet have 100% support for all DynamoDB features, like querying indexes. The next steps will be increasing the support coverage and perhaps adding automatic type generation as inspired by kysely-codegen (https://github.com/RobinBlomberg/kysely-codegen).
Would love to get some feedback, thanks in advance!
In my usual NodeJS tech stack, which includes GraphQL, NestJS, SQL (predominantly PostgreSQL with MikroORM), I encountered these limitations. To overcome them, I've developed a new stack utilizing Rust, which still offers some ease of development:
I started to see more and more applications that use the OpenAI API and I wanted to try it out. One of these apps is this one made by Kate.
There is an implementation of SQL that operates on a table shaped type, entirely at type level. For your amusement: https://github.com/codemix/ts-sql
There are a bunch of more practical takes that codegen types from your database and generate types for your queries, eg: https://github.com/adelsz/pgtyped
To me the second approach seems much more pragmatic because you donβt need to run a SQL parser in a fairly potato interpreter on every build
There is an implementation of SQL that operates on a table shaped type, entirely at type level. For your amusement: https://github.com/codemix/ts-sql
There are a bunch of more practical takes that codegen types from your database and generate types for your queries, eg: https://github.com/adelsz/pgtyped
To me the second approach seems much more pragmatic because you donβt need to run a SQL parser in a fairly potato interpreter on every build
Project mention: Quadratic β Open-Source Spreadsheet Is Now Multiplayer | news.ycombinator.com | 2024-02-01https://github.com/quadratichq/quadratic/issues
Project mention: Pg_branch: Pre-alpha Postgres extension brings Neon-like branching | news.ycombinator.com | 2023-10-01Underlying DBLab Engine is FOSS (Apache 2.0), with API, CLI and UI https://github.com/postgres-ai/database-lab-engine
Project mention: Malloy: A language for describing data relationships and transformations | news.ycombinator.com | 2024-03-17
Project mention: Generate and run SQL with GPT in Database Client (built with go - wails) | /r/golang | 2023-07-02
Project mention: compile-time SQL validations and type generation in TypeScript & Node | /r/typescript | 2023-08-27Cool. How does this compare to SafeQL, PgTyped, and Postgres language server ?
If you want to follow along, you can go to https://surrealist.app/ β Create session β Click on sandbox β Type any name for namespace and database β Copy and paste the two queries below, which work both for SurrealDB and most relational DBs
TypeScript SQL related posts
- Get started with Drizzle ORM and Xata's Postgres service
- Don't use your ORM entities for everything β embrace the SQL
- SQL Everywhere β a new data architecture for web apps
- Type-Safe Printf() in TypeScript
- Malloy: A language for describing data relationships and transformations
- Show HN: Open-source, browser-local data exploration using DuckDB-WASM and PRQL
- Malloy: Open-source language for analyzing, transforming, and modeling data
-
A note from our sponsor - InfluxDB
www.influxdata.com | 26 Apr 2024
Index
What are some of the best open-source SQL projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | Sequelize | 29,045 |
2 | Directus | 25,357 |
3 | drizzle-orm | 19,510 |
4 | beekeeper-studio | 15,274 |
5 | kysely | 9,289 |
6 | azuredatastudio | 7,442 |
7 | MikroORM | 7,158 |
8 | sql-translator | 3,966 |
9 | sqlchat | 3,722 |
10 | ts-sql | 3,114 |
11 | datastation | 2,854 |
12 | pgtyped | 2,800 |
13 | quadratic | 2,711 |
14 | vscode-database-client | 2,349 |
15 | sql-formatter | 2,142 |
16 | database-lab-engine | 1,900 |
17 | typeorm | 1,830 |
18 | malloy | 1,822 |
19 | slashbase | 1,294 |
20 | safeql | 1,221 |
21 | node-pg-migrate | 1,215 |
22 | molecule | 840 |
23 | surrealist | 797 |
Sponsored