awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
kysely-org avatar

kysely-org/kysely

0
View on GitHub↗
13,969 stars·419 forks·TypeScript·MIT·6 viewskysely.dev↗

Kysely

Kysely is a TypeScript SQL query builder that provides a type-safe interface for constructing and executing database queries. It functions as a database layer that ensures schema compliance and prevents runtime errors by using a fluent interface and a programmable way to build complex SQL statements.

The project features a type-safe database layer capable of inferring return types and aliases from SQL selections and joins. It also includes a SQL migration manager to track and apply schema changes across different environments to keep database versions synchronized.

The toolkit covers relational database integration through dynamic query construction and the execution of raw SQL statements. It allows for the creation of parameterized SQL snippets and the ability to reference tables and columns dynamically at runtime.

Features

  • Type-Safe Database Clients - Functions as a type-safe database layer that infers return types and aliases from SQL selections and joins.
  • Type-Safe Query Builders - Provides a type-safe query builder that ensures database schema compliance at compile time.
  • Dynamic SQL Generators - Builds SQL statements at runtime based on variable inputs while maintaining type safety.
  • Fluent Query Builders - Implements a chainable, functional interface for constructing complex SQL queries programmatically.
  • Relational Database Connectors - Connects TypeScript applications to relational databases using a fluent interface for data management.
  • Schema Mapping Utilities - Maps TypeScript interfaces to database table structures to provide compile-time validation of schema types.
  • SQL Query Builders - Provides a type-safe interface for constructing and executing SQL queries to ensure schema compliance.
  • Fluent Interfaces - Provides a fluent interface for building complex, type-safe SQL queries through method chaining.
  • Query Result Type Inference - Calculates exact return types and aliases for queries by analyzing selected columns and join operations.
  • Dynamic Column References - Identifies database columns using names provided at runtime to build queries based on user input.
  • Parameterized SQL Templates - Uses tagged templates to separate raw SQL from user values to prevent SQL injection attacks.
  • Database Migrations - Includes a migration manager to track and apply schema changes across different environments.
  • Migration Management - Includes a migration manager to track and apply schema changes across different environments.
  • Raw SQL Execution - Allows the execution of manual SQL statements for complex scenarios that exceed the query builder's capabilities.
  • Parameterized SQL Snippets - Creates parameterized SQL fragments using template tags to prevent security vulnerabilities like injection.
  • SQL Dialect Adapters - Provides a driver-agnostic layer that adapts SQL syntax across different database engines through a unified API.
  • Dynamic Table References - Identifies database tables using names provided at runtime to select specific tables within a query.
  • Dynamic SQL Expressions - Allows referencing database columns and tables dynamically at runtime while maintaining a structured query object.
  • Databases and Data Tools - Type-safe SQL query builder for TypeScript.
  • Search and Databases - Builds type-safe SQL queries.

Star history

Star history chart for kysely-org/kyselyStar history chart for kysely-org/kysely

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Kysely

Similar open-source projects, ranked by how many features they share with Kysely.
  • simolus3/driftsimolus3 avatar

    simolus3/drift

    3,231View on GitHub↗

    Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database tables to classes and execute SQL queries with build-time validation. It functions as a type-safe query builder and a wrapper for SQLite and PostgreSQL, eliminating manual result set parsing by binding query outputs to native objects. The project distinguishes itself through a build-time code generation system that produces type-safe APIs and validates raw SQL statements against database versions before execution. It features reactive query streaming, which transforms SQL queries

    Dartdartdart-build-systemflutter
    View on GitHub↗3,231
  • knex/knexknex avatar

    knex/knex

    20,300View on GitHub↗

    Knex is a multi-dialect database client that provides a programmatic SQL query builder, a connection pool manager, and a versioned schema migration tool. It enables programmatic database interaction across multiple SQL engines, including PostgreSQL, MySQL, SQLite3, SQL Server, CockroachDB, and Oracle. The project distinguishes itself through a fluent interface for constructing complex SQL statements and a dedicated framework for database seeding. It utilizes specialized dialects to translate generic query representations into database-specific syntax while maintaining a consistent API across

    JavaScript
    View on GitHub↗20,300
  • uptrace/bunuptrace avatar

    uptrace/bun

    4,867View on GitHub↗

    Bun is a type-safe object relational mapper for Go that prioritizes SQL-first query construction and result mapping. It functions as a programmable SQL query builder, a database connection manager, and a tool for mapping database tables to Go structs. The project distinguishes itself through a multi-dialect SQL support system, allowing a single codebase to interact with different database engines via a consistent interface. It includes a built-in database observability tool for query interception, distributed tracing, and logging, as well as a schema migration tool for versioning structural c

    Godatabasegogolang
    View on GitHub↗4,867
  • seaql/sea-ormSeaQL avatar

    SeaQL/sea-orm

    9,410View on GitHub↗

    Sea-ORM is an asynchronous SQL object-relational mapper and database toolkit for mapping relational tables to strongly typed objects. It provides a relational database mapper for performing CRUD operations across MySQL, PostgreSQL, and SQLite, and includes a programmatic dynamic query builder for constructing complex SQL statements. The project distinguishes itself by providing a GraphQL schema generator that transforms database entities into typed schemas with built-in pagination and filters. It also features a dedicated database migration tool for defining and applying versioned schema chan

    Rustdatabasehacktoberfestloco
    View on GitHub↗9,410
See all 30 alternatives to Kysely→

Frequently asked questions

What does kysely-org/kysely do?

Kysely is a TypeScript SQL query builder that provides a type-safe interface for constructing and executing database queries. It functions as a database layer that ensures schema compliance and prevents runtime errors by using a fluent interface and a programmable way to build complex SQL statements.

What are the main features of kysely-org/kysely?

The main features of kysely-org/kysely are: Type-Safe Database Clients, Type-Safe Query Builders, Dynamic SQL Generators, Fluent Query Builders, Relational Database Connectors, Schema Mapping Utilities, SQL Query Builders, Fluent Interfaces.

What are some open-source alternatives to kysely-org/kysely?

Open-source alternatives to kysely-org/kysely include: simolus3/drift — Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database… knex/knex — Knex is a multi-dialect database client that provides a programmatic SQL query builder, a connection pool manager, and… uptrace/bun — Bun is a type-safe object relational mapper for Go that prioritizes SQL-first query construction and result mapping.… seaql/sea-orm — Sea-ORM is an asynchronous SQL object-relational mapper and database toolkit for mapping relational tables to strongly… masterminds/squirrel — Squirrel is a Go database library and SQL query builder that provides a programmatic interface for constructing and… aarondl/sqlboiler — sqlboiler is a database-first ORM generator for Go that analyzes an existing database schema to produce strongly typed…