lib | ||
widgets | ||
.gitignore | ||
delete-old.rkt | ||
gui.rkt | ||
info.rkt | ||
LICENSE | ||
plchat.rkt | ||
README.md | ||
streamer.rkt | ||
unheck-html.rkt |
Tapris version 2 : Still Work In Progress
About
Tapris is a Racket library for working with a Pleroma/Mastodon API. It originally started as a bot for Pleroma, but eventually I wanted to play aroung with the Racket GUI library and see if it is usable for making a simple Pleroma client.
Overview
The main api is provided in lib/api.rkt
. In order to use the API you
need an instance of the client
struct. To obtain it you can use the
functions in lib/auth.rkt
, which by default serialize the client to
the _tapris
file in the current directory.
There is an example gui app in gui.rkt
. We also provide some GUI
widgets in the widgets/
folder.
Other examples: streamer.rkt
, plchat.rkt
Installing
Dependencies:
- base, drracket, gui-lib (all should be in the standard Racket distribution)
- gregor
- memoize
- rfc6455
You can install the dependencies with
raco pkg install gregor memoize rfc6455
You can then run the test gui app with
raco make gui.rkt
racket gui.rkt
or build an executable with
raco exe gui.rkt
Note: the _tapris
file with the serialized tokens does not work interchangably between the executable and bytecode-compiled version!
Known issues
Caveats:
- does not very SSL certificates. see the documentation in net/url
- error handling SUCKS
Contributing
- Implement more API methods.
- Use the API in your app.