rmapi-js

Create and interact with reMarkable cloud.

After getting a device token with the register method, persist it and create api instances using remarkable. Outside of registration, all relevant methods are in RemarkableApi.

Example

A simple fetch

import { register, remarkable } from "rmapi-js";

const code = "..." // eight letter code from https://my.remarkable.com/device/browser/connect
const token = await register(code)
// persist token
const api = await remarkable(token);
const rootEntries = await api.getEntries();
for (const entry of rootEntries) {
const children = await api.getEntries(entry.hash);
for (const { hash, documentId } of children) {
if (documentId.endsWith(".metadata")) {
const meta = api.getMetadata(hash);
// get metadata for entry
console.log(meta);
}
}
}

Example

A simple upload

import { remarkable } from "rmapi-js";

const api = await remarkable(...);
const entry = await api.putEpub("document name", epubBuffer);
await api.create(entry);

Index

Classes

Interfaces

Type Aliases

Variables

Functions