<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Aidan Maurin-Jones | Open-Source</title><link>https://blog.aidanmaurinjones.com/tags/open-source/</link><description>Open-Source</description><language>en</language><atom:link href="https://blog.aidanmaurinjones.com/tags/open-source/index.xml" rel="self" type="application/rss+xml"/><item><title>Building My Own Ebook Ecosystem with Calibre, a Raspberry Pi, and Open-Source Software</title><link>https://blog.aidanmaurinjones.com/posts/building-my-own-ebook-ecosystem-with-calibre-a-raspberry-pi-and-open-source-software/</link><guid isPermaLink="true">https://blog.aidanmaurinjones.com/posts/building-my-own-ebook-ecosystem-with-calibre-a-raspberry-pi-and-open-source-software/</guid><pubDate>Tue, 17 Nov 2026 00:00:00 +0000</pubDate><description><![CDATA[<p>I&rsquo;ve always liked the idea of ebooks. Having an entire library available on a device small enough to fit in a pocket is genuinely wonderful. What I&rsquo;ve never particularly liked is everything that tends to come attached to that convenience.</p>
<p>Buy a book from Amazon, and you&rsquo;re largely expected to read it using Amazon&rsquo;s software or hardware. Other retailers have their own ecosystems, accounts, applications, and restrictions. The underlying technology for reading a book is relatively simple, yet the experience of managing a digital book collection often feels unnecessarily complicated.</p>
<p>My expectations aren&rsquo;t particularly unreasonable: if I purchase an ebook, I want to keep a copy of it, organize it however I like, and read it on whatever compatible device I choose. I don&rsquo;t want my ability to access a book to depend on whether a particular retailer continues supporting an application or device.</p>
<p>I&rsquo;ve been using Calibre to manage my ebook collection, and while it&rsquo;s an excellent application, I wanted something more.</p>
<p>I wanted the convenience of a modern, cloud-connected ebook ecosystem without handing control of my library to somebody else&rsquo;s cloud.</p>
<p>On November 16, 2026, I decided to see whether I could build one myself.</p>
<p>By the end of the day, I had a Raspberry Pi running a web-accessible ebook library, an OPDS catalogue, a separate reading synchronization service, and automatic library replication from my Mac.</p>
<p>Here&rsquo;s how it came together.</p>
<h3 id="starting-with-calibre">Starting with Calibre</h3>
<p>The foundation of the entire project is <a href="https://calibre-ebook.com/">Calibre</a>, the free and open-source ebook management application.</p>
<p>Calibre isn&rsquo;t exactly what I&rsquo;d describe as a modern-looking Mac application. Its interface is dense, it has seemingly endless configuration options, and it can feel like software designed for people who enjoy managing software.</p>
<p>But underneath that interface is an extraordinarily capable ebook management system.</p>
<p>It handles metadata, authors, series, cover artwork, format conversion, and the actual organization of book files. More importantly, it stores the library locally, using an SQLite database alongside the books themselves.</p>
<p>That makes it a good foundation for something larger.</p>
<p>I already had Calibre installed on my MacBook Pro, and I didn&rsquo;t particularly want to replace it or migrate my collection into an entirely different system. Instead, I wanted to build around it.</p>
<p>My Mac would remain the authoritative home of my ebook collection. Every book would be imported and managed through Calibre, just as before.</p>
<p>Everything else would happen automatically.</p>
<h3 id="giving-my-library-a-home-on-a-raspberry-pi">Giving My Library a Home on a Raspberry Pi</h3>
<p>I had a Raspberry Pi 4 Model B with 8 GB of RAM available, which turned out to be more than adequate for the job.</p>
<p>Rather than installing another copy of Calibre on the Pi, I decided to use <a href="https://github.com/janeczku/calibre-web">Calibre-Web</a>.</p>
<p>Calibre-Web is a browser-based interface for an existing Calibre library. It reads Calibre&rsquo;s database and presents the collection through a much more approachable web interface, complete with covers, authors, series, and downloadable books.</p>
<p>It also supports OPDS, an open catalogue protocol that allows compatible ebook readers to browse and download books directly from a server.</p>
<p>That last feature was especially interesting to me.</p>
<p>Instead of connecting an e-reader to my Mac whenever I wanted another book, I could theoretically open a catalogue on the reader itself, select a title, and download it.</p>
<p>No proprietary storefront. No vendor-specific library synchronization. Just my own collection, available when I wanted it.</p>
<p>I deployed Calibre-Web on the Raspberry Pi using Docker Compose. The Pi runs Linux, with the project organized under <code>/srv/epub</code>.</p>
<p>There was one important question left to answer: how would the library get from my Mac to the Pi?</p>
<h3 id="syncthing-the-piece-that-makes-everything-work">Syncthing: The Piece That Makes Everything Work</h3>
<p>I could have shared the Calibre library over the network, mounted it on the Raspberry Pi, or simply copied it over whenever I added new books.</p>
<p>None of those options particularly appealed to me.</p>
<p>I wanted the Mac to remain the primary library manager, but I didn&rsquo;t want the server to depend on my Mac being powered on.</p>
<p>That&rsquo;s where <a href="https://syncthing.net/">Syncthing</a> comes in.</p>
<p>Syncthing is an open-source file synchronization application that synchronizes folders between devices. Unlike a traditional cloud storage service, it doesn&rsquo;t require uploading everything to a third-party storage provider.</p>
<p>I installed Syncthing on my Mac using Homebrew and deployed another instance on the Raspberry Pi.</p>
<p>The setup is straightforward:</p>
<ul>
<li><strong>MacBook Pro:</strong> The original Calibre library, stored in <code>~/Calibre Library</code>.</li>
<li><strong>Raspberry Pi:</strong> A synchronized copy, stored in <code>/srv/epub/library</code>.</li>
<li><strong>Syncthing:</strong> Responsible for keeping the two locations synchronized.</li>
</ul>
<p>The intended arrangement is for the Mac to use Syncthing&rsquo;s Send Only mode and the Raspberry Pi to use Receive Only mode.</p>
<p>This matters because I don&rsquo;t want changes made on the server to overwrite the library on my Mac.</p>
<p>Calibre remains in charge.</p>
<p>During the initial setup, I encountered a predictable problem: Calibre-Web couldn&rsquo;t find the Calibre database because Syncthing hadn&rsquo;t finished transferring it.</p>
<p>Once the initial synchronization completed, Calibre-Web immediately recognized the library.</p>
<p>The synchronized collection contained 70 files across 37 folders, occupying approximately 107 MiB.</p>
<p>There&rsquo;s one technical caveat worth mentioning here. Calibre uses SQLite for its library metadata, and Syncthing doesn&rsquo;t coordinate database transactions. I performed the initial transfer with Calibre closed to avoid copying a database in the middle of a write.</p>
<p>I also mounted the library into Calibre-Web as read-only:</p>
<pre><code>volumes:
  - ./calibre-web/config:/config
  - ./library:/books:ro
