An unofficial wrapper for the Storytel API written in TS.
This project is still in development and I don't recommend using it untill v1 is released. The project isn't on NPM yet, so if you want to use the current version you'll have to clone this repository.
To use storytel-api, first install it from NPM:
$ npm i storytel-api
Import it and create a client, this does require you to have an account.
import Storytel from "storytel-api";
const client = new Storytel();
const user = await client.signIn("email", "password");
const bookshelf = await user.getBookshelf();
console.log(`Your last book was ${bookshelf[0].title}`);
I am still working on documentation but haven't found anything that suits my needs (TypeDoc and I didn't get along). If anyone has suggestions feel free to contact me!
To help developing this project, please contact me. I am working on a small guide but it's not my main priority.
- Write proper documentation
- Audiobook features
- Play
- Pause
- Skip
- Set and get bookmark
Features with less priority:
- Editing device type (through client class)
- Editing user info
- Changing password
- Changing username
- Leaving reviews
- Editing reviews
- Deleting reviews