AniFlow

Documentation

Themes, TV app and debug mode

Optional extras: custom themes, pairing a TV, and the developer tools.

Custom themes

A theme changes the colours and corner rounding of the interface. Choose one under Settings -> General -> Themes; it is applied as soon as you pick it. AniFlow ships three: AniFlow Dark (the default), Daylight (a bright theme) and Midnight (darker and cooler). Your own themes appear in the same list, marked "yours". The panel also shows the author, version and description of the selected theme.

Where a theme goes

A theme is a folder with one file in it, theme.yaml, inside the themes folder of your config folder:

/config/themes/my-theme/theme.yaml

The folder name is the theme's id (what is stored in the theme setting). A single loose file such as themes/my-theme.yaml is not read; it has to be a folder. If your folder has the same name as a built-in theme (aniflow-dark, daylight, midnight), yours replaces it. The easiest start is to copy a built-in theme folder out of the image and edit it, since the built-in files are commented and serve as the reference.

The file

name: Rose
author: you
version: "0.1"
description: The default, with a pink accent.
themes_api: 1
color_scheme: dark
colors:
  accent: "#ff5fa2"
  accent-strong: "#ff86ba"
radius:
  lg: 10px

Colour tokens (all optional): bg, bg-deep, surface, surface-2, surface-3, surface-raised, field, border, border-strong, text, text-dim, text-mute, accent, accent-strong, accent-soft, accent-ink, accent-nav, success, success-border, success-bg, warning, warning-border, danger, danger-border, danger-bg.

Radius tokens (all optional): lg, md, sm. A radius is a number with an optional unit (px, rem, em or %).

A colour may be hex (#rgb, #rgba, #rrggbb, #rrggbbaa), rgb(), rgba(), hsl(), hsla() or transparent. Anything else is refused. A name that is not in the lists above is reported as a likely typo; a bad value is dropped and named on the Settings page, and the rest of the theme still applies.

A theme is only a list of values. It cannot load anything from the network, add its own CSS rules or hide a control; this is deliberate, so that a theme from someone else cannot do more than change how AniFlow looks.

The login page uses the active theme too (its colours are served without a login, and contain colour values only).

Custom themes are in /config and are not part of the built-in Settings -> Backup export; see Backup, restore and updating.

The other config folders

Besides aniflow.yaml and themes, /config has three folders for definition files. You normally manage these from the interface, and the built-in Backup includes them.

FolderWhat it holds
/config/indexersIndexer definitions, one YAML file per site. AniFlow ships none: you add your own. See Indexers and feeds
/config/rss_sourceFeed sources, one YAML file per feed (name, address, whether it is enabled and whether new anime use it by default)
/config/subgroupSubgroup profiles: a named set of release rules (accepted release groups, resolution, media source, censorship preference, and the checks a release has to pass) that you can apply to any anime. See Release profiles

Libraries (a name and a folder each) are not files: you manage them on the Libraries page and they are stored in the main database. See Media folders and libraries.

AniFlow TV

AniFlow TV is a separate companion app that shows your AniFlow on a television. AniFlow provides the server side for it: a read-mostly interface at /api/tv/v1. A TV can read your watchlist, the weekly schedule, the calendar and In Progress, and it can add a show from the calendar to your watchlist. It cannot do anything else: it cannot open Settings, reach your downloads or change them, and it cannot create tokens for itself. The calendar it shows follows your own calendar settings.

The TV app is a separate project and its availability is not covered here. This page only describes the AniFlow side.

Pairing a TV

Each TV gets its own token, and you can cut one off at any time. Open Settings -> Integrations; the panel is called AniFlow TV.

With a code (the easy way):

  1. On the TV, start pairing. The TV shows a code (and a QR code).
  2. In AniFlow press Pair a TV with a code, or scan the QR code with your phone, which opens AniFlow with the code filled in. Enter the code the TV is showing.
  3. Check that the code is the one on your screen and press Approve. The TV signs itself in within a few seconds. You never type a token.

A code is valid for five minutes. If it ran out, start again on the TV. At most a small number of pairings can wait at once. If AniFlow recognises the TV by name, it offers to replace the older entry, so a TV does not pile up as several entries.

With a token by hand: enter a name (for example "Living room") and press Add a TV. AniFlow shows the token once, together with the address to enter, and keeps only a fingerprint of it. Enter both in the TV app's own settings. If you lose the token, revoke the TV and add it again.

The list under the panel shows each TV with when it was paired and last used. Revoke (then confirm) cuts a TV off immediately. Because the connection is plain HTTP, the same advice as for the web interface applies: keep this on your own network; see Security and privacy.

Debug mode

Careful

Debug mode is for developing AniFlow. Some of the tools it unlocks can delete files, rewrite database rows and re-run imports, and nothing warns you twice. Leave it off unless you know why you need it, and take a backup first.

There is deliberately no switch for it on the Settings page. To turn it on, edit /config/aniflow.yaml, set the following, and save (no restart needed):

debug_mode: true

Set it back to false (the default) to hide the tools again. Remember that saving from the Settings page rewrites the file, so make the edit last.

With debug mode on, the interface gains:

Some of these (the sample records, the log test) are harmless. The ones that act on your library and database are the ones to be careful with, and some page-level repair actions are only reachable in debug mode. Do not press buttons whose effect you cannot read from their label.

The debug tools are not needed for normal use. For a bug report, the Download diagnostics button works without debug mode; see Troubleshooting and Checks.