Improve reliability + path-agnostic fresh install - #4
Draft
draesthetic wants to merge 2 commits into
Draft
Conversation
Bind the dashboard to localhost, authenticate archive API requests, detect paywalled pages, wait for lazy images, and add npm run setup so a fresh clone is one command away from ready. Co-authored-by: Sahil Agarwal <draesthetic@users.noreply.github.com>
🔐 PR security & bug reviewBlocking-severity findings: 0 (Semgrep: 0, Trivy: 0) ✅ No error-severity Semgrep findings or high/critical Trivy findings detected.
|
Track pdfs/.gitkeep (and known publication host folders) so a fresh clone has a clear place to copy an existing archive without committing PDFs. Co-authored-by: Sahil Agarwal <draesthetic@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reviewed the Substack PDF archiver and applied high-value reliability/setup improvements before documenting a clean fresh-install path.
Code improvements
storageState.json127.0.0.1— session cookies stay local-only by defaultnpm run setup— one command fornpm install+ Playwright ChromiumFresh-install folders
pdfs/plus known publication host folders are now in the repo (empty, via.gitkeep)Local setup (after pulling this branch)
git clone https://github.com/draesthetic/substack-pdf-archiver.git cd substack-pdf-archiver git checkout cursor/fresh-install-improvements-c68a npm run setupThen paste your old machine’s
pdfs/<host>/…contents into this repo’s matchingpdfs/folders, then:npm run login npm run dashboard # http://127.0.0.1:4321