alternative Reddit front-end focused on privacy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
teddit b97adac749 fix toggle-selftext link colors on dark theme 11 hours ago
.github Merge pull request #3 from sethsimmons/main [PR FROM GITHUB] 3 weeks ago
inc show subreddit moderators list on subreddit sidebar (ref #104) 3 days ago
static fix toggle-selftext link colors on dark theme 11 hours ago
views show subreddit moderators list on subreddit sidebar (ref #104) 3 days ago
.dockerignore Added support for Docker, Docker-Compose 4 months ago
.gitignore simplify installation 4 months ago Update '' 3 weeks ago
Dockerfile Use relative paths in Dockerfile 1 week ago
LICENSE add AGPL 3.0 license 4 months ago Additional env variable descriptions 4 days ago
app.js Create upload directories if they don't exist 1 week ago
config.js.template Add configuration for domain_replacements 1 week ago
docker-compose.yml Add healthcheck to docker-compose.yml 1 month ago
package-lock.json fix load more comments (morechildren-endpoint), fixes #122 4 days ago
package.json up version 6 days ago
routes.js add support for setting preferences for privacy domains via URL 14 hours ago


A free and open source alternative Reddit front-end focused on privacy. Inspired by the Nitter project.

  • No JavaScript or ads
  • All requests go through the backend, client never talks to Reddit
  • Prevents Reddit from tracking your IP or JavaScript fingerprint
  • Unofficial API (RSS & JSON support, no rate limits or Reddit account required)
  • Lightweight (teddit frontpage: ~30 HTTP requests with ~270 KB of data downloaded vs. Reddit frontpage: ~190 requests with ~24 MB)
  • Self-hostable. Anyone can setup an instance. An instance can either use Reddit's API with or without OAuth (so Reddit API key is not necessarily needed).

Join the teddit discussion room on Matrix:

XMR: 832ogRwuoSs2JGYg7wJTqshidK7dErgNdfpenQ9dzMghNXQTJRby1xGbqC3gW3GAifRM9E84J91VdMZRjoSJ32nkAZnaCEj

Instances - Official instance

Community instances:




Docker-compose method

docker-compose build
docker-compose up

Teddit should now be running at http://localhost:8080.

Docker image is available at

Environment Variables

The following variables may be set to customize your deployment at runtime.

Variable Description
domain Defines URL for Teddit to use (i.e. Defaults to
use_reddit_oauth Boolean If true, "reddit_app_id" must be set with your own Reddit app ID. If false, Teddit uses Reddit's public API. Defaults to false
cert_dir Defines location of certificates if using HTTPS (i.e. /home/teddit/le/live/ No trailing slash.
theme Automatically theme the user's browser experience. Options are auto, dark, sepia, or you can set white by setting the variable to empty ( '' ). Defaults to auto
flairs_enabled Enables the rendering of user and link flairs on Teddit. Defaults to true
highlight_controversial Enables controversial comments to be indicated by a typographical dagger (†). Defaults to true
api_enabled Teddit API feature. Might increase loads significantly on your instance. Defaults to true
video_enabled Enables video playback within Teddit. Defaults to true
redis_enabled Enables Redis caching. If disabled, does not allow for any caching of Reddit API calls. Defaults to true
redis_db Sets the redis DB name, if required
redis_host Sets the redis host location, if required. Defaults to
redis_password Sets the redis password, if required
redis_port Sets the redis port, if required. Defaults to 6379
ssl_port Sets the SSL port Teddit listens on. Defaults to 8088
nonssl_port Sets the non-SSL port Teddit listens on. Defaults to 8080
listen_address Sets the address Teddit listens for requests on. Defaults to
https_enabled Boolean Sets whether or not to enable HTTPS for Teddit. Defaults to false
redirect_http_to_https Boolean Sets whether to force redirection from HTTP to HTTPS. Defaults to false
redirect_www Boolean Redirects from www to non-www URL. For example, if true, Teddit will redirect to Defaults to false
use_compression Boolean If set to true, Teddit will use the [](Node.js compression middleware) to compress HTTP requests with deflate/gzip. Defaults to true
use_view_cache Boolean If this is set to true, view template compilation caching is enabled. Defaults to false
use_helmet Boolean Recommended to be true when using https. Defaults to false
use_helmet_hsts Boolean Recommended to be true when using https. Defaults to false
trust_proxy Boolean Enable trust_proxy if you are using a reverse proxy like nginx or traefik. Defaults to false
trust_proxy_address Location of trust_proxy. Defaults to
nsfw_enabled Boolean Enable NSFW (over 18) content. If false, a warning is shown to the user before opening any NSFW post. When the NFSW content is disabled, NSFW posts are hidden from subreddits and from user page feeds. Note: Users can set this to true or false from their preferences. Defaults to true
post_comments_sort Defines default sort preference. Options are confidence (default sorting option in Reddit), top, new, controversal, old, random, qa, live. Defaults to confidence
reddit_app_id If "use_reddit_oauth" config key is set to true, you have to obtain your Reddit app ID. For testing purposes it's okay to use this project's default app ID. Create your Reddit app here: Make sure to create an "installed app" type of app. Default is ABfYqdDc9qPh1w


  1. Install Node.js.

  2. (Optional) Install redis-server.

    Highly recommended – it works as a cache for Reddit API calls.

  3. (Optional) Install ffmpeg.

    It's needed if you want to support videos.

    # Linux
    apt install redis-server ffmpeg
    # macOS
    brew install redis
  4. Clone and set up the repository.

    git clone
    cd teddit
    npm install --no-optional
    cp config.js.template config.js # edit the file to suit your environment
    npm start

Teddit should now be running at http://localhost:8080.