npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

lakeql

v0.8.0

Published

lakeql: lightweight TypeScript query engine for Iceberg + Parquet on object storage

Readme

lakeql

npm license

LakeQL is a JavaScript query engine for Parquet and Iceberg data in object storage. It runs in Node.js, browsers, Cloudflare Workers, and other JavaScript runtimes.

Use it to query lake data without running a database server or shipping native runtime dependencies. LakeQL reads with range requests, streams results, and keeps execution bounded for serverless and edge workloads.

Install

npm install lakeql

Run a SQL Query

npx lakeql query \
  --path sales.parquet \
  --sql "select region, sum(amount) as revenue from input group by region order by revenue desc limit 10"

Use --format json, --format ndjson, or --format csv to choose the output.

Query from JavaScript

Use SQL strings from application code:

import { createLake, httpStore } from "lakeql/node";

const lake = createLake({
  store: httpStore({ baseUrl: "https://example.com/data" }),
});

const rows = await lake
  .sql("select store_id, amount from input where amount > $1 limit 100", {
    path: "sales.parquet",
    parameters: [100],
  })
  .toArray();

Or use the builder API:

import { createLake, gt, httpStore } from "lakeql/node";

const lake = createLake({
  store: httpStore({ baseUrl: "https://example.com/data" }),
});

const rows = await lake
  .path("sales.parquet")
  .select(["store_id", "region", "amount"])
  .where(gt("amount", 100))
  .limit(100)
  .toArray();

Inside a Cloudflare Worker, read from R2:

import { createLake, r2Store } from "lakeql/cloudflare";

export default {
  async fetch(_req: Request, env: { DATA: R2Bucket }) {
    const lake = createLake({ store: r2Store(env.DATA) });
    return Response.json(await lake.path("sales.parquet").limit(100).toArray());
  },
};

Entry Points

Choose an entry point by runtime. The runtime entry points include the query engine and the storage adapters available in that environment.

| Import | Use it for | | --- | --- | | lakeql | Runtime-neutral query APIs, Parquet, Iceberg, in-memory stores, and shared types. | | lakeql/fetch | Browsers, Web Workers, and Fetch-compatible edge functions using HTTP or S3-compatible storage. | | lakeql/node | Node.js servers and AWS Lambda functions using HTTP, S3-compatible storage, or filesystem caches. | | lakeql/cloudflare | Cloudflare Workers using HTTP, S3-compatible storage, R2 bindings, or D1-backed caches. |

lakeql/fetch is the portable Fetch/Web Crypto contract. lakeql/node extends it with filesystem support, while lakeql/cloudflare extends it with native R2 and D1 adapters. A Cloudflare Worker reading AWS S3 can import s3Store from either lakeql/fetch or lakeql/cloudflare.

Optional WebGPU Execution

Install the separate lakeql-webgpu package to register an opt-in accelerator backend in a browser or another runtime that explicitly provides WebGPU. CPU-only applications do not load WebGPU or a native dependency. See the package guide for supported physical fragments, budgets, residency, and lifecycle behavior.

Documentation

License

MIT