{"id":37149320,"url":"https://github.com/j-tt/lert","last_synced_at":"2026-01-14T17:38:10.950Z","repository":{"id":174092840,"uuid":"651587106","full_name":"J-tt/lert","owner":"J-tt","description":"Translating the Lemmy API into a Reddit-compatible API for use with existing bots and clients.","archived":false,"fork":false,"pushed_at":"2023-06-10T09:53:19.000Z","size":33,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-21T19:54:56.034Z","etag":null,"topics":["lemmy","reddit","reddit-api","reddit-api-wrapper"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/J-tt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-09T15:14:35.000Z","updated_at":"2023-07-13T02:54:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"443116b7-69a4-4996-9898-7dd261f985e7","html_url":"https://github.com/J-tt/lert","commit_stats":null,"previous_names":["j-tt/lert"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/J-tt/lert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-tt%2Flert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-tt%2Flert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-tt%2Flert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-tt%2Flert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/J-tt","download_url":"https://codeload.github.com/J-tt/lert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/J-tt%2Flert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28428891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lemmy","reddit","reddit-api","reddit-api-wrapper"],"created_at":"2026-01-14T17:38:10.472Z","updated_at":"2026-01-14T17:38:10.946Z","avatar_url":"https://github.com/J-tt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeRT\n\n***Le**mmy **R**eddit **Translation** Layer*\n\nThis project aims to translate the Lemmy API to the Reddit API, such that existing Reddit clients can be easily made compatible with Lemmy.\n\nIt is the same effor as [Tafkars](https://github.com/derivator/tafkars/tree/main) but written in Go (as I'm unfamiliar with Rust) and much less featureful (currently).\n\n## Contributing\n\nIf you want to work on mappings, please raise an issue with the feature of the Reddit API you want to emulate before starting, this is to avoid duplicate work.\n\nThe biggest help right now, would be building up a test suite of to ensure compatibility and reproducibility.\n\n## Status\n\nThis is a very early iteration of the software, it's heavily reliant on packages for the Reddit API and the Lemmy API. It is currently intended to support **read only** access.\n\n## Intentions\n\nThe intended functionality for the translation layer is to expose an OAuth endpoint that authenticates the user to their Lemmy homeserver and then returns the JWT from Lemmy as the Access Token.\n\nI'm unsure if this works, if there's someone more familiar with how clients are consuming the API (ie: if they're reading specific contents of the Reddit token_v2 or relying on the older Bearer token) please let me know and I'll work an alternative (worst case, Lemmy authorization will have to be stored locally in the translation layer)\n\nThere will be things that don't translate perfectly, but, the aim is to at least reach support of:\n\n- [ ] User specific frontpage\n- [ ] Single posts and comments\n- [ ] Specific \"subreddit\" browsing and filtering (at least Hot and Top by time)\n\n\n## Mappings\n\nThere are likely aspects I'm missing here, please raise a git issue for additional items that need more complex translations\n\n### Subreddit names\n\nThis mapping will likely break some assumptions that Reddit clients make about Subreddit names returned. As we'll use the \u003cCommunity\u003e@\u003cInstance\u003e format, clients recieving the \"@\" or names exceeding traditional subreddit length may break.\n\nA future feature may be a \"compatability mode\" which removes the \"@\u003cInstance\u003e\" but restricts the clients to only browsing local communities (this could be useful for Bots etc that consume the API, instead of clients, as you'd want to restrict them to local instances regardless) \n\n\n### Fullnames\n\nReddit uses a system called \"Full names\" for comments, posts, etc which use a prefix (t1_ through to t6_) followed by 6 chars of base36.\n\nTo translate this, we'll map the prefix appropriately and then convert the integer representation from Lemmy to base36, and left-pad it be 6 chars with \"0\".\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-tt%2Flert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj-tt%2Flert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-tt%2Flert/lists"}