# @prisma/streams-local

> Node and Bun local Prisma Streams runtime for trusted development workflows.

Latest version **0.1.11** (published 2026-06-12) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @prisma/streams-local
pnpm add @prisma/streams-local
yarn add @prisma/streams-local
bun add @prisma/streams-local
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.11 |
| Published | 2026-06-12 |
| First published | 2026-03-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22.0.0 |
| Dependencies | 4 |
| Unpacked size | 1.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 8 |
| Maintainers | prismabot, aqrln, tylerhogarth, ankur-datta-007 |

## Links

- npm: https://www.npmjs.com/package/@prisma/streams-local
- Repository: https://github.com/prisma/streams
- Homepage: https://github.com/prisma/streams/tree/main/docs
- Issues: https://github.com/prisma/streams/issues
- npm.io page: https://npm.io/package/@prisma/streams-local

## Dependencies (4)

- [ajv](https://npm.io/package/ajv.md) ^8.12.0
- [env-paths](https://npm.io/package/env-paths.md) ^3.0.0
- [better-result](https://npm.io/package/better-result.md) ^2.7.0
- [proper-lockfile](https://npm.io/package/proper-lockfile.md) ^4.1.2

## Recent versions

- 0.1.11 (latest) — 2026-06-12
- 0.0.1 (dev) — 2026-03-17
- 0.1.10 — 2026-06-09
- 0.1.9 — 2026-05-21
- 0.1.8 — 2026-05-01
- 0.1.7 — 2026-04-25
- 0.1.6 — 2026-04-22
- 0.1.5 — 2026-04-20
- 0.1.4 — 2026-04-13
- 0.1.3 — 2026-04-06
- 0.1.2 — 2026-03-23
- 0.1.1 — 2026-03-23
- 0.1.0 — 2026-03-18

## README

# Prisma Streams Local Build

This directory contains the generated Node/Bun-compatible package artifacts for
the published `@prisma/streams-local` runtime.

## What Local Streams Is

Prisma Streams local is a trusted-development Durable Streams server intended
for embedded workflows such as `prisma dev`.

It keeps all state in a single local SQLite database and supports the live /
touch system, but it does not run the full production segmenting and object
store pipeline.

The embedded local runtime always applies the built-in `1024 MB` auto-tune
preset, so Prisma CLI gets a predictable cache and concurrency budget and the
same current HTTP surface, including `GET /v1/server/_details`.

Published runtime floor:

- Bun `>=1.2.0`
- Node.js `>=22`

## Supported Package Surface

- `@prisma/streams-local`
- `@prisma/streams-local/internal/daemon` (internal Prisma CLI plumbing)

The full self-hosted server remains Bun-only and is not part of this local
build surface.

## Integrating It

1. Start a named local server from `@prisma/streams-local`.
2. Install your touch-enabled `state-protocol` profile via `/_profile`.
3. Feed normalized State Protocol change events into the server.
4. Use `/touch/meta` and `/touch/wait` to drive invalidation.

Programmatic example:

```ts
import { startLocalDurableStreamsServer } from "@prisma/streams-local";

const server = await startLocalDurableStreamsServer({
  name: "default",
  hostname: "127.0.0.1",
  port: 0,
});

console.log(server.exports.http.url);
console.log(server.exports.sqlite.path);

await server.close();
```

Daemon example:

```ts
import { fork } from "node:child_process";

const child = fork(require.resolve("@prisma/streams-local/internal/daemon"), [
  "--name",
  "default",
  "--port",
  "0",
], {
  stdio: "inherit",
});
```

See ../docs/overview.md and ../docs/local-dev.md for the full runtime and release
documentation.

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