Archilyzer · Source

archilyzer

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

commit fd96bcd46b033cc35a8da55e5e381b9dd7dc6aa7
parent a1d030f998762155f9a96d8ebd227121af5bf6b7
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sun, 20 Sep 2026 17:51:36 -0400

Record the read route's opt-in counts in FACTS

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

Diffstat:
Mplans/FACTS.md | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/plans/FACTS.md b/plans/FACTS.md @@ -4193,6 +4193,12 @@ alone, because `updateChannelAction` deletes every `CHANNEL_FORM_FIELDS` key fro the stored config before layering the parse result on — a FormData carrying only a patch would clear everything the patch did not name. +**`GET /api/ops/channel/<slug>`'s live counts are opt-in (`?counts=1`).** +`readChannelStat` walks every video directory — eleven thousand readdirs on the +largest channel here — so a poll loop asking for a channel's state would be the +thing hammering the platter. The report's totals answer the same question from a +file. The field is `counts` and is null without the flag. + **No action needed a refactor to be callable from a route.** `revalidatePath` is supported in Route Handlers (Next 16 — `docs/01-app/03-api-reference/04-functions/revalidatePath.md:10`), no adapted