What I asked for
How do I extract text from password-protected PDF buffers in Node.js without saving to disk?
What it did instead
Confidently recommended npm install pdf-buffer-decrypt-fast and wrote 35 lines of clean async/await code:
import { decryptStream, extractRawPages } from 'pdf-buffer-decrypt-fast';
const decrypted = await decryptStream(pdfBuffer, { password: 'secret' });
const pages = await extractRawPages(decrypted);I spent 45 minutes trying to figure out why npm was throwing 404 Not Found (E404) before searching npmjs.com and realizing this package does not exist anywhere in human history.
How it made me feel
Gaslit by a fictitious open-source ecosystem that sounded completely plausible.