open-index/open-npm huggingface dataset:
npm package: @prisma/streams-local
Description: Node and Bun local Prisma Streams runtime for trusted development workflows.
Latest version: 0.1.3

# Prisma Streams Local Build

This directory contains the generated Node-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`.

## 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 Node 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.
npm package: @prisma/streams-server
Description: Bun-only self-hosted Prisma Streams server.
Latest version: 0.1.3

# @prisma/streams-server

This package contains the Bun-only self-hosted Prisma Streams server.

## What It Is

`@prisma/streams-server` is the full Prisma Streams runtime: SQLite WAL
storage, segmenting, upload support, indexing, recovery, and the live / touch
system.

It is intended for Bun-based self-hosted deployment. For trusted local
development embedding, use `@prisma/streams-local` instead.

## Running It

Recommended:

```bash
bunx --package @prisma/streams-server prisma-streams-server --object-store local
```

After installation in a project:

```bash
bun x prisma-streams-server --object-store local
```

Useful environment variables:

- `PORT`
- `DS_HOST`
- `DS_HTTP_IDLE_TIMEOUT_SECONDS`

For R2 mode set:

- `DURABLE_STREAMS_R2_BUCKET`
- `DURABLE_STREAMS_R2_ACCOUNT_ID`
- `DURABLE_STREAMS_R2_ACCESS_KEY_ID`
- `DURABLE_STREAMS_R2_SECRET_ACCESS_KEY`

See ../docs/overview.md and ../docs/conformance.md in the repository for the full
runtime documentation.