A Home-Cooked App to Share Links with Lisa

When Lisa and I were in the first flush of new love, Mondays would see a flurry of texts from me to her, a deluge of sparks and inspirations, pointers and exclamations, all to fill the hole that was left when she and L. returned home to Brighton after a weekend together.

It turns out that text messages are the worst way to run an intra-couple social network: shared objects of fascination get intermixed with requests to pick up milk and warnings about icy sidewalks.

Lisa already has an RSS feedreader purring along on her iPhone, so I realized that I had all the pieces of a solution to this: I could build her a custom RSS feed of things I wanted to share with her, liberating them from the prison of SMS

Here’s how I did it.

First, I built a very simple MacOS Shortcut:

Screen shot of a MacOS Shortcut. Three widgets: the first Receives URLs from the Share Sheet, the second shared the contents of the Share Sheet with a URL, and the third displays a notification confirming that it happened.

This Shortcut—which automagically works on both MacOS and iOS—receives a URL from the “Share Sheet” and sends it to to a URL, as JSON, on a webserver, and then displays a notification that it happened.

In practice, using this from a browser is as simple as clicking the “Share” icon, selecting Shortcuts, and then selecting “To Lisa.”

An iOS screen shot, showing the Share Sheet with the item "To Lisa" on it.

On the server side, I have a PHP script that does the following:

  1. Receives the JSON from the POST, and looks for the ‘url’ payload.
  2. Grabs the page in question, and uses readability.php to turn it into a simple, stripped-down readable chunk of text.
  3. Adds the URL, the page title, the body text from Readability, and the current date, and adds a record to an SQLite database.
  4. Dumps all the URLs in the SQLite database into an RSS feed, which Lisa has subscribed to in her feedreader.

It’s 130 lines of pretty simple PHP.

On Lisa’s end, the feed looks like this:

Screen shot of NetNewsWire, showing the "To Lisa" RSS feed, with two items.

This all took about an hour to put together, and I’m proud of my home cooking.

Peter Rukavina

Comments

Submitted by Todd Gallant on

Permalink

Which RSS Feed Reader is Lisa using? I’ve had Feedly for years, but could never get notifications working properly.

We share a private FreshRSS instance that’s running on the same server that powers this site. On her iPhone Lisa uses Reeder and I use NetNewsWire, both of which sync to FreshRSS. 

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). 

I have been writing here since May 1999: you can explore the 25+ years of blog posts in the archive.

You can subscribe to an RSS feed of posts, an RSS feed of comments, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email. I also publish an OPML blogroll.

Elsewhere: InstagramYouTubeVimeoORCIDOpenStreetMapInternet ArchivePEI.artDrupalGithub.