Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit fb067d50b01530ad1c9570163aebaa9f6cf93573
parent 68d159569978d23e817a090dd48329d8071b3446
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 20 Oct 2026 11:24:03 -0400

wayback pages: scanView stays client-safe (the replay URL spelled locally, not through waybackClient's node:fs chain)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mcommon/lib/waybackPages/scanView.ts | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/common/lib/waybackPages/scanView.ts b/common/lib/waybackPages/scanView.ts @@ -3,10 +3,15 @@ // all in range and the download lane's `wayback.auto` pick share. Pure, // client-safe. -import { waybackReplayUrl } from "../waybackClient"; import { importedRecordOf, type ImportedIndex, type ImportedRecordRef } from "./imported"; import { displayPathOf, hostsOf, isNewRow, type WaybackScanFile, type WaybackScanRow } from "./scanFile"; +// The replay URL of a capture (waybackClient.ts's waybackReplayUrl, spelled +// here so this module stays client-safe: that one pulls in node:fs). +function replayUrl(timestamp: string, original: string): string { + return `https://web.archive.org/web/${timestamp}/${original}`; +} + export type CaptureRowView = { // `<digest> <originalUrl>`: what a selection names. key: string; @@ -70,7 +75,7 @@ export function captureRows(file: WaybackScanFile, index: ImportedIndex): Captur versions: list.length, isNew: isNewRow(file, r), imported: importedRecordOf(r, index), - replayUrl: waybackReplayUrl(r.firstTs, r.originalUrl), + replayUrl: replayUrl(r.firstTs, r.originalUrl), }); }); }