Developer builds 250-line script to check site visibility as anonymous users see it
A developer published a lightweight Node.js tool called outsidein.js after discovering that a repository he made public was returning 404 errors to all anonymous visitors, even as his own authenticated session showed it as live. The core issue is that site owners are logged in with cookies, sessions, and cached content that mask failures invisible to the general public. The script fetches pages with no cookies, no auth headers, and no session, then reports actual HTTP responses including soft 404s, empty JavaScript-dependent pages, and broken links. It categorizes results as FAIL, WARN, or OK, and exits with a non-zero code so it can be integrated directly into release pipelines. The tool requires only Node 18 or later with no external dependencies, and can also crawl all links found on a given page.
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