</code></pre>
<p>That <code>:ro</code> at the end is important. It prevents Calibre-Web from modifying the synchronized library through that mount.</p>
<p>The result is exactly what I wanted: one authoritative library on my Mac and an independently accessible copy on the Pi.</p>
<h3 id="making-the-library-accessible-anywhere">Making the Library Accessible Anywhere</h3>
<p>At this point, the system worked on my local network.</p>
<p>That was nice, but I wanted access when I wasn&rsquo;t at home.</p>
<p>I could have configured port forwarding on my router, set up a VPN, or used a reverse proxy. Instead, I chose <a href="https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/">Cloudflare Tunnel</a>.</p>
<p>Cloudflare Tunnel allows a service running on a private network to be accessible through a public hostname without opening inbound ports on the router.</p>
<p>The Raspberry Pi establishes an outbound connection to Cloudflare, which routes requests to the appropriate local service.</p>
<p>I created a dedicated hostname for the ebook library and the address takes me directly to Calibre-Web, where I can browse my collection, view metadata, and download books.</p>
<p>It&rsquo;s a small detail, but having my library available through a normal HTTPS address makes the entire project feel much more like a finished product than a collection of services running on a Raspberry Pi.</p>
<p>And because the books are stored on the Pi, the library remains accessible even when my MacBook is turned off.</p>
<p>Of course, Cloudflare is still a third-party dependency for remote access. The important distinction is that Cloudflare isn&rsquo;t hosting my ebook library or managing my books. The data remains on my hardware.</p>
<h3 id="opds-an-app-store-for-my-own-books">OPDS: An App Store for My Own Books</h3>
<p>One of the most appealing features of Calibre-Web is its support for OPDS.</p>
<p>OPDS stands for Open Publication Distribution System. It&rsquo;s a standardized way for reading applications and devices to discover and acquire digital publications.</p>
<p>In practical terms, it means an ebook reader can connect to a catalogue, display available books, and download them without needing to understand how the underlying library is organized.</p>
<p>This is where the project starts to become more than a web interface for Calibre.</p>
<p>With a compatible e-reader, I can browse my personal library directly from the device. There&rsquo;s no need to connect it to my Mac, manually locate an EPUB, or transfer files over USB.</p>
<p>The reader doesn&rsquo;t need to know anything about Syncthing, Docker, or the Raspberry Pi. It only needs to know where the OPDS catalogue lives.</p>
<p>I particularly appreciate this separation.</p>
<p>The software responsible for managing the books doesn&rsquo;t need to be the same software responsible for distributing them, and neither needs to be the application used to read them.</p>
<p>That&rsquo;s exactly the kind of interoperability I wish were more common in consumer technology.</p>
<h3 id="crosspoint-sync-keeping-track-of-where-i-left-off">CrossPoint Sync: Keeping Track of Where I Left Off</h3>
<p>Distributing books solves only part of the problem.</p>
<p>One of the genuinely useful features of proprietary ebook ecosystems is reading progress synchronization. You can stop reading on one device, open the same book somewhere else, and continue from approximately where you left off.</p>
<p>I wanted that capability too.</p>
<p>For this, I deployed <a href="https://github.com/crosspoint-reader/crosspoint-sync">CrossPoint Sync</a>, a separate service designed to synchronize reading progress between compatible CrossPoint clients.</p>
<p>It&rsquo;s important to understand that CrossPoint Sync and Calibre-Web perform completely different jobs.</p>
<p>Calibre-Web provides the books.</p>
<p>CrossPoint Sync provides the reading state.</p>
<p>Neither needs to manage the other&rsquo;s data.</p>
<p>I deployed CrossPoint Sync in its own Docker container and gave it a separate Cloudflare Tunnel hostname.</p>
<p>The installation wasn&rsquo;t entirely uneventful.</p>
<p>CrossPoint Sync initially failed to initialize its SQLite database because the directory mounted into the container had incorrect ownership.</p>
<p>The fix was a simple Linux permissions change:</p>
<pre><code>sudo chown -R 1000:1000 /srv/epub/crosspoint-sync/data
</code></pre>
<p>After correcting the ownership, the service started successfully and its health endpoint returned:</p>
<pre><code>{&quot;status&quot;:&quot;ok&quot;,&quot;version&quot;:&quot;0.2.0&quot;}
</code></pre>
<p>At that point, the synchronization server was operational. A healthy server, however, isn&rsquo;t the same thing as a verified end-to-end reading synchronization experience; that still requires testing with compatible clients.</p>
<p>Nevertheless, having the infrastructure available opens up some interesting possibilities.</p>
<h3 id="five-containers-one-little-raspberry-pi">Five Containers, One Little Raspberry Pi</h3>
<p>By the time everything was configured, the Raspberry Pi was running five Docker containers.</p>
<table>
	<thead>
			<tr>
					<th>Container</th>
					<th>Responsibility</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>Calibre-Web</td>
					<td>Web library and OPDS catalogue</td>
			</tr>
			<tr>
					<td>Syncthing</td>
					<td>Replicating the Calibre library</td>
			</tr>
			<tr>
					<td>CrossPoint Sync</td>
					<td>Reading progress synchronization</td>
			</tr>
			<tr>
					<td>Cloudflared</td>
					<td>Remote access to Calibre-Web</td>
			</tr>
			<tr>
					<td>Cloudflared</td>
					<td>Remote access to CrossPoint Sync</td>
			</tr>
	</tbody>
</table>
<p>I deliberately kept these services separate.</p>
<p>It would have been possible to combine some functionality or use a more elaborate self-hosted library platform, but I didn&rsquo;t want to create unnecessary dependencies between components.</p>
<p>If I decide to replace Calibre-Web in the future, Syncthing can continue doing its job. If I change reading synchronization software, the ebook library doesn&rsquo;t need to change.</p>
<p>The services are also configured to restart automatically unless deliberately stopped.</p>
<p>Docker starts with the Raspberry Pi, and the containers use the <code>unless-stopped</code> restart policy.</p>
<p>On the Mac, Syncthing runs as a Homebrew-managed service through a macOS LaunchAgent, so it starts when I log in.</p>
<p>The goal is for the system to require as little attention as possible.</p>
<p>I don&rsquo;t want maintaining an ebook library to become another hobby that requires constant maintenance just to keep it functioning.</p>
<p>I already have enough of those.</p>
<h3 id="what-happens-when-i-add-a-new-book">What Happens When I Add a New Book?</h3>
<p>This is my favourite part of the entire setup, because the day-to-day workflow is almost comically simple.</p>
<p>I add an EPUB to Calibre on my Mac.</p>
<p>That&rsquo;s it.</p>
<p>Calibre manages the book and its metadata. Syncthing notices the changed files and transfers them to the Raspberry Pi. Calibre-Web reads the synchronized library, and the book becomes available through the browser and OPDS catalogue.</p>
<p>From a compatible e-reader, I can then download the book directly.</p>
<p>CrossPoint Sync operates independently to synchronize reading progress between supported clients.</p>
<p>Conceptually, the system looks like this:</p>
<pre><code>                  MacBook Pro
                  ┌──────────────┐
                  │   Calibre    │
                  │ Master Books │
                  └──────┬───────┘
                         │
                      Syncthing
                         │
                         ▼
                  Raspberry Pi 4
              ┌────────────────────┐
              │  Calibre Library   │
              │  Synced Replica    │
              └─────────┬──────────┘
                        │
                        ▼
                 Calibre-Web
                    │     │
               Web UI    OPDS
                    │     │
                    └──┬──┘
                       │
                  EPUB Reader
                       │
                       ▼
                CrossPoint Sync
               (Reading Progress)
</code></pre>
<p>There&rsquo;s no special export process, no proprietary synchronization application, and no requirement to keep the Mac running for readers to access books that have already been synchronized.</p>
<p>It feels like a natural extension of Calibre rather than an entirely separate system.</p>
<h3 id="the-less-glamorous-parts">The Less Glamorous Parts</h3>
<p>I don&rsquo;t want to pretend that everything worked perfectly on the first attempt.</p>
<p>Getting the infrastructure running involved some troubleshooting, particularly around filesystem permissions, authentication, and initial synchronization.</p>
<p>Calibre-Web&rsquo;s administrator password reset was more involved than expected because the application enforced a password complexity policy that wasn&rsquo;t immediately obvious.</p>
<p>Syncthing needed its GUI authentication configured correctly.</p>
<p>CrossPoint Sync needed its data directory permissions corrected.</p>
<p>I also ended up with a few temporary Cloudflare containers during setup that needed to be identified and removed.</p>
<p>None of these problems was particularly dramatic, but they&rsquo;re a reminder that self-hosting replaces some of the convenience of a commercial service with responsibility for running the underlying infrastructure.</p>
<p>There are also operational details I still want to address, including independent backups, reviewing publicly accessible services, and verifying complete recovery after a Raspberry Pi reboot.</p>
<p>Syncthing is excellent for replication, but replication isn&rsquo;t a backup. If I accidentally delete a book from my master library, that deletion can propagate to the Pi.</p>
<p>And while CrossPoint Sync is running and reporting a healthy status, I still want to validate the complete reading synchronization workflow between compatible devices.</p>
<p>These are manageable tasks rather than fundamental problems with the design.</p>
<h3 id="why-not-just-use-kindle-or-kobo">Why Not Just Use Kindle or Kobo?</h3>
<p>It&rsquo;s a fair question.</p>
<p>Commercial ebook ecosystems have spent years refining their experiences. Buying a book, downloading it, and synchronizing reading progress can be remarkably convenient.</p>
<p>Building your own equivalent requires more effort, more technical knowledge, and a willingness to maintain the services involved.</p>
<p>But those ecosystems also make decisions about how books are distributed, which devices are supported, and how much control customers have over their purchases.</p>
<p>I don&rsquo;t particularly like the idea that the company selling me a book should also get to decide which reading application I&rsquo;m allowed to use.</p>
<p>Nor do I want my collection to become inaccessible because a device stops receiving updates or a retailer changes its policies.</p>
<p>Using standard EPUB files and OPDS doesn&rsquo;t solve every problem with the ebook industry, especially DRM restrictions. But it does mean that once I have a compatible, usable EPUB, I can manage and distribute it without tying the library to a single manufacturer.</p>
<p>And that&rsquo;s valuable to me.</p>
<p>It&rsquo;s not about refusing to use commercial products. It&rsquo;s about being able to choose them because they&rsquo;re good products, rather than because my books are trapped inside their ecosystems.</p>
<h3 id="the-bigger-picture">The Bigger Picture</h3>
<p>What I find most satisfying about this project isn&rsquo;t any particular piece of software.</p>
<p>Calibre, Syncthing, Calibre-Web, CrossPoint Sync, and Cloudflare Tunnel are all useful tools individually.</p>
<p>The interesting part is what happens when you connect them.</p>
<p>Each application handles one responsibility, and together they create an experience that would otherwise require a tightly integrated proprietary platform.</p>
<p>My Mac manages the collection. The Raspberry Pi makes it available. OPDS connects the library to compatible readers. CrossPoint Sync provides a separate foundation for synchronizing reading progress.</p>
<p>None of these components needs to know everything about the others.</p>
<p>There&rsquo;s something refreshing about that.</p>
<p>I also appreciate that I didn&rsquo;t need to purchase a NAS, subscribe to a hosted ebook service, or buy another computer. I built the system using hardware I already owned.</p>
<p>The Raspberry Pi 4 is hardly cutting-edge hardware, but serving a modest ebook library isn&rsquo;t an especially demanding task.</p>
<p>And while I enjoy experimenting with technology, the best outcome of a project like this is ultimately not having to think about it very much once it&rsquo;s working.</p>
<h3 id="one-day-one-idea-and-my-own-ebook-cloud">One Day, One Idea, and My Own Ebook Cloud</h3>
<p>The entire project started as an idea I had one morning.</p>
<p>By the end of that day, I had a working self-hosted ebook platform with automatic library replication, a web interface, remote HTTPS access, an OPDS catalogue, and an operational reading synchronization backend.</p>
<p>There&rsquo;s still some validation and maintenance work to do, but the core infrastructure is in place.</p>
<p>More importantly, I&rsquo;ve ended up with something that reflects how I think digital media should work.</p>
<p>My books live in a library I control. I can organize them with software I choose. I can access them through open standards, and I can use compatible reading devices without making one company&rsquo;s ecosystem the centre of everything.</p>
<p>The fact that it all runs on a Raspberry Pi sitting somewhere in my house makes it even better.</p>
<p>Sometimes the most satisfying technology projects aren&rsquo;t about inventing something entirely new.</p>
<p>They&rsquo;re about taking a collection of existing tools, connecting them in the right way, and realizing that you&rsquo;ve built exactly the experience you wanted.</p>
<p>And in this case, I came up with the idea over breakfast and had most of it working before going to bed.</p>
<div class="amj-cta" aria-label="Support and subscription links">
  <div class="amj-cta__item amj-cta__item--coffee">
    <a class="amj-cta__button amj-cta__button--coffee" href="https://www.buymeacoffee.com/AidanMJ25" target="_blank" rel="noopener">
      <span>Buy Me a Coffee</span>
    </a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--rss" href="https://blog.aidanmaurinjones.com/posts/index.xml" target="_blank" rel="noopener" aria-label="Subscribe via RSS">
      <svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M6.18 17.82a1.82 1.82 0 1 1 0-3.64 1.82 1.82 0 0 1 0 3.64Zm-3-8.18v2.73a8.64 8.64 0 0 1 8.64 8.64h2.73A11.36 11.36 0 0 0 3.18 9.64Zm0-4.09v2.73A15.45 15.45 0 0 1 18.55 23h2.73C21.27 11.73 12.45 2.91 3.18 5.55Z"/></svg>
      <span>Subscribe via RSS</span>
    </a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--newsletter" href="https://buttondown.com/AidanMJ25" target="_blank" rel="noopener">Newsletter via Email</a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--rss" href="https://blog.aidanmaurinjones.com/newsletter/index.xml" target="_blank" rel="noopener" aria-label="Newsletter via RSS">
      <svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M6.18 17.82a1.82 1.82 0 1 1 0-3.64 1.82 1.82 0 0 1 0 3.64Zm-3-8.18v2.73a8.64 8.64 0 0 1 8.64 8.64h2.73A11.36 11.36 0 0 0 3.18 9.64Zm0-4.09v2.73A15.45 15.45 0 0 1 18.55 23h2.73C21.27 11.73 12.45 2.91 3.18 5.55Z"/></svg>
      <span>Newsletter via RSS</span>
    </a>
  </div>
</div>

]]></description><content:encoded><![CDATA[<p>I&rsquo;ve always liked the idea of ebooks. Having an entire library available on a device small enough to fit in a pocket is genuinely wonderful. What I&rsquo;ve never particularly liked is everything that tends to come attached to that convenience.</p>
<p>Buy a book from Amazon, and you&rsquo;re largely expected to read it using Amazon&rsquo;s software or hardware. Other retailers have their own ecosystems, accounts, applications, and restrictions. The underlying technology for reading a book is relatively simple, yet the experience of managing a digital book collection often feels unnecessarily complicated.</p>
<p>My expectations aren&rsquo;t particularly unreasonable: if I purchase an ebook, I want to keep a copy of it, organize it however I like, and read it on whatever compatible device I choose. I don&rsquo;t want my ability to access a book to depend on whether a particular retailer continues supporting an application or device.</p>
<p>I&rsquo;ve been using Calibre to manage my ebook collection, and while it&rsquo;s an excellent application, I wanted something more.</p>
<p>I wanted the convenience of a modern, cloud-connected ebook ecosystem without handing control of my library to somebody else&rsquo;s cloud.</p>
<p>On November 16, 2026, I decided to see whether I could build one myself.</p>
<p>By the end of the day, I had a Raspberry Pi running a web-accessible ebook library, an OPDS catalogue, a separate reading synchronization service, and automatic library replication from my Mac.</p>
<p>Here&rsquo;s how it came together.</p>
<h3 id="starting-with-calibre">Starting with Calibre</h3>
<p>The foundation of the entire project is <a href="https://calibre-ebook.com/">Calibre</a>, the free and open-source ebook management application.</p>
<p>Calibre isn&rsquo;t exactly what I&rsquo;d describe as a modern-looking Mac application. Its interface is dense, it has seemingly endless configuration options, and it can feel like software designed for people who enjoy managing software.</p>
<p>But underneath that interface is an extraordinarily capable ebook management system.</p>
<p>It handles metadata, authors, series, cover artwork, format conversion, and the actual organization of book files. More importantly, it stores the library locally, using an SQLite database alongside the books themselves.</p>
<p>That makes it a good foundation for something larger.</p>
<p>I already had Calibre installed on my MacBook Pro, and I didn&rsquo;t particularly want to replace it or migrate my collection into an entirely different system. Instead, I wanted to build around it.</p>
<p>My Mac would remain the authoritative home of my ebook collection. Every book would be imported and managed through Calibre, just as before.</p>
<p>Everything else would happen automatically.</p>
<h3 id="giving-my-library-a-home-on-a-raspberry-pi">Giving My Library a Home on a Raspberry Pi</h3>
<p>I had a Raspberry Pi 4 Model B with 8 GB of RAM available, which turned out to be more than adequate for the job.</p>
<p>Rather than installing another copy of Calibre on the Pi, I decided to use <a href="https://github.com/janeczku/calibre-web">Calibre-Web</a>.</p>
<p>Calibre-Web is a browser-based interface for an existing Calibre library. It reads Calibre&rsquo;s database and presents the collection through a much more approachable web interface, complete with covers, authors, series, and downloadable books.</p>
<p>It also supports OPDS, an open catalogue protocol that allows compatible ebook readers to browse and download books directly from a server.</p>
<p>That last feature was especially interesting to me.</p>
<p>Instead of connecting an e-reader to my Mac whenever I wanted another book, I could theoretically open a catalogue on the reader itself, select a title, and download it.</p>
<p>No proprietary storefront. No vendor-specific library synchronization. Just my own collection, available when I wanted it.</p>
<p>I deployed Calibre-Web on the Raspberry Pi using Docker Compose. The Pi runs Linux, with the project organized under <code>/srv/epub</code>.</p>
<p>There was one important question left to answer: how would the library get from my Mac to the Pi?</p>
<h3 id="syncthing-the-piece-that-makes-everything-work">Syncthing: The Piece That Makes Everything Work</h3>
<p>I could have shared the Calibre library over the network, mounted it on the Raspberry Pi, or simply copied it over whenever I added new books.</p>
<p>None of those options particularly appealed to me.</p>
<p>I wanted the Mac to remain the primary library manager, but I didn&rsquo;t want the server to depend on my Mac being powered on.</p>
<p>That&rsquo;s where <a href="https://syncthing.net/">Syncthing</a> comes in.</p>
<p>Syncthing is an open-source file synchronization application that synchronizes folders between devices. Unlike a traditional cloud storage service, it doesn&rsquo;t require uploading everything to a third-party storage provider.</p>
<p>I installed Syncthing on my Mac using Homebrew and deployed another instance on the Raspberry Pi.</p>
<p>The setup is straightforward:</p>
<ul>
<li><strong>MacBook Pro:</strong> The original Calibre library, stored in <code>~/Calibre Library</code>.</li>
<li><strong>Raspberry Pi:</strong> A synchronized copy, stored in <code>/srv/epub/library</code>.</li>
<li><strong>Syncthing:</strong> Responsible for keeping the two locations synchronized.</li>
</ul>
<p>The intended arrangement is for the Mac to use Syncthing&rsquo;s Send Only mode and the Raspberry Pi to use Receive Only mode.</p>
<p>This matters because I don&rsquo;t want changes made on the server to overwrite the library on my Mac.</p>
<p>Calibre remains in charge.</p>
<p>During the initial setup, I encountered a predictable problem: Calibre-Web couldn&rsquo;t find the Calibre database because Syncthing hadn&rsquo;t finished transferring it.</p>
<p>Once the initial synchronization completed, Calibre-Web immediately recognized the library.</p>
<p>The synchronized collection contained 70 files across 37 folders, occupying approximately 107 MiB.</p>
<p>There&rsquo;s one technical caveat worth mentioning here. Calibre uses SQLite for its library metadata, and Syncthing doesn&rsquo;t coordinate database transactions. I performed the initial transfer with Calibre closed to avoid copying a database in the middle of a write.</p>
<p>I also mounted the library into Calibre-Web as read-only:</p>
<pre><code>volumes:
  - ./calibre-web/config:/config
  - ./library:/books:ro
</code></pre>
<p>That <code>:ro</code> at the end is important. It prevents Calibre-Web from modifying the synchronized library through that mount.</p>
<p>The result is exactly what I wanted: one authoritative library on my Mac and an independently accessible copy on the Pi.</p>
<h3 id="making-the-library-accessible-anywhere">Making the Library Accessible Anywhere</h3>
<p>At this point, the system worked on my local network.</p>
<p>That was nice, but I wanted access when I wasn&rsquo;t at home.</p>
<p>I could have configured port forwarding on my router, set up a VPN, or used a reverse proxy. Instead, I chose <a href="https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/">Cloudflare Tunnel</a>.</p>
<p>Cloudflare Tunnel allows a service running on a private network to be accessible through a public hostname without opening inbound ports on the router.</p>
<p>The Raspberry Pi establishes an outbound connection to Cloudflare, which routes requests to the appropriate local service.</p>
<p>I created a dedicated hostname for the ebook library and the address takes me directly to Calibre-Web, where I can browse my collection, view metadata, and download books.</p>
<p>It&rsquo;s a small detail, but having my library available through a normal HTTPS address makes the entire project feel much more like a finished product than a collection of services running on a Raspberry Pi.</p>
<p>And because the books are stored on the Pi, the library remains accessible even when my MacBook is turned off.</p>
<p>Of course, Cloudflare is still a third-party dependency for remote access. The important distinction is that Cloudflare isn&rsquo;t hosting my ebook library or managing my books. The data remains on my hardware.</p>
<h3 id="opds-an-app-store-for-my-own-books">OPDS: An App Store for My Own Books</h3>
<p>One of the most appealing features of Calibre-Web is its support for OPDS.</p>
<p>OPDS stands for Open Publication Distribution System. It&rsquo;s a standardized way for reading applications and devices to discover and acquire digital publications.</p>
<p>In practical terms, it means an ebook reader can connect to a catalogue, display available books, and download them without needing to understand how the underlying library is organized.</p>
<p>This is where the project starts to become more than a web interface for Calibre.</p>
<p>With a compatible e-reader, I can browse my personal library directly from the device. There&rsquo;s no need to connect it to my Mac, manually locate an EPUB, or transfer files over USB.</p>
<p>The reader doesn&rsquo;t need to know anything about Syncthing, Docker, or the Raspberry Pi. It only needs to know where the OPDS catalogue lives.</p>
<p>I particularly appreciate this separation.</p>
<p>The software responsible for managing the books doesn&rsquo;t need to be the same software responsible for distributing them, and neither needs to be the application used to read them.</p>
<p>That&rsquo;s exactly the kind of interoperability I wish were more common in consumer technology.</p>
<h3 id="crosspoint-sync-keeping-track-of-where-i-left-off">CrossPoint Sync: Keeping Track of Where I Left Off</h3>
<p>Distributing books solves only part of the problem.</p>
<p>One of the genuinely useful features of proprietary ebook ecosystems is reading progress synchronization. You can stop reading on one device, open the same book somewhere else, and continue from approximately where you left off.</p>
<p>I wanted that capability too.</p>
<p>For this, I deployed <a href="https://github.com/crosspoint-reader/crosspoint-sync">CrossPoint Sync</a>, a separate service designed to synchronize reading progress between compatible CrossPoint clients.</p>
<p>It&rsquo;s important to understand that CrossPoint Sync and Calibre-Web perform completely different jobs.</p>
<p>Calibre-Web provides the books.</p>
<p>CrossPoint Sync provides the reading state.</p>
<p>Neither needs to manage the other&rsquo;s data.</p>
<p>I deployed CrossPoint Sync in its own Docker container and gave it a separate Cloudflare Tunnel hostname.</p>
<p>The installation wasn&rsquo;t entirely uneventful.</p>
<p>CrossPoint Sync initially failed to initialize its SQLite database because the directory mounted into the container had incorrect ownership.</p>
<p>The fix was a simple Linux permissions change:</p>
<pre><code>sudo chown -R 1000:1000 /srv/epub/crosspoint-sync/data
</code></pre>
<p>After correcting the ownership, the service started successfully and its health endpoint returned:</p>
<pre><code>{&quot;status&quot;:&quot;ok&quot;,&quot;version&quot;:&quot;0.2.0&quot;}
</code></pre>
<p>At that point, the synchronization server was operational. A healthy server, however, isn&rsquo;t the same thing as a verified end-to-end reading synchronization experience; that still requires testing with compatible clients.</p>
<p>Nevertheless, having the infrastructure available opens up some interesting possibilities.</p>
<h3 id="five-containers-one-little-raspberry-pi">Five Containers, One Little Raspberry Pi</h3>
<p>By the time everything was configured, the Raspberry Pi was running five Docker containers.</p>
<table>
	<thead>
			<tr>
					<th>Container</th>
					<th>Responsibility</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>Calibre-Web</td>
					<td>Web library and OPDS catalogue</td>
			</tr>
			<tr>
					<td>Syncthing</td>
					<td>Replicating the Calibre library</td>
			</tr>
			<tr>
					<td>CrossPoint Sync</td>
					<td>Reading progress synchronization</td>
			</tr>
			<tr>
					<td>Cloudflared</td>
					<td>Remote access to Calibre-Web</td>
			</tr>
			<tr>
					<td>Cloudflared</td>
					<td>Remote access to CrossPoint Sync</td>
			</tr>
	</tbody>
</table>
<p>I deliberately kept these services separate.</p>
<p>It would have been possible to combine some functionality or use a more elaborate self-hosted library platform, but I didn&rsquo;t want to create unnecessary dependencies between components.</p>
<p>If I decide to replace Calibre-Web in the future, Syncthing can continue doing its job. If I change reading synchronization software, the ebook library doesn&rsquo;t need to change.</p>
<p>The services are also configured to restart automatically unless deliberately stopped.</p>
<p>Docker starts with the Raspberry Pi, and the containers use the <code>unless-stopped</code> restart policy.</p>
<p>On the Mac, Syncthing runs as a Homebrew-managed service through a macOS LaunchAgent, so it starts when I log in.</p>
<p>The goal is for the system to require as little attention as possible.</p>
<p>I don&rsquo;t want maintaining an ebook library to become another hobby that requires constant maintenance just to keep it functioning.</p>
<p>I already have enough of those.</p>
<h3 id="what-happens-when-i-add-a-new-book">What Happens When I Add a New Book?</h3>
<p>This is my favourite part of the entire setup, because the day-to-day workflow is almost comically simple.</p>
<p>I add an EPUB to Calibre on my Mac.</p>
<p>That&rsquo;s it.</p>
<p>Calibre manages the book and its metadata. Syncthing notices the changed files and transfers them to the Raspberry Pi. Calibre-Web reads the synchronized library, and the book becomes available through the browser and OPDS catalogue.</p>
<p>From a compatible e-reader, I can then download the book directly.</p>
<p>CrossPoint Sync operates independently to synchronize reading progress between supported clients.</p>
<p>Conceptually, the system looks like this:</p>
<pre><code>                  MacBook Pro
                  ┌──────────────┐
                  │   Calibre    │
                  │ Master Books │
                  └──────┬───────┘
                         │
                      Syncthing
                         │
                         ▼
                  Raspberry Pi 4
              ┌────────────────────┐
              │  Calibre Library   │
              │  Synced Replica    │
              └─────────┬──────────┘
                        │
                        ▼
                 Calibre-Web
                    │     │
               Web UI    OPDS
                    │     │
                    └──┬──┘
                       │
                  EPUB Reader
                       │
                       ▼
                CrossPoint Sync
               (Reading Progress)
</code></pre>
<p>There&rsquo;s no special export process, no proprietary synchronization application, and no requirement to keep the Mac running for readers to access books that have already been synchronized.</p>
<p>It feels like a natural extension of Calibre rather than an entirely separate system.</p>
<h3 id="the-less-glamorous-parts">The Less Glamorous Parts</h3>
<p>I don&rsquo;t want to pretend that everything worked perfectly on the first attempt.</p>
<p>Getting the infrastructure running involved some troubleshooting, particularly around filesystem permissions, authentication, and initial synchronization.</p>
<p>Calibre-Web&rsquo;s administrator password reset was more involved than expected because the application enforced a password complexity policy that wasn&rsquo;t immediately obvious.</p>
<p>Syncthing needed its GUI authentication configured correctly.</p>
<p>CrossPoint Sync needed its data directory permissions corrected.</p>
<p>I also ended up with a few temporary Cloudflare containers during setup that needed to be identified and removed.</p>
<p>None of these problems was particularly dramatic, but they&rsquo;re a reminder that self-hosting replaces some of the convenience of a commercial service with responsibility for running the underlying infrastructure.</p>
<p>There are also operational details I still want to address, including independent backups, reviewing publicly accessible services, and verifying complete recovery after a Raspberry Pi reboot.</p>
<p>Syncthing is excellent for replication, but replication isn&rsquo;t a backup. If I accidentally delete a book from my master library, that deletion can propagate to the Pi.</p>
<p>And while CrossPoint Sync is running and reporting a healthy status, I still want to validate the complete reading synchronization workflow between compatible devices.</p>
<p>These are manageable tasks rather than fundamental problems with the design.</p>
<h3 id="why-not-just-use-kindle-or-kobo">Why Not Just Use Kindle or Kobo?</h3>
<p>It&rsquo;s a fair question.</p>
<p>Commercial ebook ecosystems have spent years refining their experiences. Buying a book, downloading it, and synchronizing reading progress can be remarkably convenient.</p>
<p>Building your own equivalent requires more effort, more technical knowledge, and a willingness to maintain the services involved.</p>
<p>But those ecosystems also make decisions about how books are distributed, which devices are supported, and how much control customers have over their purchases.</p>
<p>I don&rsquo;t particularly like the idea that the company selling me a book should also get to decide which reading application I&rsquo;m allowed to use.</p>
<p>Nor do I want my collection to become inaccessible because a device stops receiving updates or a retailer changes its policies.</p>
<p>Using standard EPUB files and OPDS doesn&rsquo;t solve every problem with the ebook industry, especially DRM restrictions. But it does mean that once I have a compatible, usable EPUB, I can manage and distribute it without tying the library to a single manufacturer.</p>
<p>And that&rsquo;s valuable to me.</p>
<p>It&rsquo;s not about refusing to use commercial products. It&rsquo;s about being able to choose them because they&rsquo;re good products, rather than because my books are trapped inside their ecosystems.</p>
<h3 id="the-bigger-picture">The Bigger Picture</h3>
<p>What I find most satisfying about this project isn&rsquo;t any particular piece of software.</p>
<p>Calibre, Syncthing, Calibre-Web, CrossPoint Sync, and Cloudflare Tunnel are all useful tools individually.</p>
<p>The interesting part is what happens when you connect them.</p>
<p>Each application handles one responsibility, and together they create an experience that would otherwise require a tightly integrated proprietary platform.</p>
<p>My Mac manages the collection. The Raspberry Pi makes it available. OPDS connects the library to compatible readers. CrossPoint Sync provides a separate foundation for synchronizing reading progress.</p>
<p>None of these components needs to know everything about the others.</p>
<p>There&rsquo;s something refreshing about that.</p>
<p>I also appreciate that I didn&rsquo;t need to purchase a NAS, subscribe to a hosted ebook service, or buy another computer. I built the system using hardware I already owned.</p>
<p>The Raspberry Pi 4 is hardly cutting-edge hardware, but serving a modest ebook library isn&rsquo;t an especially demanding task.</p>
<p>And while I enjoy experimenting with technology, the best outcome of a project like this is ultimately not having to think about it very much once it&rsquo;s working.</p>
<h3 id="one-day-one-idea-and-my-own-ebook-cloud">One Day, One Idea, and My Own Ebook Cloud</h3>
<p>The entire project started as an idea I had one morning.</p>
<p>By the end of that day, I had a working self-hosted ebook platform with automatic library replication, a web interface, remote HTTPS access, an OPDS catalogue, and an operational reading synchronization backend.</p>
<p>There&rsquo;s still some validation and maintenance work to do, but the core infrastructure is in place.</p>
<p>More importantly, I&rsquo;ve ended up with something that reflects how I think digital media should work.</p>
<p>My books live in a library I control. I can organize them with software I choose. I can access them through open standards, and I can use compatible reading devices without making one company&rsquo;s ecosystem the centre of everything.</p>
<p>The fact that it all runs on a Raspberry Pi sitting somewhere in my house makes it even better.</p>
<p>Sometimes the most satisfying technology projects aren&rsquo;t about inventing something entirely new.</p>
<p>They&rsquo;re about taking a collection of existing tools, connecting them in the right way, and realizing that you&rsquo;ve built exactly the experience you wanted.</p>
<p>And in this case, I came up with the idea over breakfast and had most of it working before going to bed.</p>
<div class="amj-cta" aria-label="Support and subscription links">
  <div class="amj-cta__item amj-cta__item--coffee">
    <a class="amj-cta__button amj-cta__button--coffee" href="https://www.buymeacoffee.com/AidanMJ25" target="_blank" rel="noopener">
      <span>Buy Me a Coffee</span>
    </a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--rss" href="https://blog.aidanmaurinjones.com/posts/index.xml" target="_blank" rel="noopener" aria-label="Subscribe via RSS">
      <svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M6.18 17.82a1.82 1.82 0 1 1 0-3.64 1.82 1.82 0 0 1 0 3.64Zm-3-8.18v2.73a8.64 8.64 0 0 1 8.64 8.64h2.73A11.36 11.36 0 0 0 3.18 9.64Zm0-4.09v2.73A15.45 15.45 0 0 1 18.55 23h2.73C21.27 11.73 12.45 2.91 3.18 5.55Z"/></svg>
      <span>Subscribe via RSS</span>
    </a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--newsletter" href="https://buttondown.com/AidanMJ25" target="_blank" rel="noopener">Newsletter via Email</a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--rss" href="https://blog.aidanmaurinjones.com/newsletter/index.xml" target="_blank" rel="noopener" aria-label="Newsletter via RSS">
      <svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M6.18 17.82a1.82 1.82 0 1 1 0-3.64 1.82 1.82 0 0 1 0 3.64Zm-3-8.18v2.73a8.64 8.64 0 0 1 8.64 8.64h2.73A11.36 11.36 0 0 0 3.18 9.64Zm0-4.09v2.73A15.45 15.45 0 0 1 18.55 23h2.73C21.27 11.73 12.45 2.91 3.18 5.55Z"/></svg>
      <span>Newsletter via RSS</span>
    </a>
  </div>
</div>

]]></content:encoded></item><item><title>Giving My Thermal Receipt Printer a Proper Home Assistant Integration</title><link>https://blog.aidanmaurinjones.com/posts/giving-my-thermal-receipt-printer-a-proper-home-assistant-integration--/</link><guid isPermaLink="true">https://blog.aidanmaurinjones.com/posts/giving-my-thermal-receipt-printer-a-proper-home-assistant-integration--/</guid><pubDate>Wed, 11 Nov 2026 00:00:00 +0000</pubDate><description><![CDATA[<p>I&rsquo;ve always had a soft spot for hardware that can be repurposed to do something its manufacturer probably never intended. Sometimes that means building a custom controller for an old device. Other times, it means connecting an inexpensive piece of hardware to Home Assistant and discovering just how much functionality can be squeezed out of it.</p>
<p>My latest project falls firmly into the second category: a small, 58mm thermal receipt printer called the QR701.</p>
<p>A while ago, I started experimenting with the QR701 and an ESP32, eventually developing a <a href="https://github.com/AidanMJ25/QR701-ESPHome-External-Component">custom ESPHome component</a> that could print text, Markdown, QR codes, and barcodes directly from Home Assistant. It worked, and it was a fun project. However, as I continued working on it, I began wondering whether there was another way to integrate the printer with Home Assistant.</p>
<p>The result is <a href="https://github.com/AidanMJ25/QR701-HA-Integration">QR701 Thermal Printer for Home Assistant</a>, a custom integration that takes a different approach to controlling the printer. Rather than requiring the custom firmware component to handle every print request, it uses ESPHome&rsquo;s Serial Proxy functionality to give Home Assistant access to the printer&rsquo;s serial connection.</p>
<p>It&rsquo;s a relatively small architectural change, but one that opens up some interesting possibilities.</p>
<h3 id="from-esphome-component-to-home-assistant-integration">From ESPHome Component to Home Assistant Integration</h3>
<p>The QR701 is a fairly ordinary thermal receipt printer. It prints on inexpensive rolls of paper, communicates using serial commands, and supports the ESC/POS command set commonly associated with receipt printers.</p>
<p>There isn&rsquo;t anything particularly remarkable about the hardware itself. That&rsquo;s partly what makes it interesting.</p>
<p>My original approach was to connect the printer to an ESP32 over UART and develop an external ESPHome component to handle the communication. ESPHome would receive instructions from Home Assistant, translate them into commands the printer understood, and send them over the serial connection.</p>
<p>This worked well enough that I eventually added support for Markdown formatting, QR codes, barcodes, and several Home Assistant entities for interacting with the printer.</p>
<p>However, there was one aspect of the design that I wasn&rsquo;t entirely satisfied with.</p>
<p><strong>ESPHome was doing almost all the work.</strong></p>
<p>The ESP32 wasn&rsquo;t simply providing connectivity. It was responsible for interpreting print requests, formatting content, and communicating with the printer. Any changes to that functionality required updating the custom component and rebuilding the device&rsquo;s firmware.</p>
<p>That&rsquo;s not necessarily a problem, and there are plenty of situations where having an ESP32 operate independently makes perfect sense. In this case, though, I was primarily using the printer through Home Assistant anyway.</p>
<p>I wanted to explore whether Home Assistant could handle the printing itself, without taking away the functionality I&rsquo;d already built into ESPHome.</p>
<h3 id="enter-esphome-serial-proxy">Enter ESPHome Serial Proxy</h3>
<p>One of the more interesting additions to ESPHome is its <a href="https://esphome.io/components/serial_proxy/">Serial Proxy component</a>.</p>
<p>The idea is straightforward: instead of requiring an ESP32 to understand the protocol of every serial device connected to it, ESPHome can expose the serial connection to Home Assistant.</p>
<p>Home Assistant can then communicate with that device through its existing ESPHome connection.</p>
<p>For the QR701, this means the ESP32 can also function as something closer to a wireless serial adapter.</p>
<p>The printer remains physically connected to the ESP32, but Home Assistant can generate ESC/POS commands, format receipts, and manage print jobs through the new integration.</p>
<p>The communication path looks something like this:</p>
<p><strong>Home Assistant → ESPHome Serial Proxy → ESP32 UART → QR701 Printer</strong></p>
<p>What I particularly like about this approach is that it doesn&rsquo;t require another network service running on the ESP32.</p>
<p>There&rsquo;s no separate TCP-to-serial server, no MQTT broker, and no additional cloud service. Serial Proxy uses the existing ESPHome API connection, including its authentication.</p>
<p>The ESP32 handles the hardware connection while Home Assistant can take care of the printing logic.</p>
<p>It also means future changes to the Home Assistant integration can happen without repeatedly flashing the ESP32.</p>
<p><strong>Importantly, the original ESPHome component and Serial Proxy can coexist.</strong> Adding Serial Proxy doesn&rsquo;t inherently mean abandoning the custom QR701 component or its existing ESPHome functionality.</p>
<p>This gives me the flexibility to continue using the ESPHome implementation while also experimenting with a more conventional Home Assistant integration. Both provide different ways of interacting with the same physical printer, although print requests still need to be coordinated to avoid conflicting serial traffic.</p>
<h3 id="making-the-printer-feel-like-a-home-assistant-device">Making the Printer Feel Like a Home Assistant Device</h3>
<p>Moving printing functionality into Home Assistant would be considerably less interesting if it meant sacrificing the convenience of the original ESPHome component.</p>
<p>Fortunately, the integration is designed to expose the printer as a conventional Home Assistant device, complete with entities, configuration options, and actions.</p>
<p>After installation, the QR701 can be added through Home Assistant&rsquo;s Devices &amp; Services interface. The setup process allows you to select the appropriate serial connection, configure the baud rate, and optionally enable hardware status reporting.</p>
<p>Once configured, the integration provides controls for printing text, Markdown, QR codes, and barcodes, alongside buttons for feeding paper and refreshing the printer&rsquo;s status.</p>
<p>It also includes text fields for preparing print jobs and options for adjusting QR code size and error correction.</p>
<p>One particularly useful feature is that the integration restores saved text drafts and QR code settings after a restart. This makes it possible to prepare commonly used print jobs without having to recreate them every time.</p>
<p>For longer receipts, Home Assistant actions can accept the content directly, avoiding the character limits associated with text entities.</p>
<p>The integration also includes optional status reporting for conditions such as paper running out, the printer cover being open, or a printer error.</p>
<p>That last feature depends on the particular printer revision supporting the necessary status commands and having a correctly wired return serial connection. It&rsquo;s not something that can be assumed to work on every QR701.</p>
<p>Nevertheless, bringing these controls together under a dedicated Home Assistant integration makes the printer considerably more approachable than a collection of custom ESPHome actions.</p>
<h3 id="printing-markdown-qr-codes-and-barcodes">Printing Markdown, QR Codes, and Barcodes</h3>
<p>One of the features I was particularly interested in preserving was Markdown support.</p>
<p>I&rsquo;ve become increasingly comfortable using Markdown for everything from notes to documentation, and it seemed like a natural way to generate formatted receipts without having to write raw ESC/POS commands.</p>
<p>The integration supports a practical subset of Markdown, including headings, emphasis, lists, block quotes, links, horizontal rules, and code blocks.</p>
<p>For example, a Home Assistant automation can send something like this:</p>
<pre><code>action: qr701.print_markdown
data:
  device_id: YOUR_QR701_DEVICE_ID
  text: |-
    # Shopping List

    **Don't forget:**

    - Coffee
    - Milk
    - Bread

    ---

    Printed by Home Assistant
