dropthejase takes the app server out of the download path

Generated documents now come straight from cloud storage instead of being piped through the application.

infrastructure

When Louis hands a user a finished Word document or PDF, that file used to be pulled into the application's memory and streamed out through the app server - a middleman for every download. dropthejase rewired the document, display, and download paths so the app instead hands the browser a short-lived, self-authenticating link and lets the file come directly from Amazon S3, the cloud storage where it already lives.

The practical upshot: the app server stops carrying file traffic it never needed to touch. Large documents download faster and fail less, and the system sheds load it was wearing for no reason. dropthejase flags two things worth checking before copying the approach - the link generation has to succeed cleanly, and the storage bucket has to be told which browsers are now allowed to fetch from it directly.

So what Worth a look for any team whose users routinely pull large generated documents and have hit slow or flaky downloads.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

7 commits from dropthejase/louis, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
a3c9174a fix: correct S3 bucket env var name S3_BUCKET_NAME → DOCS_BUCKET_NAME Jason Lee 2026-05-08 ↗ GitHub
CDK injects DOCS_BUCKET_NAME but storage.ts was reading S3_BUCKET_NAME,
causing every S3 document operation to throw in production.
0e63858f feat(api): convert /docx endpoint to return presigned S3 URL Jason Lee 2026-05-12 ↗ GitHub
649d97f1 feat(api): convert /display endpoint to return presigned S3 URL Jason Lee 2026-05-12 ↗ GitHub
4de594aa feat(api): convert /download endpoint to return presigned S3 URL Jason Lee 2026-05-12 ↗ GitHub
5d93492b feat(frontend): fetch PDF/DOCX bytes directly from S3 via presigned URLs Jason Lee 2026-05-12 ↗ GitHub
0bf14c52 feat(frontend): DocDownloadBlock opens presigned S3 URL directly Jason Lee 2026-05-12 ↗ GitHub
3ab69023 fix(frontend): DocPanel download button uses presigned S3 URL Jason Lee 2026-05-12 ↗ GitHub

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-342.md from inside the repo you want the changes in.

⬇ Download capture-thread-342.md