🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@prisma/streams-local

Package Overview
Dependencies
Maintainers
7
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma/streams-local

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

latest
Source
npmnpm
Version
0.1.8
Version published
Weekly downloads
2.7M
13.53%
Maintainers
7
Weekly downloads
 
Created
Source

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

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

Programmatic example:

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:

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.

FAQs

Package last updated on 01 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts