How Procshot Keeps Screenshot Step Numbers Intact Across Browser Sessions
Procshot is a Chrome extension that automatically generates numbered, step-by-step guides from browser screenshots. A key technical challenge arose because Chrome's Manifest V3 service workers shut down after roughly 30 seconds of inactivity, causing in-memory sequence counters to reset mid-guide. Developer fixed this by storing the sequence number in chrome.storage.session, which persists across service worker restarts for the duration of a browser session. To handle guide resets intelligently, Procshot combines a configurable 30-minute inactivity timer with an explicit 'New Guide' button, assigning each guide session a unique ID via crypto.randomUUID(). Step-number badges cannot be drawn directly in the service worker since the Canvas API is unavailable there, requiring an offscreen document workaround instead.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in