#lemmy #api #comments #proxy #post #access #tafkars

app tafkars-lemmy

API proxy to access Lemmy via the API formerly known as

1 unstable release

0.1.0 Jun 8, 2023

#16 in #lemmy

40 downloads per month

MIT and AGPL-3.0

34KB
556 lines

tafkars-lemmy

Tafkars stands for "The API formerly known as...", is written in Rust and is pronounced like "tough cars".
tafkars-lemmy is an API proxy that allows apps to talk to Lemmy through a familiar API from a kinder time.
The hope is that this will make it easy for app developers to support Lemmy with only minimal code changes.

API implementation status

  • viewing:
    • pagination
    • sorting
    • community post list
    • community sidebar
    • community search
    • posts
    • comments
    • comment threading
    • user about
    • user overview
    • user comments
    • user submitted
    • user search
    • inbox
    • moderation queue
  • posting/interacting:
    • login
    • voting
    • posting
    • commenting
    • direct messages
    • moderation

Help wanted

There is still lots of work to be done. Pull requests welcome!
If you can't code there's still lots of ways you can help:

  • check if your favourite open source 3rd party app can be modified to send API requests to a different URL
  • test if all of the implemented features are working, report any that aren't
  • write documentation

Please contact me here or on Lemmy if you are:

  • a Lemmy instance operator that needs help running this on your instance
  • an app developer that wants to support this

Please do not:

  • spam app developers demanding support for this
  • spam Lemmy instance operators to run this
  • point a public instance of this to a Lemmy instance without the operator's consent

Testing

Clone the repository, execute

cargo run

and follow the instructions. You need an app that allows configuration of the API url. For now, there's a fork of libreddit that connects to localhost that you can use for testing.

Dependencies

~23–40MB
~700K SLoC