Comment by 0xferruccio
6 days ago
I use rmapi-js (https://github.com/erikbrinkman/rmapi-js) to authenticate, which allows you to get a token you can use to send digests to the device
I use postmark because it's supposed to get emails in your inbox and because I already had an account on it. I'll see what I can do to not make it go in spam :P
Most of the complexity in the product is in:
- Scraping RSS feeds (have to use proxies to extract html and mirror all the images so that I can embed them in the digest)
- Generate PDFs of exactly the right format using Puppeteer (using cloudflare workers for this)
Super interesting! I can assume that it is quite complex to scrape all of the RSS feeds and build the PDF. I will make sure to play with it.
Doesn’t rmapi-is give you read access to the user’s remarkable library as well?
Any chance you’d be willing to release source code for self-hosting?
Theoretically yes! Unfortunately there's no API with more restrictive permissions :P
Good point around releasing the source code for self-hosting. The only painful parts are that I two commercial services here and there for stealth proxying requests to fetch articles like (https://www.scrapingbee.com/) and Puppeteer on Cloudflare Workers (https://developers.cloudflare.com/browser-rendering/platform...) to generate PDFs, so it's like $50/month to self-host something that actually works
But maybe if I open source this others can contribute too and find ways to make this cheaper to run