# @aws/lsp-partiql

> PartiQL language server

Latest version **0.0.24** (published 2026-08-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @aws/lsp-partiql
pnpm add @aws/lsp-partiql
yarn add @aws/lsp-partiql
bun add @aws/lsp-partiql
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.0.24 |
| Published | 2026-08-18 |
| First published | 2024-05-31 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 68 |
| Author | Amazon Web Services |
| Maintainers | ege0zcan, rtarcr, imykhai, viktorsaws, rahmaniaam, aws-language-server-runtimes-team |

## Links

- npm: https://www.npmjs.com/package/@aws/lsp-partiql
- Repository: https://github.com/Amazon-Q-Developer/language-servers
- Homepage: https://github.com/Amazon-Q-Developer/language-servers#readme
- Issues: https://github.com/Amazon-Q-Developer/language-servers/issues
- npm.io page: https://npm.io/package/@aws/lsp-partiql

## Dependencies (4)

- [antlr4ng](https://npm.io/package/antlr4ng.md) 3.0.16
- [antlr4-c3](https://npm.io/package/antlr4-c3.md) 3.4.4
- [web-tree-sitter](https://npm.io/package/web-tree-sitter.md) 0.22.6
- [@aws/language-server-runtimes](https://npm.io/package/@aws/language-server-runtimes.md) ^0.3.14

## Recent versions

- 0.0.24 (latest) — 2026-08-18
- 0.0.23 — 2026-02-17
- 0.0.22 — 2025-12-19
- 0.0.21 — 2025-12-17
- 0.0.20 — 2025-11-26
- 0.0.19 — 2025-11-21
- 0.0.18 — 2025-09-09
- 0.0.17 — 2025-08-20
- 0.0.16 — 2025-08-04
- 0.0.15 — 2025-07-17
- 0.0.14 — 2025-06-26
- 0.0.13 — 2025-06-16
- 0.0.12 — 2025-06-10
- 0.0.11 — 2025-05-30
- 0.0.10 — 2025-05-22
- … 9 more at https://npm.io/package/@aws/lsp-partiql/versions

## README

# PartiQL LSP server

LSP server for the [PartiQL language](https://partiql.org/). This server offers diagnostics for PartiQL files by parsing the file using the [Rust parser maintained by the PartiQL team](https://github.com/partiql/partiql-lang-rust).

This parser is compiled to a WebAssembly binary using the bindings maintained by the PartiQL team in the [PartiQL playground package](https://github.com/partiql/partiql-rust-playground). This binary is further encoded as a base64 string in a Javascript file to make it easy to be bundled together with the other assets of the server.

### Updating the binary

_Updating the binary requires the Docker CLI to be in your PATH_

To update the binary used by the server, run `npm run update-parser-binary`. This will, inside a Docker container, pull the PartiQL playground repository from GitHub and run the `build` command to create a new binary. It is then encoded into base64 in a Typescript file and copied to the `src` folder. Running `npm run build` will then transpile the binary file to Javascript and place it in the `lib` folder.

To update the binary used in package `web-tree-sitter`, run `npm run update-treesitter-wasm`. This update is forced to make everytime upgrading the version of `web-tree-sitter`. This will compile the `tree-sitter.wasm` file inside the package into a base64 string in a TypeScript file to the `src/tree-sitter-parser` folder as `tree-sitter-inline.ts`. 

### Updating the ANTLR lexer and parser

The ANTLR lexer and parser grammars are defined in `src/antlr-grammar`, the files in `src/antlr-generated` are automatically generated from the grammar files. To 
update these files, run `npm run update-antlr`. The current grammar files can be found at https://github.com/partiql/partiql-lang-kotlin/tree/main/partiql-parser/src/main/antlr.

### Tests

Tests for this package are run using [Jest](https://jestjs.io/), to run the tests in this package run `-npm run test`. 

### Potential improvements

This package currently has a couple of potential points-of-improvement:

- In the bindings for the parser WASM binary, there is a code path which imports the `partiql_playground_bg.wasm` file. We don't use this file and code path at runtime due to the inlining of the WASM binary. When doing import checks however, Webpack fails building because it cannot find this binary. To work around this, we include a no-op file with the expected name.
- In the tests for the language service, there are a couple of untested happy paths. Input couldn't be found to trigger these happy paths.

---
_Source: https://npm.io/package/@aws/lsp-partiql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
