Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

235 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LakeQL logo

LakeQL

Streamlined Data Access Layer for Data Platforms

@lakeql/api on npm @lakeql/cli on npm @lakeql/adapters on npm @lakeql/trino-client on npm @lakeql/query-builder on npm @lakeql/create-app on npm

LakeQL is a monorepo that provides a type-safe GraphQL access layer for Trino-powered data platforms. It combines a backend runtime with a CLI that generates schema and query files from your existing data model.

The goal is to reduce manual boilerplate while keeping your API predictable, secure, and easy to extend.

Features

  • Type-safe GraphQL APIs for Trino-powered data platforms
  • CLI-based schema generation from existing Trino metadata and table structures
  • Built-in filtering, sorting, and pagination for generated queries
  • Extensible response transformation with reusable helper packages
  • Trino authentication with Basic Auth and OAuth flows
  • Monorepo setup with reusable packages and a ready-to-use app template

Requirements

  • Node.js 24
  • pnpm 11+

Getting started

Init project & setup

Run the following command in your terminal:

pnpm dlx @lakeql/create-app

Then follow the interactive setup.

The command bootstraps a project from the preconfigured template in templates/app.

Schema generation

Run the interactive CLI to generate your schemas.

pnpm cli pull --source-path ./src

Local development

To start local development, run:

pnpm dev

Build & Production

The template ships with a production-ready tsdown setup.

Use pnpm build to generate the production dist output, which you can then use in your deployment setup (for example, in a Dockerfile).

Learn more

Full docs and examples are available at https://lakeql.dev

Contributing

Project background

This project has its roots in the original datalake-graphql-wrapper.

LakeQL was later rebuilt from the ground up as a fully type-safe monorepo, with a complete refactoring of the codebase and architecture.

Special thanks

  • Igal Klebanov and the Kysely Team - Kysely is used to generate valid SQL statements from GraphQL queries, and Igal helped make the query builder more generic.
  • Michael Hayes - He created Pothos GraphQL, which is the foundation of our GraphQL server and its code-first schema generation approach.

About

Build predictable, secure GraphQL APIs on top of Trino metadata with LakeQL's type-safe runtime and schema generation CLI.

Topics

Resources

Stars

Watchers

Forks

Releases

Used by

Contributors

Languages