GithubHelp home page GithubHelp logo

lazykern / kindle-cloud-reader-rpc Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 2.32 MB

An extension that enables Discord rich presence for Amazon Kindle Cloud Reader

License: MIT License

Python 46.33% TypeScript 53.67%
discord-rich-presence kindle

kindle-cloud-reader-rpc's Introduction

Kindle Cloud Reader Discord Rich Presence

A chrome extension that enables rich presence for Kindle Cloud Reader

Features

  • Show your activity when you're reading, browsing library, and viewing notebooks

RPC Demo

  • Dark theme and light theme

Icon Demo

Installation

  1. Download the chrome extension from here
  2. Extract the zip file
  3. Go to chrome://extensions/
  4. Turn on Developer mode
  5. Click Load unpacked and select the extracted folder (the folder that contains manifest.json)
  6. Download the rich presence client in releases page
  • For Windows, download kindle-rpc.exe or kindle-rpc-console.exe if you want it to show the console
  • For Linux, download kindle-rpc-linux and run it with ./kindle-rpc-linux
  1. Run the rich presence client
  2. Go to Kindle Cloud Reader and enjoy!
  • Make sure that discord is running
  • If the rich presence doesn't show up, try refreshing the page

Dependencies

  • Extension

    • plasmo (Framework)
    • node.js
    • pnpm or npm
  • Client

    • Python 3.8+
    • pypresence

Development

  • Clone this repository

    git clone https://github.com/lazykern/kindle-cloud-reader-rpc.git
    cd kindle-cloud-reader-rpc
  • Install dependencies for extension

    • using pnpm

      pnpm install
    • using npm

      npm install
  • Build extension

    • Development

      pnpm dev

      or npm run dev

  • Load the built extension inside build/ into the browser

  • Install dependencies for client

    python -m pip install pypresence
  • Run client

    python client.py

kindle-cloud-reader-rpc's People

Contributors

lazykern avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kindle-cloud-reader-rpc's Issues

Not working on books

Hello, the extension is working fine for the "browsing library" status, however, once i open a book my rich presence disappears.
here's the log of when i open kindle cloud > open a book:
127.0.0.1 - - [26/Apr/2024 14:24:08] "DELETE / HTTP/1.1" 200 -
127.0.0.1 - - [26/Apr/2024 14:24:08] "PUT / HTTP/1.1" 200 -
127.0.0.1 - - [26/Apr/2024 14:24:12] "DELETE / HTTP/1.1" 200 -

Don't work?

Hi, I installed the extention and launched the console but nothing happens, the console remains empty and the extention returns these errors on chrome:

Error handling response : TypeError : Cannot read properties of undefined (reading 'length') at chrome-extension://cajbjpmjnojnbfgnmlhgmccahhbnbona/background.23452572.js:1:557 at chrome-extension://cajbjpmjnojnbgnmlhgmccahhbnbona/background.23452572.js:1:778

Runtime.lastError unchecked: Unable to establish connection. Recipient does not exist.

Unchecked runtime.lastError : Message port closed before a response was received.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.