</code></pre>
<p>Home Assistant handles the formatting and sends the appropriate commands to the printer.</p>
<p>Naturally, there are limitations. We&rsquo;re still dealing with a 58mm receipt printer, not a laser printer. Standard text wraps at approximately 32 characters, and formatting options depend on what the printer&rsquo;s firmware supports.</p>
<p>Markdown images, tables, and arbitrary HTML or CSS aren&rsquo;t supported. Printable text is also restricted to portable ASCII characters, while QR code data can use UTF-8.</p>
<p>Still, for simple receipts, lists, reminders, and other short documents, Markdown is a convenient alternative to manually constructing printer commands.</p>
<p>QR codes are another feature I wanted to retain.</p>
<p>The integration can generate native QR codes with configurable module sizes and error correction levels. This makes it possible to print URLs, short pieces of text, or other information that can be scanned with a phone.</p>
<p>Barcode printing is supported too, including Code 128, EAN, UPC, and several other common formats.</p>
<p>I don&rsquo;t have a particularly pressing need to print barcodes around the house, but that&rsquo;s never been a compelling reason not to add a feature to a project.</p>
<h3 id="a-printer-that-can-participate-in-automations">A Printer That Can Participate in Automations</h3>
<p>The more interesting part of integrating a receipt printer with Home Assistant isn&rsquo;t necessarily printing something manually. It&rsquo;s being able to incorporate physical printing into automations.</p>
<p>Home Assistant already knows an enormous amount about what&rsquo;s happening around the house. It can track schedules, monitor sensors, respond to events, and gather information from other integrations.</p>
<p>Giving it access to a printer creates another way to act on that information.</p>
<p>A few possibilities immediately come to mind.</p>
<p>A shopping list could be printed before heading out. A QR code could provide quick access to a frequently used webpage. A short summary of sensor readings could be printed for troubleshooting. A daily schedule could be turned into a physical receipt.</p>
<p>There&rsquo;s something appealing about taking information that normally exists only on a screen and turning it into a small piece of paper.</p>
<p>Of course, not everything needs to be printed. In most situations, a notification on my phone is considerably more practical.</p>
<p>But that&rsquo;s not really the point.</p>
<p>The appeal is having another output device available to Home Assistant, particularly one that&rsquo;s inexpensive, local, and simple enough to integrate into almost any automation.</p>
<h3 id="keeping-everything-local">Keeping Everything Local</h3>
<p>One of my longstanding preferences with home automation is to avoid unnecessary cloud services and proprietary dependencies.</p>
<p>I&rsquo;m perfectly happy to use commercial hardware, but I generally want it to continue functioning without relying on an external server.</p>
<p>The QR701 fits that philosophy nicely.</p>
<p>The printer itself doesn&rsquo;t have an internet connection, a companion app, or an account system. It accepts commands over a serial connection and prints whatever it&rsquo;s told to print.</p>
<p>By combining it with ESPHome and Home Assistant, the entire system can operate locally.</p>
<p>The ESP32 provides connectivity, Home Assistant can handle the printing logic, and the printer produces the output.</p>
<p>There isn&rsquo;t much more to it.</p>
<p>I also appreciate that Serial Proxy allows the ESP32 to expose hardware functionality without requiring every feature to be implemented in firmware.</p>
<p>That doesn&rsquo;t mean the original ESPHome component is suddenly redundant. I still see value in having printing functionality available directly on the ESP32, independently of Home Assistant.</p>
<p>The benefit is having another option.</p>
<p>For some tasks, the existing ESPHome component makes perfect sense. For others, a dedicated Home Assistant integration is a more convenient place to manage the functionality.</p>
<p>Being able to use both approaches gives me considerably more flexibility than having to commit exclusively to one.</p>
<h3 id="installation-and-the-current-state-of-the-project">Installation and the Current State of the Project</h3>
<p>The integration is available on <a href="https://github.com/AidanMJ25/QR701-HA-Integration">GitHub</a>, along with installation instructions and an example ESPHome configuration.</p>
<p>It targets Home Assistant 2026.11 or newer and requires an ESPHome device with Serial Proxy support.</p>
<p>Installation can be performed manually by copying the custom integration into Home Assistant&rsquo;s <code>custom_components</code> directory, or through HACS by adding the repository as a custom integration.</p>
<p>The ESPHome configuration needs to expose the printer&rsquo;s serial connection through Serial Proxy. This can coexist with the original QR701 external component in a compatible configuration, rather than necessarily replacing it.</p>
<p>Once everything is configured, the printer can be added through Home Assistant&rsquo;s integration setup interface.</p>
<p>There are a few limitations worth mentioning.</p>
<p>The integration currently uses native ESC/POS commands for QR codes and barcodes, meaning compatibility depends on the printer&rsquo;s firmware. There isn&rsquo;t a raster graphics fallback for devices that don&rsquo;t support those commands.</p>
<p>Hardware status reporting is optional, and not every QR701 revision necessarily supports it.</p>
<p>Print jobs are serialized and transmitted in paced chunks to accommodate the printer&rsquo;s relatively small buffers. However, the integration doesn&rsquo;t automatically retry partially transmitted jobs, which avoids the possibility of unexpectedly printing duplicate receipts.</p>
<p>The project also remains in an early stage of development. The repository includes standalone tests and Home Assistant integration tests, but its documented validation does not yet establish successful operation on a live Home Assistant installation with physical printer hardware.</p>
<p>In other words, this is still a project for people who are comfortable experimenting, rather than something I&rsquo;d recommend deploying unattended without testing it on their own hardware first.</p>
<h3 id="a-small-project-with-a-bigger-lesson">A Small Project With a Bigger Lesson</h3>
<p>What started as an experiment with an inexpensive receipt printer has turned into a useful opportunity to explore two different approaches to integrating serial hardware with Home Assistant.</p>
<p>The original ESPHome component demonstrated how much functionality could be built directly into an ESP32. The new Home Assistant integration demonstrates how some of that functionality can instead be handled within Home Assistant through Serial Proxy.</p>
<p>And the particularly interesting part is that these approaches don&rsquo;t have to be mutually exclusive.</p>
<p>For the QR701, that means more conventional Home Assistant controls, the ability to develop integration features without continually rebuilding firmware, and the option to retain the existing ESPHome functionality.</p>
<p>It&rsquo;s also a reminder of one of the things I enjoy most about working with ESPHome and Home Assistant: relatively ordinary hardware can become surprisingly capable with a little experimentation.</p>
<p>Do I actually need a thermal receipt printer connected to my smart home?</p>
<p>Absolutely not.</p>
<p>But now that I have one, I can think of quite a few things I&rsquo;d like it to print.</p>
<p>And that&rsquo;s usually how these projects begin.</p>
<p><strong>Project Links</strong></p>
<ul>
<li><a href="https://github.com/AidanMJ25/QR701-HA-Integration">QR701 Home Assistant Integration</a></li>
<li><a href="https://github.com/AidanMJ25/QR701-ESPHome-External-Component">Original QR701 ESPHome External Component</a></li>
<li><a href="https://esphome.io/components/serial_proxy/">ESPHome Serial Proxy Documentation</a></li>
</ul>
<div class="amj-cta" aria-label="Support and subscription links">
  <div class="amj-cta__item amj-cta__item--coffee">
    <a class="amj-cta__button amj-cta__button--coffee" href="https://www.buymeacoffee.com/AidanMJ25" target="_blank" rel="noopener">
      <span>Buy Me a Coffee</span>
    </a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--rss" href="https://blog.aidanmaurinjones.com/posts/index.xml" target="_blank" rel="noopener" aria-label="Subscribe via RSS">
      <svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M6.18 17.82a1.82 1.82 0 1 1 0-3.64 1.82 1.82 0 0 1 0 3.64Zm-3-8.18v2.73a8.64 8.64 0 0 1 8.64 8.64h2.73A11.36 11.36 0 0 0 3.18 9.64Zm0-4.09v2.73A15.45 15.45 0 0 1 18.55 23h2.73C21.27 11.73 12.45 2.91 3.18 5.55Z"/></svg>
      <span>Subscribe via RSS</span>
    </a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--newsletter" href="https://buttondown.com/AidanMJ25" target="_blank" rel="noopener">Newsletter via Email</a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--rss" href="https://blog.aidanmaurinjones.com/newsletter/index.xml" target="_blank" rel="noopener" aria-label="Newsletter via RSS">
      <svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M6.18 17.82a1.82 1.82 0 1 1 0-3.64 1.82 1.82 0 0 1 0 3.64Zm-3-8.18v2.73a8.64 8.64 0 0 1 8.64 8.64h2.73A11.36 11.36 0 0 0 3.18 9.64Zm0-4.09v2.73A15.45 15.45 0 0 1 18.55 23h2.73C21.27 11.73 12.45 2.91 3.18 5.55Z"/></svg>
      <span>Newsletter via RSS</span>
    </a>
  </div>
