nowity 1.7.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -944,6 +944,49 @@ cancel, an attempt racing a new schedule of its key, retries and `failed`, three
944
944
  processes and racing claims, a leader killed mid-job, a restart of every
945
945
  process, periodic jobs, and scheduling in a Prisma transaction and in a mutation.
946
946
 
947
+ ### Devtools
948
+
949
+ A Network tab for the socket: what a page subscribed to, how long the server
950
+ took to answer, how big the answers were, what was written and when the socket
951
+ came and went. Off by default — a client without it measures nothing.
952
+
953
+ ```ts
954
+ // switched on before the socket opens, so the page's startup is in it
955
+ <NowityProvider devtools={{ allowArgs: { "games.view": [0] } }}>…</NowityProvider>
956
+
957
+ // or later, from anywhere
958
+ const recorder = activeConnection().client.enableDevtools();
959
+ ```
960
+
961
+ `client.devtools` is the recorder (`null` when off): a ring buffer of the last
962
+ `limit` (500) records, one shape for all of them — `type` (`subscribe`,
963
+ `mutation`, `ws`), `name`, `ts` (`performance.now()`), `durationMs` (subscribe →
964
+ first data, mutate → answer, connect → open, open → welcome), `bytes`, `status`
965
+ and `meta` (masked arguments, updates with their cause — `patch`, `snapshot`,
966
+ `resubscribe`, `permission-change` — refusal code, optimistic run time, resends).
967
+ `summary()` is the page's startup as the socket saw it: first connect, open,
968
+ welcome, subscribe and data. `export()` is all of it as JSON.
969
+
970
+ Arguments are masked when they are recorded, so nothing unmasked is ever kept:
971
+ numbers, booleans and `null` stay, a string only under an allowed key (`id`,
972
+ `…Id`, paging; extend with `allowKeys`) or at an allowed position of an
973
+ endpoint's argument list (`allowArgs`); keys that look sensitive (`email`,
974
+ `token`, `name`, `text`…) are masked even then unless listed explicitly. Rows
975
+ and returned values are not kept at all, only their size. Nothing leaves the
976
+ page.
977
+
978
+ The panel is a separate entry so it never lands in a bundle by accident — load
979
+ it behind your own access check:
980
+
981
+ ```tsx
982
+ const { NowityDevtoolsPanel } = await import("nowity/devtools");
983
+ <NowityDevtoolsPanel recorder={client.devtools!} floating onClose={…} />
984
+ ```
985
+
986
+ Table with a waterfall, filter by type, search, sort by any column, details of a
987
+ row, copy as JSON, clear. Server-side timing (queue, snapshot, database) is not
988
+ in it yet.
989
+
947
990
  ### Escape hatches
948
991
 
949
992
  `@query({ tables: [...] })` for a query that reads through something the tracker
@@ -1007,6 +1050,26 @@ invisible in the snapshot is above the cursor and gets streamed. Delivery is
1007
1050
  at-least-once; because patches come from re-running the query and diffing, a replay
1008
1051
  produces an empty diff, so the client observes exactly once.
1009
1052
 
1053
+ ### One snapshot per read
1054
+
1055
+ Every transaction one read of the outbox returns has committed before the engine
1056
+ opens its snapshot, so they are fanned out together: each subscription they touch
1057
+ is recomputed once, and the mutation watermarks of every client that wrote are
1058
+ read in one statement. Under a burst that is a handful of read transactions a
1059
+ second instead of one per write. A client never sees half of a transaction —
1060
+ the snapshot is taken after all of them — but it may skip the states between two
1061
+ of them, which the next snapshot would have overwritten anyway. A
1062
+ hand-built `OutboxChangeSource` can turn it off with `coalesce: false`; the WAL
1063
+ source still delivers one transaction at a time.
1064
+
1065
+ Snapshots are interactive transactions. On the application's own Prisma client
1066
+ they wait in the same pool as its writes, and under load each starves the other.
1067
+ `createNowityServer({ snapshotPrisma })` takes a second client of the same schema
1068
+ — typically the same URL with a small `connection_limit` — and runs every
1069
+ snapshot there: the fan-out, the first answer of a subscription, server-side
1070
+ rendering in that process. The engine fans out one batch at a time, so a pool of
1071
+ a few connections is plenty.
1072
+
1010
1073
  ## Known limitations
