Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/server/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ src/bindings.ts # assembleBindings (shims → Env, on-disk layout)
src/context.ts # WaitUntilTracker, HostExecutionContext
src/lifecycle.ts # queue/scheduled handler adapters (bind Env + ctx)
src/lock.ts # acquireWriterLock, data directory locking
src/libsql-kv.ts # LibsqlKv: @dwk/deno-host's DenoKvLike over a
# centralized libSQL DB (scale-out §8, #428);
# standalone — not composed into the host yet
src/request-duplex.ts # installRequestDuplex for streaming request bodies
src/web-socket-upgrade.ts # bridges a real HTTP Upgrade socket to a mount's DO
# (the one shim-adjacent piece that stays here — see above)
Expand All @@ -87,6 +90,9 @@ The Cloudflare binding shims and runtime-global polyfills themselves
## Dependencies (runtime)

- `@dwk/cf-shims` — the Cloudflare binding shims and runtime-global seams.
- `@dwk/deno-host` — the `DenoKvLike`/`LibsqlClientLike` seams `LibsqlKv`
implements/consumes (type-only in production code today; its runtime
lease/alarm/queue machinery arrives with the scale-out `central` mode).
- `@dwk/log` — structured logging.
- `express` (5.x) — HTTP server.
- `helmet` — baseline security-header middleware (nosniff, frame-options,
Expand Down
1 change: 1 addition & 0 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
},
"dependencies": {
"@dwk/cf-shims": "workspace:*",
"@dwk/deno-host": "workspace:*",
"@dwk/log": "workspace:*",
"express": "5.2.1",
"helmet": "8.3.0",
Expand Down
11 changes: 11 additions & 0 deletions packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ export {

export { installRequestDuplex } from "./request-duplex.js";

// Scale-out coordination store (spec/scale-out.md §8, #428): @dwk/deno-host's
// `DenoKvLike` seam over a centralized libSQL database, so the lease/alarm/
// queue machinery can span replicas. Standalone for now — nothing in the
// local-storage host composes it yet.
export {
LibsqlKv,
encodeKvKey,
decodeKvKey,
type LibsqlKvOptions,
} from "./libsql-kv.js";

export {
acquireWriterLock,
DataDirectoryLockedError,
Expand Down
Binary file added packages/server/src/libsql-kv.test.ts
Binary file not shown.
Loading
Loading