</div>

]]></description><content:encoded><![CDATA[<p>I&rsquo;ve always had a soft spot for hardware that can be repurposed to do something its manufacturer probably never intended. Sometimes that means building a custom controller for an old device. Other times, it means connecting an inexpensive piece of hardware to Home Assistant and discovering just how much functionality can be squeezed out of it.</p>
<p>My latest project falls firmly into the second category: a small, 58mm thermal receipt printer called the QR701.</p>
<p>A while ago, I started experimenting with the QR701 and an ESP32, eventually developing a <a href="https://github.com/AidanMJ25/QR701-ESPHome-External-Component">custom ESPHome component</a> that could print text, Markdown, QR codes, and barcodes directly from Home Assistant. It worked, and it was a fun project. However, as I continued working on it, I began wondering whether there was another way to integrate the printer with Home Assistant.</p>
<p>The result is <a href="https://github.com/AidanMJ25/QR701-HA-Integration">QR701 Thermal Printer for Home Assistant</a>, a custom integration that takes a different approach to controlling the printer. Rather than requiring the custom firmware component to handle every print request, it uses ESPHome&rsquo;s Serial Proxy functionality to give Home Assistant access to the printer&rsquo;s serial connection.</p>
<p>It&rsquo;s a relatively small architectural change, but one that opens up some interesting possibilities.</p>
<h3 id="from-esphome-component-to-home-assistant-integration">From ESPHome Component to Home Assistant Integration</h3>
<p>The QR701 is a fairly ordinary thermal receipt printer. It prints on inexpensive rolls of paper, communicates using serial commands, and supports the ESC/POS command set commonly associated with receipt printers.</p>
<p>There isn&rsquo;t anything particularly remarkable about the hardware itself. That&rsquo;s partly what makes it interesting.</p>
<p>My original approach was to connect the printer to an ESP32 over UART and develop an external ESPHome component to handle the communication. ESPHome would receive instructions from Home Assistant, translate them into commands the printer understood, and send them over the serial connection.</p>
<p>This worked well enough that I eventually added support for Markdown formatting, QR codes, barcodes, and several Home Assistant entities for interacting with the printer.</p>
<p>However, there was one aspect of the design that I wasn&rsquo;t entirely satisfied with.</p>
<p><strong>ESPHome was doing almost all the work.</strong></p>
<p>The ESP32 wasn&rsquo;t simply providing connectivity. It was responsible for interpreting print requests, formatting content, and communicating with the printer. Any changes to that functionality required updating the custom component and rebuilding the device&rsquo;s firmware.</p>
<p>That&rsquo;s not necessarily a problem, and there are plenty of situations where having an ESP32 operate independently makes perfect sense. In this case, though, I was primarily using the printer through Home Assistant anyway.</p>
<p>I wanted to explore whether Home Assistant could handle the printing itself, without taking away the functionality I&rsquo;d already built into ESPHome.</p>
<h3 id="enter-esphome-serial-proxy">Enter ESPHome Serial Proxy</h3>
<p>One of the more interesting additions to ESPHome is its <a href="https://esphome.io/components/serial_proxy/">Serial Proxy component</a>.</p>
<p>The idea is straightforward: instead of requiring an ESP32 to understand the protocol of every serial device connected to it, ESPHome can expose the serial connection to Home Assistant.</p>
<p>Home Assistant can then communicate with that device through its existing ESPHome connection.</p>
<p>For the QR701, this means the ESP32 can also function as something closer to a wireless serial adapter.</p>
<p>The printer remains physically connected to the ESP32, but Home Assistant can generate ESC/POS commands, format receipts, and manage print jobs through the new integration.</p>
<p>The communication path looks something like this:</p>
<p><strong>Home Assistant → ESPHome Serial Proxy → ESP32 UART → QR701 Printer</strong></p>
<p>What I particularly like about this approach is that it doesn&rsquo;t require another network service running on the ESP32.</p>
<p>There&rsquo;s no separate TCP-to-serial server, no MQTT broker, and no additional cloud service. Serial Proxy uses the existing ESPHome API connection, including its authentication.</p>
<p>The ESP32 handles the hardware connection while Home Assistant can take care of the printing logic.</p>
<p>It also means future changes to the Home Assistant integration can happen without repeatedly flashing the ESP32.</p>
<p><strong>Importantly, the original ESPHome component and Serial Proxy can coexist.</strong> Adding Serial Proxy doesn&rsquo;t inherently mean abandoning the custom QR701 component or its existing ESPHome functionality.</p>
<p>This gives me the flexibility to continue using the ESPHome implementation while also experimenting with a more conventional Home Assistant integration. Both provide different ways of interacting with the same physical printer, although print requests still need to be coordinated to avoid conflicting serial traffic.</p>
<h3 id="making-the-printer-feel-like-a-home-assistant-device">Making the Printer Feel Like a Home Assistant Device</h3>
<p>Moving printing functionality into Home Assistant would be considerably less interesting if it meant sacrificing the convenience of the original ESPHome component.</p>
<p>Fortunately, the integration is designed to expose the printer as a conventional Home Assistant device, complete with entities, configuration options, and actions.</p>
<p>After installation, the QR701 can be added through Home Assistant&rsquo;s Devices &amp; Services interface. The setup process allows you to select the appropriate serial connection, configure the baud rate, and optionally enable hardware status reporting.</p>
<p>Once configured, the integration provides controls for printing text, Markdown, QR codes, and barcodes, alongside buttons for feeding paper and refreshing the printer&rsquo;s status.</p>
<p>It also includes text fields for preparing print jobs and options for adjusting QR code size and error correction.</p>
<p>One particularly useful feature is that the integration restores saved text drafts and QR code settings after a restart. This makes it possible to prepare commonly used print jobs without having to recreate them every time.</p>
<p>For longer receipts, Home Assistant actions can accept the content directly, avoiding the character limits associated with text entities.</p>
<p>The integration also includes optional status reporting for conditions such as paper running out, the printer cover being open, or a printer error.</p>
<p>That last feature depends on the particular printer revision supporting the necessary status commands and having a correctly wired return serial connection. It&rsquo;s not something that can be assumed to work on every QR701.</p>
<p>Nevertheless, bringing these controls together under a dedicated Home Assistant integration makes the printer considerably more approachable than a collection of custom ESPHome actions.</p>
<h3 id="printing-markdown-qr-codes-and-barcodes">Printing Markdown, QR Codes, and Barcodes</h3>
<p>One of the features I was particularly interested in preserving was Markdown support.</p>
<p>I&rsquo;ve become increasingly comfortable using Markdown for everything from notes to documentation, and it seemed like a natural way to generate formatted receipts without having to write raw ESC/POS commands.</p>
<p>The integration supports a practical subset of Markdown, including headings, emphasis, lists, block quotes, links, horizontal rules, and code blocks.</p>
<p>For example, a Home Assistant automation can send something like this:</p>
<pre><code>action: qr701.print_markdown
data:
  device_id: YOUR_QR701_DEVICE_ID
  text: |-
    # Shopping List

    **Don't forget:**

    - Coffee
    - Milk
    - Bread

    ---

    Printed by Home Assistant
</code></pre>
<p>Home Assistant handles the formatting and sends the appropriate commands to the printer.</p>
<p>Naturally, there are limitations. We&rsquo;re still dealing with a 58mm receipt printer, not a laser printer. Standard text wraps at approximately 32 characters, and formatting options depend on what the printer&rsquo;s firmware supports.</p>
<p>Markdown images, tables, and arbitrary HTML or CSS aren&rsquo;t supported. Printable text is also restricted to portable ASCII characters, while QR code data can use UTF-8.</p>
<p>Still, for simple receipts, lists, reminders, and other short documents, Markdown is a convenient alternative to manually constructing printer commands.</p>
<p>QR codes are another feature I wanted to retain.</p>
<p>The integration can generate native QR codes with configurable module sizes and error correction levels. This makes it possible to print URLs, short pieces of text, or other information that can be scanned with a phone.</p>
<p>Barcode printing is supported too, including Code 128, EAN, UPC, and several other common formats.</p>
<p>I don&rsquo;t have a particularly pressing need to print barcodes around the house, but that&rsquo;s never been a compelling reason not to add a feature to a project.</p>
<h3 id="a-printer-that-can-participate-in-automations">A Printer That Can Participate in Automations</h3>
<p>The more interesting part of integrating a receipt printer with Home Assistant isn&rsquo;t necessarily printing something manually. It&rsquo;s being able to incorporate physical printing into automations.</p>
<p>Home Assistant already knows an enormous amount about what&rsquo;s happening around the house. It can track schedules, monitor sensors, respond to events, and gather information from other integrations.</p>
<p>Giving it access to a printer creates another way to act on that information.</p>
<p>A few possibilities immediately come to mind.</p>
<p>A shopping list could be printed before heading out. A QR code could provide quick access to a frequently used webpage. A short summary of sensor readings could be printed for troubleshooting. A daily schedule could be turned into a physical receipt.</p>
<p>There&rsquo;s something appealing about taking information that normally exists only on a screen and turning it into a small piece of paper.</p>
<p>Of course, not everything needs to be printed. In most situations, a notification on my phone is considerably more practical.</p>
<p>But that&rsquo;s not really the point.</p>
<p>The appeal is having another output device available to Home Assistant, particularly one that&rsquo;s inexpensive, local, and simple enough to integrate into almost any automation.</p>
<h3 id="keeping-everything-local">Keeping Everything Local</h3>
<p>One of my longstanding preferences with home automation is to avoid unnecessary cloud services and proprietary dependencies.</p>
<p>I&rsquo;m perfectly happy to use commercial hardware, but I generally want it to continue functioning without relying on an external server.</p>
<p>The QR701 fits that philosophy nicely.</p>
<p>The printer itself doesn&rsquo;t have an internet connection, a companion app, or an account system. It accepts commands over a serial connection and prints whatever it&rsquo;s told to print.</p>
<p>By combining it with ESPHome and Home Assistant, the entire system can operate locally.</p>
<p>The ESP32 provides connectivity, Home Assistant can handle the printing logic, and the printer produces the output.</p>
<p>There isn&rsquo;t much more to it.</p>
<p>I also appreciate that Serial Proxy allows the ESP32 to expose hardware functionality without requiring every feature to be implemented in firmware.</p>
<p>That doesn&rsquo;t mean the original ESPHome component is suddenly redundant. I still see value in having printing functionality available directly on the ESP32, independently of Home Assistant.</p>
<p>The benefit is having another option.</p>
<p>For some tasks, the existing ESPHome component makes perfect sense. For others, a dedicated Home Assistant integration is a more convenient place to manage the functionality.</p>
<p>Being able to use both approaches gives me considerably more flexibility than having to commit exclusively to one.</p>
<h3 id="installation-and-the-current-state-of-the-project">Installation and the Current State of the Project</h3>
<p>The integration is available on <a href="https://github.com/AidanMJ25/QR701-HA-Integration">GitHub</a>, along with installation instructions and an example ESPHome configuration.</p>
<p>It targets Home Assistant 2026.11 or newer and requires an ESPHome device with Serial Proxy support.</p>
<p>Installation can be performed manually by copying the custom integration into Home Assistant&rsquo;s <code>custom_components</code> directory, or through HACS by adding the repository as a custom integration.</p>
<p>The ESPHome configuration needs to expose the printer&rsquo;s serial connection through Serial Proxy. This can coexist with the original QR701 external component in a compatible configuration, rather than necessarily replacing it.</p>
<p>Once everything is configured, the printer can be added through Home Assistant&rsquo;s integration setup interface.</p>
<p>There are a few limitations worth mentioning.</p>
<p>The integration currently uses native ESC/POS commands for QR codes and barcodes, meaning compatibility depends on the printer&rsquo;s firmware. There isn&rsquo;t a raster graphics fallback for devices that don&rsquo;t support those commands.</p>
<p>Hardware status reporting is optional, and not every QR701 revision necessarily supports it.</p>
<p>Print jobs are serialized and transmitted in paced chunks to accommodate the printer&rsquo;s relatively small buffers. However, the integration doesn&rsquo;t automatically retry partially transmitted jobs, which avoids the possibility of unexpectedly printing duplicate receipts.</p>
<p>The project also remains in an early stage of development. The repository includes standalone tests and Home Assistant integration tests, but its documented validation does not yet establish successful operation on a live Home Assistant installation with physical printer hardware.</p>
<p>In other words, this is still a project for people who are comfortable experimenting, rather than something I&rsquo;d recommend deploying unattended without testing it on their own hardware first.</p>
<h3 id="a-small-project-with-a-bigger-lesson">A Small Project With a Bigger Lesson</h3>
<p>What started as an experiment with an inexpensive receipt printer has turned into a useful opportunity to explore two different approaches to integrating serial hardware with Home Assistant.</p>
<p>The original ESPHome component demonstrated how much functionality could be built directly into an ESP32. The new Home Assistant integration demonstrates how some of that functionality can instead be handled within Home Assistant through Serial Proxy.</p>
<p>And the particularly interesting part is that these approaches don&rsquo;t have to be mutually exclusive.</p>
<p>For the QR701, that means more conventional Home Assistant controls, the ability to develop integration features without continually rebuilding firmware, and the option to retain the existing ESPHome functionality.</p>
<p>It&rsquo;s also a reminder of one of the things I enjoy most about working with ESPHome and Home Assistant: relatively ordinary hardware can become surprisingly capable with a little experimentation.</p>
<p>Do I actually need a thermal receipt printer connected to my smart home?</p>
<p>Absolutely not.</p>
<p>But now that I have one, I can think of quite a few things I&rsquo;d like it to print.</p>
<p>And that&rsquo;s usually how these projects begin.</p>
<p><strong>Project Links</strong></p>
<ul>
<li><a href="https://github.com/AidanMJ25/QR701-HA-Integration">QR701 Home Assistant Integration</a></li>
<li><a href="https://github.com/AidanMJ25/QR701-ESPHome-External-Component">Original QR701 ESPHome External Component</a></li>
<li><a href="https://esphome.io/components/serial_proxy/">ESPHome Serial Proxy Documentation</a></li>
</ul>
<div class="amj-cta" aria-label="Support and subscription links">
  <div class="amj-cta__item amj-cta__item--coffee">
    <a class="amj-cta__button amj-cta__button--coffee" href="https://www.buymeacoffee.com/AidanMJ25" target="_blank" rel="noopener">
      <span>Buy Me a Coffee</span>
    </a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--rss" href="https://blog.aidanmaurinjones.com/posts/index.xml" target="_blank" rel="noopener" aria-label="Subscribe via RSS">
      <svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M6.18 17.82a1.82 1.82 0 1 1 0-3.64 1.82 1.82 0 0 1 0 3.64Zm-3-8.18v2.73a8.64 8.64 0 0 1 8.64 8.64h2.73A11.36 11.36 0 0 0 3.18 9.64Zm0-4.09v2.73A15.45 15.45 0 0 1 18.55 23h2.73C21.27 11.73 12.45 2.91 3.18 5.55Z"/></svg>
      <span>Subscribe via RSS</span>
    </a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--newsletter" href="https://buttondown.com/AidanMJ25" target="_blank" rel="noopener">Newsletter via Email</a>
  </div>

  <div class="amj-cta__item">
    <a class="amj-cta__button amj-cta__button--rss" href="https://blog.aidanmaurinjones.com/newsletter/index.xml" target="_blank" rel="noopener" aria-label="Newsletter via RSS">
      <svg width="18" height="18" viewBox="0 0 24 24" aria-hidden="true"><path d="M6.18 17.82a1.82 1.82 0 1 1 0-3.64 1.82 1.82 0 0 1 0 3.64Zm-3-8.18v2.73a8.64 8.64 0 0 1 8.64 8.64h2.73A11.36 11.36 0 0 0 3.18 9.64Zm0-4.09v2.73A15.45 15.45 0 0 1 18.55 23h2.73C21.27 11.73 12.45 2.91 3.18 5.55Z"/></svg>
      <span>Newsletter via RSS</span>
    </a>
  </div>
</div>

]]></content:encoded></item></channel></rss>