Skip to main content
100%

Gist 51d73414b163626dccd6ae63005f03dc

✓ Published0🌍 Public
UUtopiah
Last edited Apr 16, 2020
Created on Apr 15, 2020

This example demonstrates a web server that forwards a PDF from a URL directly to a reMarkable tablet. It shows how an HTTP request containing a `pdf` query parameter triggers a download and upload cycle, ultimately returning the uploaded document’s ID as JSON. The code uses Express with CORS for the server, Node’s `https` module for fetching the remote PDF, and the `remarkable-typescript` library to authenticate via a device token and upload the file. The visualization’s behavior is purely functional, with no graphical rendering involved.

AI-generated description

Similar vizzes