Skip to content

Bookmarklet to send any web page to your Kindle E-Reader

Notifications You must be signed in to change notification settings

hassansin/send-to-kindle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send to Kindle Bookmarklet

Bookmarklet to send any web page to Kindle E-Reader in just ONE click!

First we need to create a public endpoint that'll do all the tasks of converting to pdf and sending to Kindle device. We'll use Webtask from auth0 to create serverless endpoints.

Requirements:

  1. Get API Key from pdflayer.com/. It'll be used to convert html to pdf.

  2. Get your kindle.com email address: www.amazon.com/gp/sendtokindle/email

  3. Prepare SMTP connection url for your APPROVED email which will be used to send emails to your kindle.com address. For Gmail with 2FA enabled, you can generate App password.

example SMTP configuration value:

smtps://user%40gmail.com:password@smtp.gmail.com

More about SMTP Connection url: nodemailer.com/smtp/

Deployment

  1. Setup Webtask cli tool: github.com/auth0/wt-cli
npm install -g wt-cli
wt init
  1. Clone this repo:
git clone --depth 1 https://github.com/hassansin/send-to-kindle.git
  1. Deploy
export PDFLAYER_APIKEY=YOUR_PDFLAYER_APIKEY
export SMTP_CONFIG=YOUR_SMTP_CONNECTION_URI
export KINDLE_ADDRESS=YOUR_KINDLE_ADDRESS
npm run deploy
  1. Grab the webtask url from the output and run following to genereate the bookmarklet:
npm run bookmarklet YOUR_WEBTASK_URL

Bookmark it and hit the bookmark whenever you want to send any webpage to your Kindle device.

About

Bookmarklet to send any web page to your Kindle E-Reader

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published