Repository for the Mastodon/Gotosocial frontend behind https://teadeck.de
  • JavaScript 59.6%
  • TypeScript 30.6%
  • CSS 8.4%
  • HTML 0.6%
  • Shell 0.6%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-25 03:34:47 +00:00
.forgejo/workflows CI: move Node 26 image to 893ea48106e9 2026-11-25 03:34:47 +00:00
container Move the container image to Alpine 3.24.3 2026-10-27 21:31:13 +01:00
docs Update Mastodon to nightly.2026-11-23 2026-11-23 20:59:33 +01:00
integration Update Mastodon to nightly.2026-11-23 2026-11-23 20:59:33 +01:00
patches Update Mastodon to nightly.2026-11-23 2026-11-23 20:59:33 +01:00
scripts Update Mastodon to nightly.2026-10-28 2026-10-28 20:31:01 +01:00
security Initial commit 2026-09-22 20:31:05 +02:00
tests Update Mastodon to nightly.2026-11-23 2026-11-23 20:59:33 +01:00
.dockerignore Initial commit 2026-09-22 20:31:05 +02:00
.env.example Add the Lapsang Souchong and Earl Grey design 2026-10-14 22:12:15 +02:00
.gitignore Initial commit 2026-09-22 20:31:05 +02:00
compose.build.yml Initial commit 2026-09-22 20:31:05 +02:00
compose.test.yml Test in a container, with nginx and in Firefox 2026-10-15 09:20:12 +02:00
compose.yml.example Publish under the Teadeck organization 2026-10-11 13:37:36 +02:00
CONTRIBUTING.md Update Mastodon to nightly.2026-11-17 2026-11-17 15:49:34 +01:00
LICENSE Initial commit 2026-09-22 20:31:05 +02:00
NOTICE Initial commit 2026-09-22 20:31:05 +02:00
package.json chore: add the README screenshot script 2026-10-11 17:40:35 +02:00
README.md Hibiscus: set column titles in Metal Mania 2026-10-27 21:25:35 +01:00
SECURITY.md Initial commit 2026-09-22 20:31:05 +02:00
upstream.lock.json Update Mastodon to nightly.2026-11-23 2026-11-23 20:59:33 +01:00

Teadeck

Teadeck is a standalone version of Mastodon's web interface for Mastodon and GoToSocial servers.

It keeps Mastodon's interface and adds designs of its own, a large composer for longer posts, Markdown with a preview where the server supports it and, on GoToSocial, a choice of who can reply.

Teadeck is still in active development and has no stable release yet.

Teadeck in the multi-column layout with the Assam design: home timeline, notifications and the deployment's logo

Using Teadeck

Open a Teadeck installation, choose your language if needed, enter your server's address and sign in on your server. Choose Stay signed in if you want to save the account in this browser. You can add more accounts and switch between them, each with its own theme and settings.

Your browser talks directly to your Mastodon or GoToSocial server.

Unsent posts are not saved across reloads or account switches. Copy anything you want to keep first.

What to trust

The Teadeck host supplies the JavaScript running in your browser, and that code can access your account tokens. Static hosting does not remove that risk, and the host can log visits. Use an installation you trust, or run your own on a dedicated HTTPS origin.

  • OAuth uses PKCE. Authenticated API requests are restricted to the selected server, and redirects are rejected.
  • Sign-in tokens stay in session storage, or also in IndexedDB when you choose Stay signed in. Preferences are saved in local storage. Code running on the same origin can read all of it.
  • Post HTML comes from your server. Its content sanitisation and Teadeck's Content Security Policy both matter.
  • The service worker caches application files, not API responses.

Features

Layouts and designs

Mastodon's single- and multi-column layouts, with eight designs of Teadeck's own and Mastodon's design to choose from. Hibiscus goes further than the others: chamfered corners, condensed capitals, a metal face for the server's name and the column titles, borderless cards on spaced columns, bolder icons and a fine grain. Lapsang Souchong and Earl Grey are gothic: blackletter titles, ornaments in the corners of posts, pointed-arch avatars, fangs under the logo and an opaque blood-red tea. Layout, design and language are set per account under Settings in the account menu.

The eight designs: Assam, Sencha, Hibiscus and Lapsang Souchong, each dark and light

Post overlay

Open in overlay shows a post with its thread in the middle of the window, without leaving the current view.

A post with its reply in the overlay

Image buttons

With Image buttons beside the images on, hiding a post's images and reading their descriptions move off the images to two symbols beside them, so even four images stay clear. One button shows all descriptions at once. Each design picks its own symbols.

Large composer

The right part of the New post button opens a composer as large as the post overlay, for longer posts. With Markdown on, it previews the post below the text.

The large composer with a Markdown preview

GoToSocial

Posts can be written in Markdown, and the composer's settings choose who can reply to a post. Mastodon features GoToSocial lacks are left out. See Configuration for the details.

The composer's settings menu with "Who can reply" on GoToSocial

Deploying

Docker Compose

The easiest way to run Teadeck is with the published container image. You need Docker and Compose.

Download compose.yml.example and .env.example into the same directory, then run:

cp compose.yml.example compose.yml
cp .env.example .env
mkdir -p logo
docker compose pull
docker compose up -d

The container serves Teadeck on port 8080, published on all host interfaces by default. Open http://localhost:8080 on the Docker host to try it. For public access, put an HTTPS reverse proxy such as Caddy or nginx in front of it.

Use .env to choose a different port, logo or default theme. See Configuration for the options and Deployment for updates and rollbacks.

Without Docker

Build Teadeck as described below, then serve the contents of dist/ with a web server. Use container/nginx.conf as a reference for routing, caching and security headers, adjusting the container-specific paths for your setup. Requests to app routes must fall back to index.html.

With either method, serve Teadeck at the root of a domain, not under a path such as /teadeck. Your Mastodon or GoToSocial server must use HTTPS.

Building

The build fetches the Mastodon commit pinned in upstream.lock.json, applies the changes in patches/ on top and adds the integration code in integration/.

You need a full checkout, Node.js 24.2 or newer, npm, Corepack, Git and GNU tar. The first build downloads Mastodon and its dependencies, so allow several GB of disk space.

From the repository directory, run:

npm run doctor
npm run build:fresh

The finished web app is in dist/. To package your build in a container and run it:

mkdir -p logo
docker compose -f compose.yml.example -f compose.build.yml up -d --build

For development and tests, see Contributing.

License

Teadeck is licensed under AGPL-3.0-or-later, as is Mastodon. See NOTICE for attribution and integration/fonts for font licenses. Each build includes its source code and build instructions at /source.tar.gz.