Skip to content

jjeanjacques10/medium-kindle-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Medium to Kindle

Logo Project

This is a simple script to convert Medium articles to Kindle format (epub).

Test it at https://medium-kindle-sender.onrender.com/.

Built with

Features

  • Convert Medium articles to epub
  • Website to convert articles
  • Download the epub file
  • Multilanguage support (PT-BR and EN-US)
  • Send the epub file by email
  • Create a CLI
  • Create a browser extension

Usage

  1. Install the required packages:
npm install
  1. Run the script:
npm run start

Environment variables

Create a .env file in the root directory with the following variables:

PORT=3000 # Port where the server will run (default: 3000)
API_KEY=your_api_key # Mailersend API key
EMAIL_SENDER=your_email # Email to send the epub file

Endpoints

  • Website:

    • GET /: Home page
    • GET /how-to-send-to-kindle: Page with instructions on how to send the epub file to Kindle
  • API Endpoints:

    • POST /download: Download the epub file
    • POST /email: Send the epub file by email

Example epub

You can see an example of the generated epub file in articles/ folder.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Developed by Jean Jacques Barros