@prisma/streams-server
v0.1.8
Published
Bun-only self-hosted Prisma Streams server.
Keywords
Readme
@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:
bunx --package @prisma/streams-server prisma-streams-server --object-store local --no-authAfter installation in a project:
bun x prisma-streams-server --object-store local --no-authPrisma Compute
Create a small Compute app that depends on this package and uses the package Compute entrypoint instead of this repository:
process.argv.push("--auth-strategy", "api-key");
await import("@prisma/streams-server/compute");The package Compute entrypoint injects --object-store r2, and injects
--auto-tune when DS_MEMORY_LIMIT_MB is set. It does not inject auth; pass
--auth-strategy api-key as shown above, and set API_KEY in the Compute
environment.
Useful environment variables:
PORTDS_HOSTDS_HTTP_IDLE_TIMEOUT_SECONDSAPI_KEYwhen using--auth-strategy api-key
For R2 mode set:
DURABLE_STREAMS_R2_BUCKETDURABLE_STREAMS_R2_ACCOUNT_IDDURABLE_STREAMS_R2_ACCESS_KEY_IDDURABLE_STREAMS_R2_SECRET_ACCESS_KEY
See ../docs/overview.md and ../docs/conformance.md in the repository for the full runtime documentation.