1011
1074
 
1012
1075
  - **A long-running write transaction stalls the outbox stream** until it finishes
@@ -1018,12 +1081,6 @@ produces an empty diff, so the client observes exactly once.
1018
1081
  table (see above), so what is left is one database round trip per subscription
1019
1082
  the change could actually have altered — about 1.3ms each, and the dominant
1020
1083
  term in every remaining measurement.
1021
- - **Change batches are not coalesced.** Each committed transaction gets its own
1022
- fan-out pass, including its own snapshot, even when fifty of them are already
1023
- queued. Merging what is waiting would save about a quarter of the wall time
1024
- under a burst (measured: 250 moves/s in `npm run perf -- throughput`), at the
1025
- cost of the change source's "one batch per transaction" contract. Not done:
1026
- the contract is relied on elsewhere, and the ratio does not justify it yet.
1027
1084
  - **Read keys narrow by equality only.** A range, a `contains`, a `NOT` or a
1028
1085
  case-insensitive comparison contributes no narrowing, and a query with nothing
1029
1086
  else to go on watches its whole table. The cost is the pre-existing one; the
@@ -0,0 +1,218 @@
1
+ /**
2
+ * What a browser's Nowity client did, for a developer to look at — the Network
3
+ * tab of the socket.
4
+ *
5
+ * Off unless asked for (`devtools` option or {@link NowityClient.enableDevtools}):
6
+ * a client without a recorder does not measure, serialise or allocate anything
7
+ * for it. With one, every subscribe, mutation and connection event becomes a
8
+ * record in a ring buffer of the last `limit` entries, kept only in this page's
9
+ * memory. Nothing here is sent anywhere.
10
+ *
11
+ * Arguments are masked on the way in, not on the way out: a record never holds a
12
+ * value the allowlist did not let through, so neither the panel nor an export can
13
+ * leak what the recorder never kept. Payloads (rows, mutation results) are not
14
+ * kept at all — only their size.
15
+ *
16
+ * Times are `performance.now()` — milliseconds since the page's navigation
17
+ * started — so the summary reads as the page's own startup: when the socket
18
+ * opened, when the server welcomed it, when the first data arrived.
19
+ */
20
+ export type DevtoolsRecordType = "ws" | "subscribe" | "mutation";
21
+ export type DevtoolsStatus =
22
+ /** Waiting for the server. */
23
+ "pending" | "ok"
24
+ /** The server refused it (revoked subscription, rejected mutation). */
25
+ | "rejected" | "error"
26
+ /** Unsubscribed. */
27
+ | "closed"
28
+ /** The connection went down before the mutation was answered (`onDisconnect: "drop"`). */
29
+ | "lost";
30
+ /** Why a subscription received data after its first answer. */
31
+ export type DevtoolsUpdateCause = "patch" | "snapshot" | "resubscribe" | "permission-change";
32
+ export interface DevtoolsUpdate {
33
+ ts: number;
34
+ bytes: number | null;
35
+ cause: DevtoolsUpdateCause;
36
+ /** Resubscribe only: time from the re-sent subscribe to its snapshot. */
37
+ latencyMs?: number;
38
+ }
39
+ /**
40
+ * One row of the panel. One shape for every type — `type`, `name`, `ts`,
41
+ * `durationMs`, `bytes`, `status` — with what is specific to the type in `meta`.
42
+ *
43
+ * A record is updated in place while it is open (a subscription's first data, a
44
+ * mutation's answer); {@link NowityDevtools.version} moves when it is.
45
+ */
46
+ export interface DevtoolsRecord {
47
+ /** Sequence number within this recorder. */
48
+ id: number;
49
+ type: DevtoolsRecordType;
50
+ /** `contract.method` for subscribe / mutation, the phase for ws (`open`, `welcome`…). */
51
+ name: string;
52
+ /** When it started, `performance.now()`. */
53
+ ts: number;
54
+ /** Subscribe → first data, mutate → answer, connect → open… `null` while pending. */
55
+ durationMs: number | null;
56
+ /** Size on the wire in bytes (UTF-8): the first answer, or the message itself. */
57
+ bytes: number | null;
58
+ status: DevtoolsStatus;
59
+ meta: DevtoolsMeta;
60
+ }
61
+ export interface DevtoolsMeta {
62
+ /** Masked arguments (subscribe / mutation). */
63
+ args?: unknown;
64
+ subId?: string;
65
+ mutationId?: number;
66
+ /** Code of a refusal: revoke reason, server error code, rejection message (shortened). */
67
+ code?: string;
68
+ /** The subscription was seeded with server-rendered data before the socket answered. */
69
+ hydrated?: boolean;
70
+ /** Data that arrived after the first answer, newest last (at most {@link UPDATE_LIMIT}). */
71
+ updates?: DevtoolsUpdate[];
72
+ /** All updates, including those dropped from `updates`. */
73
+ updateCount?: number;
74
+ /** Bytes of all updates together. */
75
+ updateBytes?: number;
76
+ unsubscribedAt?: number;
77
+ /** Mutation: time its optimistic half took to run (the rebase on `mutate`). */
78
+ optimisticMs?: number;
79
+ /** Mutation: sent again after a reconnect. */
80
+ resent?: number;
81
+ /** ws: number of the connection this event belongs to (1 = the first socket). */
82
+ connection?: number;
83
+ /** ws `close`: how long the previous connection was up. ws `open` after a drop: how long it was down. */
84
+ upMs?: number;
85
+ downMs?: number;
86
+ /** ws `reconnect`: the delay before the next attempt. */
87
+ delayMs?: number;
88
+ /** ws `error`: the message. */
89
+ message?: string;
90
+ }
91
+ /** The page's startup, as the socket saw it. All `performance.now()`, `null` = not yet. */
92
+ export interface DevtoolsSummary {
93
+ /** First `connect()`. */
94
+ connectAt: number | null;
95
+ /** First socket open. */
96
+ openAt: number | null;
97
+ /** First welcome. */
98
+ welcomeAt: number | null;
99
+ /** First subscribe. */
100
+ firstSubscribeAt: number | null;
101
+ /** First data from the server (snapshot of any subscription). */
102
+ firstDataAt: number | null;
103
+ /** Sockets opened in this page. */
104
+ connections: number;
105
+ /** Reconnect attempts scheduled. */
106
+ reconnects: number;
107
+ /** Subscriptions still open / waiting for their first answer. */
108
+ openSubscriptions: number;
109
+ pendingSubscriptions: number;
110
+ pendingMutations: number;
111
+ }
112
+ export interface DevtoolsOptions {
113
+ /** Records kept; the oldest go first. Default 500. */
114
+ limit?: number;
115
+ /**
116
+ * Argument keys whose values are shown as they are, on top of
117
+ * {@link DEFAULT_ALLOWED_KEYS}. Any other string is masked.
118
+ */
119
+ allowKeys?: string[];
120
+ /**
121
+ * Positional arguments shown as they are, per endpoint: `{ "games.view": [0] }`
122
+ * lets the first argument of `games.view` through. A class-based endpoint's
123
+ * arguments are a list, so this is how its plain id argument is allowed.
124
+ */
125
+ allowArgs?: Record<string, number[]>;
126
+ /** Replace the masking altogether. Its result is stored as it is — mask in it. */
127
+ mask?: (endpoint: string, args: unknown) => unknown;
128
+ /** Clock, for tests. Default `performance.now()`. */
129
+ now?: () => number;
130
+ }
131
+ export declare const DEFAULT_LIMIT = 500;
132
+ /** Updates kept per subscription; the count goes on. */
133
+ export declare const UPDATE_LIMIT = 50;
134
+ /**
135
+ * Keys a value is shown under by default: identifiers and paging, never content.
136
+ * A key that ends in `Id` / `Ids` counts too. A string under any other key is
137
+ * masked — names, e-mails, tokens and message text all arrive as strings.
138
+ */
139
+ export declare const DEFAULT_ALLOWED_KEYS: readonly string[];
140
+ /** What a masked string becomes. Its length is not kept either. */
141
+ export declare const MASKED = "\u2022\u2022\u2022";
142
+ /**
143
+ * Mask arguments for the record.
144
+ *
145
+ * Numbers, booleans and `null` stay — they are counts, flags and paging. A
146
+ * string stays only under an allowed key (or at an allowed position of the
147
+ * top-level list); every other string becomes {@link MASKED}. Deep structures
148
+ * are cut off rather than walked, and a key that looks sensitive (`email`,
149
+ * `token`…) is masked even when it ends in `Id`, unless the application listed
150
+ * it explicitly.
151
+ */
152
+ export declare function maskArgs(endpoint: string, args: unknown, opts?: Pick<DevtoolsOptions, "allowKeys" | "allowArgs">): unknown;
153
+ /** UTF-8 size of a string, without allocating an encoded copy. */
154
+ export declare function byteSize(text: string): number;
155
+ /** Size of a value as JSON on the wire. */
156
+ export declare function jsonBytes(value: unknown): number;
157
+ /**
158
+ * The recorder. The client calls the `on*` methods; a panel reads
159
+ * {@link records}, {@link summary} and listens with {@link subscribe}.
160
+ */
161
+ export declare class NowityDevtools {
162
+ private readonly limit;
163
+ private readonly now;
164
+ private readonly opts;
165
+ private list;
166
+ private seq;
167
+ private rev;
168
+ private readonly listeners;
169
+ private notifyQueued;
170
+ private readonly subs;
171
+ /** Re-sent subscribes waiting for their snapshot: subId → when. */
172
+ private readonly resubscribedAt;
173
+ private readonly mutations;
174
+ private connection;
175
+ private connectAt;
176
+ private openedAt;
177
+ private closedAt;
178
+ private readonly startup;
179
+ constructor(opts?: DevtoolsOptions);
180
+ /** Records, oldest first. A new array whenever {@link version} moves. */
181
+ get records(): readonly DevtoolsRecord[];
182
+ /** Moves on every change — the snapshot for `useSyncExternalStore`. */
183
+ get version(): number;
184
+ summary(): DevtoolsSummary;
185
+ /** Listen for changes; batched to one call per microtask. Returns the unsubscribe. */
186
+ subscribe(listener: () => void): () => void;
187
+ /** Forget the records. Open subscriptions and mutations keep being tracked, as new rows. */
188
+ clear(): void;
189
+ /** Everything as JSON — masked already, ready to paste into an issue. */
190
+ export(): string;
191
+ onConnect(): void;
192
+ onOpen(): void;
193
+ onHello(bytes: number | null): void;
194
+ onWelcome(bytes: number | null): void;
195
+ onClose(intentional: boolean): void;
196
+ onReconnectScheduled(delayMs: number): void;
197
+ onTransportError(message: string): void;
198
+ onSubscribe(subId: string, query: string, args: unknown, hydrated: boolean): void;
199
+ /** All subscriptions were sent again after a reconnect. */
200
+ onResubscribe(subId: string): void;
201
+ /** A snapshot for `subId` — the first answer, a resubscribe, or a permission change. */
202
+ onSnapshot(subId: string, bytes: number | null, permissionChange: boolean): void;
203
+ onPatch(subId: string, bytes: number | null): void;
204
+ /** Revoked (`rejected`) or failed (`error`). */
205
+ onSubscriptionRefused(subId: string, status: "rejected" | "error", code: string): void;
206
+ onUnsubscribe(subId: string): void;
207
+ onMutate(mutationId: number, name: string, args: unknown, bytes: number | null, optimisticMs: number | null): void;
208
+ onMutationResent(mutationId: number): void;
209
+ onMutationResult(mutationId: number, ok: boolean, error: string | undefined): void;
210
+ /** Acknowledged by data after a reconnect, its own result lost with the old socket. */
211
+ onMutationSettled(mutationId: number): void;
212
+ onMutationLost(mutationId: number): void;
213
+ private mask;
214
+ private update;
215
+ private add;
216
+ private changed;
217
+ }
218
+ //# sourceMappingURL=devtools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devtools.d.ts","sourceRoot":"","sources":["../../src/client/devtools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC;AAEjE,MAAM,MAAM,cAAc;AACtB,8BAA8B;AAC5B,SAAS,GACT,IAAI;AACN,uEAAuE;GACrE,UAAU,GACV,OAAO;AACT,oBAAoB;GAClB,QAAQ;AACV,0FAA0F;GACxF,MAAM,CAAC;AAEb,+DAA+D;AAC/D,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,GAAG,mBAAmB,CAAC;AAE7F,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,yEAAyE;IACzE,SAAS,CAAC,EAAE,M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