<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Saad</title>
    <description>The latest articles on DEV Community by Saad (@saad-works).</description>
    <link>https://dev.to/saad-works</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4186497%2F70ee1c93-6546-4407-8987-80edc7f5867e.jpg</url>
      <title>DEV Community: Saad</title>
      <link>https://dev.to/saad-works</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/saad-works"/>
    <language>en</language>
    <item>
      <title>I built a VS Code extension that lets you read books as source code</title>
      <dc:creator>Saad</dc:creator>
      <pubDate>Thu, 15 Oct 2026 10:11:14 +0000</pubDate>
      <link>https://dev.to/saad-works/i-built-a-vs-code-extension-that-lets-you-read-books-as-source-code-50c0</link>
      <guid>https://dev.to/saad-works/i-built-a-vs-code-extension-that-lets-you-read-books-as-source-code-50c0</guid>
      <description>&lt;p&gt;Every developer has dead time. A 12-minute CI run. A long build. A meeting that starts late. I wanted to read a few pages in those gaps, but opening a book app means leaving my editor, and a novel on my second monitor is not exactly low profile.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Plain Sight Reader&lt;/strong&gt;, a VS Code extension that opens PDF and EPUB books as a normal editor tab, rendered to look like something else.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F95ntamm888fnu6oc2ms2.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F95ntamm888fnu6oc2ms2.gif" alt="Plain Sight Reader demo" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;Import a book, and its text appears in an editor tab in one of three disguise modes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;code&lt;/strong&gt;: the text becomes comments inside a source file, in the language of your choice (8 supported), split into small groups so it looks like documented code&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;markdown&lt;/strong&gt;: reads like a docs page or README&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;log&lt;/strong&gt;: a stream of timestamped log lines&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can switch modes with one command, page through with the keyboard, jump between sections, and hit a &lt;strong&gt;panic key&lt;/strong&gt; that closes the reader tab immediately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it works well as an editor extension
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No context switch.&lt;/strong&gt; The book is a tab next to your code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keyboard-driven.&lt;/strong&gt; Next/previous page and section without touching the mouse.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It resumes.&lt;/strong&gt; Your position is saved per book and restored when you reopen it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Offline.&lt;/strong&gt; No accounts, no telemetry, no network calls. Books stay on your machine.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How it works (the interesting bits)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;PDF text extraction uses &lt;code&gt;pdf-parse&lt;/code&gt;, followed by heuristics to detect sections.&lt;/li&gt;
&lt;li&gt;EPUBs are unzipped with &lt;code&gt;jszip&lt;/code&gt;, then I walk the OPF spine and convert each XHTML chapter to plain text.&lt;/li&gt;
&lt;li&gt;Pagination splits each section into pages, and a disguise renderer wraps those pages as code comments, markdown, or log lines.&lt;/li&gt;
&lt;li&gt;The reader is a virtual document, so nothing gets written to your workspace and there is nothing to accidentally commit.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Limits (being honest)
&lt;/h2&gt;

&lt;p&gt;Text extraction favours readability over exact layout. Footnotes, tables and multi-column PDFs may be reflowed, and images and formatting are dropped. Library sync across machines is manual.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Search for &lt;strong&gt;Plain Sight Reader&lt;/strong&gt; in the Extensions view, or run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;code --install-extension saad-works.plain-sight-reader
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Source (MIT): &lt;a href="https://github.com/saad-works/plain-sight-reader" rel="noopener noreferrer"&gt;https://github.com/saad-works/plain-sight-reader&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What disguise would you add? If you have a PDF that breaks the extractor, open an issue and I'll take a look.&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>typescript</category>
      <category>opensource</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
