One button. A quieter read.

Let readers take an article into Spek without an account, an upload or anything on your server.

your-site.com/article

The shape of a good idea

Ideas deserve a place where they can be heard without competing for the screen.

Read in Spek

How it travels

  • Your pageThe button reads the article text you point it at, or the reader's selection.
  • The handoffThe text is compressed into the part of the link after the #, which browsers never send to a server.
  • SpekThe reader decodes it in the browser, clears it from the address bar and prepares it to be read.

Adding it

  • Mark the contentGive the article and its heading an ID, or use selectors your page already has.
  • Add the buttonPoint data-spek-content and data-spek-title at those selectors.
  • Load the helperInclude Spek's small script once. It does the extracting, compressing and redirect.

The whole integration

<h1 id="article-title">Article title</h1>

<article id="article-body">
  Your article content…
</article>

<button
  type="button"
  data-read-in-spek
  data-spek-content="#article-body"
  data-spek-title="#article-title"
>
  Read in Spek
</button>

<script
  src="https://your-spek.example/read-in-spek.js"
  data-spek-url="https://your-spek.example/read"
  defer
></script>

The Spek address is filled in for you on this page.

Details

  • SelectionsIf a reader selects a passage first, only that passage opens.
  • No uploadThe text is gzip-compressed into the link fragment, which isn't part of the request to Spek.
  • A clean arrivalSpek removes the fragment straight away, then prepares the article in the browser.
  • LimitsImports are capped at 64 KiB encoded and 250,000 characters decoded. Longer work can be opened as a file.

Made by Aakash Reddy. What you open stays in this browser.