# @prisma/prisma-schema-wasm

> The Wasm package for prisma-fmt

Latest version **8.1.0-2.59be4fda12412a79eeb9c2ae727b6aa723593323** (published 2026-09-01) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @prisma/prisma-schema-wasm
pnpm add @prisma/prisma-schema-wasm
yarn add @prisma/prisma-schema-wasm
bun add @prisma/prisma-schema-wasm
```

## Health

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

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 8.1.0-2.59be4fda12412a79eeb9c2ae727b6aa723593323 |
| Published | 2026-09-01 |
| First published | 2023-07-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1341 |
| Author | Prisma |
| Maintainers | prismabot, aqrln, wmadden-prisma, rtbenfield |

## Links

- npm: https://www.npmjs.com/package/@prisma/prisma-schema-wasm
- Repository: https://github.com/prisma/prisma-engines
- Issues: https://github.com/prisma/prisma-engines/issues
- npm.io page: https://npm.io/package/@prisma/prisma-schema-wasm

## Recent versions

- 8.1.0-2.59be4fda12412a79eeb9c2ae727b6aa723593323 (latest) — 2026-09-01
- 7.10.0-8.shadow-db-safety-s4-52d3b3c7e4002ee167a8803802fa11ced0e2c163 (integration) — 2026-08-03
- 7.1.1-3.c2990dca591cba766e3b7ef5d9e8a84796e47ab7 (patch) — 2025-12-08
- 8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8 — 2026-09-01
- 7.10.0-7.561d7b42579a2459cc8edf3788918b626c640023 — 2026-08-03
- 7.10.0-6.shadow-db-safety-s4-655dd77dae3f13790e219ef4b2d7650f3e9d8b01 — 2026-07-31
- 7.10.0-5.9bae2a3a63b4f966c4855ad11503f44f50f4db47 — 2026-07-28
- 7.10.0-4.0edf323efd1d98336f3f0a68684b56f689b900d3 — 2026-07-27
- 7.10.0-3.9d90ce2c89d5c95a1148aef15e5561ab6c49053f — 2026-07-27
- 7.10.0-2.d0368e25c88e68caa4d283b5f2d88d1b76ed9356 — 2026-07-23
- 7.10.0-1.6d040c802892de6d56c7e0061b7a10b3e6a0c7a0 — 2026-07-23
- 7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad — 2026-07-14
- 7.8.0-6.3c6e192761c0362d496ed980de936e2f3cebcd3a — 2026-04-22
- 7.8.0-5.e96eae70cf4ade6a15d7e6064d5b0b4f7d835dd7 — 2026-04-22
- 7.8.0-4.8c287008617e9b12f313df99e2c821ae61ea9afa — 2026-04-14
- … 1299 more at https://npm.io/package/@prisma/prisma-schema-wasm/versions

## README

# @prisma/prisma-schema-wasm

[![Publish pipeline](https://github.com/prisma/prisma-engines/actions/workflows/publish-prisma-schema-wasm.yml/badge.svg)](https://github.com/prisma/prisma-engines/actions/workflows/publish-prisma-schema-wasm.yml)
[![npm package](https://img.shields.io/npm/v/@prisma/prisma-schema-wasm/latest)](https://www.npmjs.com/package/@prisma/prisma-schema-wasm)
[![install size](https://packagephobia.com/badge?p=@prisma/prisma-schema-wasm)](https://packagephobia.com/result?p=@prisma/prisma-schema-wasm)

This directory only contains build logic to package the `prisma-fmt` engine
into a Node package as a Wasm module. All the functionality is implemented in
other parts of prisma-engines.

The published NPM package is internal to Prisma. Its API will break without prior warning.

## Example

```bash
node -e "const prismaSchema = require('@prisma/prisma-schema-wasm'); console.log(prismaSchema.version())"
```

## Components

- The GitHub Actions workflow that publishes the NPM package: https://github.com/prisma/prisma-engines/blob/main/.github/workflows/publish-prisma-schema-wasm.yml
    - It is triggered from the https://github.com/prisma/engines-wrapper publish action.
- The [Rust source code](https://github.com/prisma/prisma-engines/tree/main/prisma-schema-wasm/src) for the wasm module
- The [nix build definition](https://github.com/prisma/prisma-engines/blob/main/prisma-schema-wasm/default.nix)
    - It gives us a fully reproducible, thoroughly described build process and environment. The alternative would be a bash script with installs through `rustup`, `cargo install` and `apt`, with underspecified system dependencies and best-effort version pinning.
    - You can read more about nix on [nix.dev](https://nix.dev/) and the [official website](https://nixos.org/).

## Local Dev with Language-Tools
When implementing features for `language-tools` in `prisma-engines`, to sync with your local dev environment for the `language-server`, one can do the following:

### On first setup
```
# Install the latest Rust version with `rustup`
# or update the latest Rust version with `rustup`
rustup update
rustup target add wasm32-unknown-unknown
cargo update -p wasm-bindgen
# Check the version defined in `prisma-schema-wasm/cargo.toml` for `wasm-bindgen` and replace `version` below:
cargo install -f wasm-bindgen-cli@version
```

### On Changes

```bash
./prisma-schema-wasm/scripts/update-schema-wasm.sh
```

This script has the following expectations:
- `language-tools` is in the same dir as `prisma-engines`
  - i.e. `dir/{prisma-engines,language-tools}`
- it's run in the `prisma-engines` root folder

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