luketanti/AeroFoil
حول
Personal Library Manager
أدوات التطويرالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- +٢
- خلال 15 يومًا
- +٦
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلAeroFoil
AeroFoil is a Personal library manager that turns your library into a fully customizable, self-hosted Remote. The goal of this project is to manage your library, identify any missing content (DLCs or updates) and provide a user friendly way to browse your content. Some of the features include:
- multi user authentication
- web interface for configuration
- web interface for browsing the library
- content identification
- remote customization
The project is still in development, expect things to break or change without notice.
Index
Installation
Using Docker
Docker run
Running this command will start the remote on port 8465 with the library in /your/game/directory:
docker run -d -p 8465:8465 \
-v /your/game/directory:/games \
-v /your/config/directory:/app/config \
-v /your/data/directory:/app/data \
--name aerofoil \
luketanti/aerofoil:latest
The remote is now accessible with your computer/server IP and port, i.e. http://localhost:8465 from the same computer or http://192.168.1.100:8465 from a device in your network.
Docker compose
The Compose examples use host networking for LAN discovery.
Use a Docker platform that supports LAN broadcast delivery in host mode.
For bridge networking, remove network_mode: host, publish the TCP web port
with ports: ["8465:8465"], and configure clients with the server address manually.
Create a file named docker-compose.yml with the following content:
version: "3"
services:
aerofoil:
container_name: aerofoil
image: luketanti/aerofoil:latest
# environment:
# # For write permission in config directory
# - PUID=1000
# - PGID=1000
# # to create/update an admin user at startup
# - USER_ADMIN_NAME=admin
# - USER_ADMIN_PASSWORD=asdvnf!546
# # to create/update a regular user at startup
# - USER_GUEST_NAME=guest
# - USER_GUEST_PASSWORD=oerze!@8981
# # cache TTLs (seconds): use none/unset for rebuild-only
# - SHOP_SECTIONS_CACHE_TTL_S=none
# - MEDIA_INDEX_TTL_S=none
volumes:
- /your/game/directory:/games
- ./config:/app/config
- ./data:/app/data
- ./conversion-tmp:/app/conversion-tmp
- /your/downloads/directory:/downloads
network_mode: host
[!NOTE] You can control the
UIDandGIDof the user running the app in the container with thePUIDandPGIDenvironment variables. By default the user is created with1000:1000. If you want to have the same ownership for mounted directories, you need to set those variables with the UID and GID returned by theidcommand.
You can then create and start the container with the command (executed in the same directory as the docker-compose file):
docker compose up -d
This is useful if you don't want to remember the docker run command and want a persistent, reproducible container configuration.
Environment variables
New AEROFOIL_* variables are preferred. Legacy OWNFOIL_* names are still accepted for backward compatibility.
PUID/PGID: control the user ID/group ID inside the container (default1000:1000).USER_ADMIN_NAME/USER_ADMIN_PASSWORD: create or update an admin user at startup (default: unset).USER_GUEST_NAME/USER_GUEST_PASSWORD: create or update a regular user at startup (default: unset).AEROFOIL_DB_FILE: override SQLite database file path (legacyOWNFOIL_DB_FILEalso supported).AEROFOIL_VERSION: override app version label (legacyOWNFOIL_VERSIONandAPP_VERSIONalso supported).AEROFOIL_SECRET_KEY: Flask secret key used for sessions/cookies. Recommended to set a long random value in production (default: auto-generated at startup).AEROFOIL_TRUST_PROXY_HEADERS: enable trustingX-Forwarded-Forwhen the proxy is in the trusted list (true/false, default:false).AEROFOIL_TRUSTED_PROXIES: comma-separated proxy IPs/CIDRs (default: empty), for example172.16.0.0/12,192.168.0.0/16.AEROFOIL_AUTH_BLOCKED_COUNTRY_CODES: comma-separated ISO country codes to block at auth boundary (legacyOWNFOIL_AUTH_BLOCKED_COUNTRY_CODESalso supported).AEROFOIL_AUTH_ALLOWED_COUNTRY_CODES: comma-separated ISO country codes allowlist at auth boundary (legacyOWNFOIL_AUTH_ALLOWED_COUNTRY_CODESalso supported).AEROFOIL_CONVERSION_STAGING_ENABLED: enable fixed Docker staging path (/app/conversion-tmp) for temporary NSP/XCI conversion output (true/false, default: unset/disabled).AEROFOIL_CONVERSION_STAGING_DIR: absolute path for temporary NSP/XCI conversion output (default: empty, which keeps direct in-library conversion output).SHOP_SECTIONS_CACHE_TTL_S: cache TTL for/api/shop/sections(seconds). Usenone/unset for rebuild-only (default),0to disable caching. Recommended:nonefor stable libraries, or600-900for periodic refresh.SHOP_SECTIONS_ALL_ITEMS_CAP: max number of items retained per discovery section before per-request slicing (default:300).SHOP_SECTIONS_ALL_ITEMS_CAP_NO_TITLEDB: max number of items retained per discovery section when TitleDB is unavailable (default:120).MEDIA_INDEX_TTL_S: cache TTL for icon/banner media index (seconds). Usenone/unset for rebuild-only (default),0to disable caching. Recommended:noneor600-900.AEROFOIL_TITLES_TOTAL_CACHE_TTL_S: cache TTL for/api/titlestotal-count cache (seconds, default:300; legacyOWNFOIL_TITLES_TOTAL_CACHE_TTL_Salso supported).AEROFOIL_TITLES_TOTAL_CACHE_MAX_ENTRIES: max entries for/api/titlestotal-count cache (default:256; clamped to16..4096; legacyOWNFOIL_TITLES_TOTAL_CACHE_MAX_ENTRIESalso supported).AEROFOIL_ACCESS_EVENTS_QUERY_MAX: max rows returned by access-events API queries (legacyOWNFOIL_ACCESS_EVENTS_QUERY_MAXalso supported; default10000).AEROFOIL_ACTIVITY_API_MAX_LIMIT: max rows returned by activity API queries (legacyOWNFOIL_ACTIVITY_API_MAX_LIMITalso supported; default10000).AEROFOIL_CLIENTS_HISTORY_API_MAX_LIMIT: max rows returned by clients-history API queries (legacyOWNFOIL_CLIENTS_HISTORY_API_MAX_LIMITalso supported; default20000).AEROFOIL_CLIENTS_HISTORY_CSV_MAX_LIMIT: max rows exported by clients-history CSV endpoints (legacyOWNFOIL_CLIENTS_HISTORY_CSV_MAX_LIMITalso supported; default50000).AEROFOIL_HOST: bind host for the web server (default:0.0.0.0).AEROFOIL_PORT: bind port for the web server (default:8465).AEROFOIL_WSGI_THREADS: Waitress worker thread count (default:32).AEROFOIL_WSGI_CONNECTION_LIMIT: max concurrent Waitress channels (default:1000).AEROFOIL_WSGI_CHANNEL_TIMEOUT_S: idle channel timeout in seconds (default:120).AEROFOIL_WSGI_CLEANUP_INTERVAL_S: Waitress cleanup interval in seconds (default:30).AEROFOIL_WSGI_MAX_REQUEST_BODY_SIZE: max HTTP request body size in bytes for Waitress (default:68853694464, about64.125 GB).AEROFOIL_UPLOAD_TMP_DIR: directory for temporary multipart upload files during request parsing (default:<data>/tmp/uploads; ensure enough free disk space for very large uploads).AEROFOIL_USE_FLASK_DEV: set totrue/1to force Flask dev server instead of Waitress.AEROFOIL_STATIC_MAX_AGE_S: static asset cache max-age in seconds (legacyOWNFOIL_STATIC_MAX_AGE_Salso supported; default3600).WATCHDOG_POLLING: set to1/true/yesto force polling-based file watcher observer.AEROFOIL_WATCHDOG_POLL_INTERVAL_S: delay between recursive filesystem snapshots when polling is enabled (default10seconds; range1-3600). Increase to30or60for lower idle filesystem/CPU overhead on large or network libraries. Longer intervals delay detection of external changes; snapshot time and file-stability checks add to that delay. Native watching is unaffected.LOG_LEVEL: Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL (default: INFO)
Using Python
Clone the repository using git, install the dependencies and you're good to go:
$ git clone https://github.com/luketanti/aerofoil
$ cd aerofoil
$ pip install -r requirements.txt
$ python app/app.py
To update the app you will need to pull the latest commits.
By default, python app/app.py runs AeroFoil with the Waitress WSGI server (production-oriented). Set AEROFOIL_USE_FLASK_DEV=true only if you need the Flask development server for debugging.
CyberFoil setup
In CyberFoil, set the AeroFoil Remote URL in Settings:
- URL:
http://<server-ip>:8465(orhttps://if using an SSL-enabled reverse proxy) and port 443 - Username: username as created in AeroFoil settings (if the remote is private)
- Password: password as created in AeroFoil settings (if the remote is private)
See CyberFoil virtual compressed streaming for server-side decompression of compressed library files.
Shop title descriptions and screenshots
CyberFoil can fetch title details using GET /api/shop/title-info/<title_id>.
Send the shop username and password with HTTP Basic authentication on each
metadata and image request; no web login or cookies are required. Public shops
also allow anonymous requests. Use CyberFoil's normal User-Agent and the same
HTTPS host-verification headers used for /api/shop/icon/<title_id>. The existing
shop client restrictions, frozen-account checks, and title age limits apply.
Title IDs must contain exactly 16 hexadecimal characters (case-insensitive). A successful response is HTTP 200 with JSON:
{
"success": true,
"title_id": "0100AAAABBBB0000",
"description": "Example description",
"screenshots": [
"/api/shop/screenshot/0100AAAABBBB0000/0",
"/api/shop/screenshot/0100AAAABBBB0000/1"
]
}
Resolve these relative URLs against the AeroFoil server. description is a string
or null; screenshots is always an array of URLs. Missing TitleDB metadata
returns description: null and screenshots: [] (subject to unrated-title access
rules). Metadata responses use Cache-Control: private, no-store.
GET /api/shop/screenshot/<title_id>/<index> returns image/jpeg. The index is
zero-based in the original TitleDB screenshot list. Invalid source entries
are omitted from metadata responses, so URL indexes may have gaps; fetch the
returned URLs directly. Optional ?size=client (default), screen, or thumb
limits dimensions to 720×405, 1280×720, or 320×180 respectively. Images retain
their aspect ratio without cropping, stretching, or upscaling. Downloads are
cached under data/cache/screenshots, keyed by title, index, source URL and size;
successful image responses use Cache-Control: private, max-age=3600 and support
conditional requests. Shop credentials are never forwarded to image hosts.
Invalid metadata title IDs return HTTP 400 with success: false and an error.
Invalid image IDs/indexes, absent screenshots and unusable source URLs return
404; invalid image sizes return 400; restricted titles return 403. Metadata
lookup failures return 503. Image download or decode failures return 502 with
{"error": "Screenshot is unavailable."} and can be retried. Shop authentication
and host-verification failures retain the icon API's JSON error response format
(which can use HTTP 200); clients must check for error before consuming metadata
or image bytes. The existing web /api/title-info/<title_id> endpoint is unchanged.
Cheats
AeroFoil includes an admin Cheat Manager under Content → Cheats for Atmosphère-compatible cheat files. Cheats are associated with a title ID and build ID, then stored as <build-id>.txt.
- Choose a title from the library search or enter a title ID manually for a title that is not yet in the library.
- Add a cheat by uploading a
.txtfile or pasting its text directly. An optional note is shown in the manager list. - Download or delete individual cheat files from the list.
- Optionally sync a ZIP archive. The importer recognizes common structures, including
<title-id>/cheats/<build-id>.txtandatmosphere/contents/<title-id>/cheats/<build-id>.txt. - The switch-cheats-db latest
titles_complete.ziparchive is a compatible sync source.
Enable Show the Cheats section in CyberFoil at the top of the manager and save the setting to advertise a versioned Cheats section to CyberFoil. Only cheats whose title has an owned base title in the library are included in that section.
Cheat management is admin-only. In Users, enable the Cheats permission for each account that may browse or download cheats from a private shop. Disabling it hides the CyberFoil Cheats section and denies the cheat APIs for that user. Public shops cannot apply this permission because requests have no per-user identity.
Save backups (Save Sync)
AeroFoil supports per-user save backup management when the user has the Backup flag enabled:
- Save archives are stored per user under
data/saves/<username>/. - Multiple backup versions per title and save type are supported. Account saves and shared device saves have separate histories, extracted
latest/directories, and_latest.zipcaches. - Typed backups use
data/saves/<username>/<title_id>/<account|device>/. Existing untyped files remain in their original locations and are reported asunknown; no database migration or automatic type guessing is performed. - In the web upload form, select Account, Device (shared), or Unknown / legacy. To classify an old backup, download it and reupload it with the correct type. CyberFoil will not restore an untyped backup automatically.
- Each uploaded version can include a note.
- Backups can be uploaded, downloaded, or deleted from:
- CyberFoil
Savessection, - AeroFoil web page
Save Data Backups(title picker + upload, download, delete).
- CyberFoil
Save sync API endpoints:
GET /api/saves/capabilitiesadvertisessave_types: true.GET /api/saves/list?save_types=1lists all types;?save_type=account|device|unknownselects one. A plain list request returns only untyped backups for older-client compatibility.POST /api/saves/upload/<title_id>accepts multipartsave_type=account|device|unknown; omitted types stayunknown.GET /api/saves/download/<title_id>/<save_id>.zipDELETE /api/saves/delete/<title_id>/<save_id>(also acceptsPOSTfor compatibility)
Download and delete URLs include ?save_type=account|device|unknown; the server returns correctly scoped URLs in list/upload responses. Missing type parameters access only untyped backups. Generated latest saves are resolved within the selected type. Download responses include an X-Save-Type header.
Requests
AeroFoil supports title request tracking across users:
- A game request entry is shared by title, and multiple users can be linked to that request.
- Users can view their own requests and current request state in the Web UI.
- Admins can review all requests, run download search from request entries, deny requests, and delete requests.
- Open requests are automatically closed when the title becomes available in the library.
Usage
Once AeroFoil is running you can access the Remote Web UI by navigating to the http://<computer/server IP>:8465.
User administration
AeroFoil requires an admin user to be created to enable Authentication for your Remote. Go to the Settings to create a first user that will have admin rights. Then you can add more users to your remote the same way.
Content rating controls (ESRB)
AeroFoil can restrict each user's catalog and downloads using the ESRB age rating supplied by TitleDB. The restriction is applied per user: users without a maximum rating remain unrestricted.
The available maximum ratings are:
Everyone (E)— 0Everyone 10+ (E10+)— 10Teen (T)— 13Mature 17+ (M)— 17Adults Only (AO)— 18
When a user has a maximum rating, titles above that limit are hidden from the web library, discovery sections, and the Tinfoil/Remote catalog. Direct download requests for blocked content are also rejected.
Setup
- Open Users and create or edit the account you want to restrict.
- Set Max rating to the highest ESRB tier that user may access. Select No limit to leave the user unrestricted.
- In Settings, choose whether Hide unrated titles from age-capped users should remain enabled. It is enabled by default and recommended for child accounts.
With that option enabled, homebrew, unidentified files, and titles without a known TitleDB rating are hidden from users who have a maximum rating. Disable it only if you want unrated content to remain visible to those users.
Library administration
In the Settings page under the Library section, you can add directories containing your content. You can then manually trigger the library scan: AeroFoil will scan the content of the directories and try to identify every supported file (currently nsp, nsz, xci, xcz).
There is watchdog in place for all your added directories: files moved, renamed, added or removed will be reflected directly in your library.
Library management
In the Manage page, you can organize your library structure, delete older update files, delete scoped library content, clean up orphaned add-ons, and convert nsp/xci to nsz.
Library browser UI
- Card view: the Base/Update/DLC status icons are displayed above the action buttons.
- Icon view: the
Game infobutton is shown as an overlay on the game tile.
Discovery sections (New and Recommended)
The home-page discovery rows are generated from owned BASE titles only (not update/DLC rows), and only when a real library file is linked.
New: sorted by most recent library file id (newest first), then the first items are used for the section.Recommended: a deterministic daily rotation weighted by localdownload_count. The titles currently visible at the front ofNeware placed after older candidates, so the two rows stay distinct whenever the library is large enough. No library or usage data is sent to an external service.
For the Web UI, these sections are returned through /api/titles as discovery.newest and discovery.recommended.
Game info (TitleDB)
The Game info modal uses TitleDB metadata:
description: shown as the game summary.screenshots: displayed in a grid; click a screenshot to open it larger.DLC search: admins can trigger a download search for related add-ons directly from the details flow.Expand/Collapse toggle: toggles the details card width (between standardmodal-lgand90vwexpanded layout) to provide more screen space when browsing. This preference is saved for the duration of the browser session.
AeroFoil reads descriptions and screenshots from the generated region TitleDB file, such as titles.US.en.json, downloaded in the TitleDB artifact. It does not download or read the separate raw US.en.json dataset.
[!NOTE] On first boot, game titles may temporarily appear as
Unrecognizedwhile TitleDB is being downloaded in the background. Once the download finishes, refresh the page and names/metadata will appear.
Conversion details:
- Uses the installed Python
nszpackage (with progress output). - Uses the same
keys.txtuploaded in theSettingspage. - Optional conversion staging directory lets you run temporary conversion IO on a different disk/pool before finalizing output into the library path.
- Shows live status, per-file progress, and the current filename.
- Filters out files smaller than 50 MB from the manual conversion dropdown.
- The
Verbosecheckbox shows detailed task output; otherwise the task output stays clean.
Automatic update downloads (Prowlarr + Download Clients)
AeroFoil can automatically search for missing updates using Prowlarr, route torrent results to a configured torrent client, route usenet results to a configured usenet client, and ingest completed downloads back into the library. The UI is modeled after apps like Sonarr/Radarr with explicit connection tests.
Setup
- Open the
Settingspage and scroll to the Downloads section. - Enable Automatic downloads and configure:
- Search interval (minutes): how often AeroFoil will look for missing updates.
- Minimum seeders: skip torrent results below this count. Leave blank or set
0to include zero-seeder results. - Required terms: case-insensitive, comma-separated title filters. All terms (the default) requires every term; Any term accepts a result containing at least one term. Leave this field blank to avoid title-term filtering.
- Blacklist terms: case-insensitive, comma-separated terms that always exclude a result.
- Search prefix / suffix: optional text added to search queries. Both are blank by default.
- Torrent category/tag: used to tag managed torrent downloads (default
aerofoil).
- Configure Prowlarr:
- Prowlarr URL (e.g.
http://localhost:9696) - API Key
- Indexer IDs (optional, comma separated). If set, AeroFoil will limit searches to these indexers; leave blank to use all enabled Prowlarr indexers.
- Categories (optional, comma separated). Leave blank to search without a Prowlarr category restriction.
- Use Test Prowlarr to validate connectivity and indexer IDs (missing IDs show as warnings).
- Prowlarr URL (e.g.
- Configure Torrent Client:
- Client: multiple clients are supported, including qBittorrent, Transmission, Deluge, rTorrent, and others listed in the Settings UI.
- Client URL and credentials.
- Download path (optional): if set, AeroFoil will warn if it doesn't exist or isn't writable.
- Remove finished torrents from client: disable this to retain completed torrents for seeding.
- Use hardlinks instead of copying when seeding: optional, and only used when completed torrents are retained. AeroFoil attempts a hardlink for each imported file, then safely falls back to copying if hardlinks are unavailable. The torrent client's download path and AeroFoil library path must be on the same share or volume—such as the shared-volume layout commonly used by Unraid Trash Guides setups—for hardlinks to work.
- Use Test torrent client to validate connectivity.
- Configure Usenet Client if you want Prowlarr usenet results to queue automatically:
- Client: multiple usenet clients are supported, including SABnzbd, NZBGet, Download Station, NZBVortex, and others listed in the Settings UI.
- Client URL and API Key.
- SABnzbd category: AeroFoil uses this to identify managed usenet downloads.
- Use Test usenet client to validate connectivity.
Notes
- Prowlarr is used for searching and ranking results; AeroFoil routes each match to the configured torrent or usenet client based on the result protocol.
- Warnings do not block tests; they highlight misconfigurations (e.g. missing indexer IDs or invalid download paths).
- The downloader runs on a schedule and respects the configured interval, skipping runs if the interval has not elapsed.
- Completed downloads are detected by torrent category/tag or SABnzbd category and trigger a library scan + refresh.
- Manual search results include protocol-aware filtering, and pending queue entries can be removed from the downloads page if they become stale.
- Rejected duplicate imports now support two actions in Downloads:
Delete file: deletes the duplicate file from disk when a concrete local path is available.Remove: dismisses the duplicate entry from the list without deleting files.
- The downloads page shows both pending queue state and active client summaries, adjusting torrent-only columns when only usenet activity is present.
- Successfully imported items are removed from the pending queue and no longer shown in Downloads (this page is for active/pending state, not historical completed items).
Titles configuration
In the Settings page under the Titles section is where you specify the language of your Remote (currently the same for all users).
This is where you can also upload your console keys file to enable content identification using decryption, instead of only using filenames. If you do not provide keys, AeroFoil expects the files to be named [APP_ID][vVERSION].
Remote customization
In the Settings page under the Remote section is where you customize your Remote, including the message displayed when accessing the remote from Tinfoil and whether the remote is private or public.
MOTD supports variables and optional API-backed variables:
- Built-in variables:
{username},{user_id},{is_admin},{shop_access},{backup_access},{frozen},{client_uid},{remote_addr},{user_agent},{host},{path},{date},{time},{datetime},{timestamp}. - Optional custom MOTD API URL:
- Plain text response is exposed as
{api_text}. - JSON object responses expose
{api_<key>}for each key (for example{"reason":"..."}gives{api_reason}).
- Plain text response is exposed as
Enable MOTDcan disable MOTD output entirely while keeping other remote behavior unchanged. The encryption option only affects the Tinfoil payload; the web interface and admin UI remain accessible as normal. Encryption uses the Tinfoil public key and AES, and requires thepycryptodomedependency.Fast transfer modeprioritizes throughput for/api/get_gameby skipping per-chunk transfer accounting; Activity live byte counters and exact transfer bytes may be less precise.
CyberFoil virtual compressed streaming
Enable or disable CyberFoil virtual compressed streaming in Settings > Shop > Access And Delivery. It is enabled by default.
- Enabled: AeroFoil decompresses content as it is requested and sends CyberFoil
a virtual uncompressed file:
.nsz->.nsp,.ncz->.nca, and.xcz->.xci. CyberFoil receives uncompressed data for installation. - Disabled: AeroFoil sends the original compressed file, leaving decompression to the client.
The compressed library file stays unchanged. AeroFoil does not save a full uncompressed copy or use the conversion staging directory for virtual streaming. This shifts decompression work to the server and transfers the uncompressed size over the network, so server CPU and network speed affect throughput.
The feature applies to requests identified as CyberFoil by their User-Agent.
Sphaira, Tinfoil, and ordinary web downloads receive the original compressed files.
Virtual streams support one byte range per request, including open-ended and
suffix ranges. Invalid or multiple ranges return HTTP 416. NSZ range requests
can seek within block-compressed NCZ entries; solid compression may require
decompressing and discarding earlier data. NCZ and XCZ ranges are read from
the beginning of the virtual stream.
AeroFoil writes CyberFoil virtual stream: <source> -> <virtual output> to
the application log for each virtual response. If creating the response fails,
it logs the error and falls back to serving the original compressed file.
The Shop settings also include login protection controls: temporary IP lockout after repeated failed auth attempts, a permanent IP/CIDR blacklist, and an admin view to list and unlock current temporary lockouts.
Deployment notes
- Recommended volumes:
/games,/app/config, and/app/data. - Optional conversion staging volume:
/app/conversion-tmp(recommended on SSD when libraries are on slower pools). - Map port
8465from the container to any host port you prefer. - To bootstrap an admin account, set
USER_ADMIN_NAMEandUSER_ADMIN_PASSWORDwhen starting the container. - Optional env var:
AEROFOIL_CONVERSION_STAGING_DIR(or legacyOWNFOIL_CONVERSION_STAGING_DIR) to force a staging path from environment. - Cache TTL env vars (seconds):
SHOP_SECTIONS_CACHE_TTL_S: cache for/api/shop/sections(usenone/unset for rebuild-only,0to disable caching).SHOP_SECTIONS_ALL_ITEMS_CAP: max discovery-section item cap before slicing (default:300).SHOP_SECTIONS_ALL_ITEMS_CAP_NO_TITLEDB: max discovery-section item cap without TitleDB (default:120).MEDIA_INDEX_TTL_S: media cache index for icons/banners (usenone/unset for rebuild-only,0to disable caching).AEROFOIL_TITLES_TOTAL_CACHE_TTL_S(legacyOWNFOIL_TITLES_TOTAL_CACHE_TTL_S):/api/titlestotal-count cache TTL (default:300).AEROFOIL_TITLES_TOTAL_CACHE_MAX_ENTRIES(legacyOWNFOIL_TITLES_TOTAL_CACHE_MAX_ENTRIES):/api/titlestotal-count cache capacity (default:256, clamped to16..4096).
- Update the container with
docker pull luketanti/aerofoil:latestand restart it.
Reverse proxy: real client IP (Activity page)
If you run AeroFoil behind a reverse proxy (e.g. Nginx Proxy Manager), AeroFoil will only trust X-Forwarded-For when explicitly configured.
You can set this via settings.yaml or with environment variables (AEROFOIL_TRUST_PROXY_HEADERS and AEROFOIL_TRUSTED_PROXIES).
In config/settings.yaml:
security:
trust_proxy_headers: true
trusted_proxies:
- 172.16.0.0/12
- 192.168.0.0/16
Set trusted_proxies to your proxy IP(s) and/or your Docker network subnet so the Activity page shows the WAN/client IP instead of the proxy's LAN IP.
TitleDB sources and downloads
- Settings → Metadata Sources lists the primary TitleDB provider and optional supplemental providers. nx-versions is enabled by default to use the latest numeric update and DLC versions from 16BitWonder/nx-versions. You can disable it in settings; an explicitly saved disabled setting is preserved.
- nx-versions supplements TitleDB version history; the highest known version wins.
FULL-CHANGELOG.mdprovides fallback dates for versions whose release date is missing from TitleDB. These are the earliest dates nx-versions recorded each version, which may be later than the actual release. Known TitleDB dates take priority. It refreshes when saved as enabled and during scheduled metadata updates, independently of TitleDB download success. Failed refreshes retain validated cached data. - Disabling nx-versions stops downloads and excludes its cache from metadata lookups. Version entries already added to the library database remain recorded.
- nx-versions refreshes use persisted HTTP validators (ETag/Last-Modified), allowing unchanged data to return without downloading the file again. Version lookups reuse a parsed in-memory cache. The changelog is downloaded and parsed once per source revision into a local SQLite date index; normal date lookups query this index without loading the full changelog. Unchanged source revisions skip the changelog download entirely.
- Source updated shows the upstream commit date for the dataset in use, in your local time: the TitleDB revision embedded in its artifacts, or the last commit changing nx-versions'
versions.txt. These dates do not advance on unchanged refreshes. Small, cached GitHub commit metadata requests supply the dates; unavailable dates appear as Unknown. - TitleDB artifacts are downloaded separately from the metadata dataset.
- Descriptions and screenshots come from the generated
titles.<region>.<language>.jsonfiles in the TitleDB artifact and are stored in the local SQLite title index. Older indexes rebuild automatically; obsolete raw files such asUS.en.jsonand their.metafiles are ignored and can be removed. - The TitleDB artifacts zip may be very large (multi-GB) depending on the upstream workflow output.
- During the compatibility grace period, TitleDB artifacts contain both plain
.jsonfiles for older AeroFoil versions and individual.json.zstfiles compressed with Zstandard level 9. Updated versions prefer the compressed entries and restore local.jsonfiles. The workflow'sTITLEDB_KEEP_PLAIN_JSONsetting defaults totrue; set it tofalseafter users have upgraded to publish compressed-only JSON entries. ZIP compression stays enabled while legacy JSON copies are included.
Roadmap
Planned feature, in no particular order.
- Library browser:
- Add "details" view for every content, to display versions etc
- Library management:
- Rename and organize library after content identification
- Delete older updates
- Automatic nsp/xci -> nsz conversion
- Remote customization:
- Encrypt remote
- Saves manager:
- Automatically discover Switch device based on Tinfoil connection
- Per-user save backup storage and access control (Backup flag required)
- Multiple backup versions per title (timestamp + note)
- Download/delete save backups from both CyberFoil and AeroFoil web UI
- External services:
- Prowlarr integration for automatic update downloads (via torrent and usenet clients)
- Automated update downloader pipeline (search -> download -> ingest)
LAN discovery
Enable Settings > Shop > Access And Delivery → LAN discovery to advertise
this server to compatible clients on the local IPv4 network. Sphaira is compatible
with LAN discovery. Discovery is disabled by default.
You can choose a discovery name and advertised web port; 0 uses the application
port (AEROFOIL_PORT, with the existing legacy fallback, default 8465). If Docker
maps a different host TCP port, set the advertised web port to that host port.
Allow inbound UDP 8465 and the TCP web port in the host firewall. Both Compose
files use network_mode: host so LAN broadcasts can reach the container on
supported platforms. Host networking uses the application port directly and
does not use port mappings. If your platform cannot deliver LAN broadcasts,
use bridge networking with a published TCP web port and enter the server address manually.
Guest Wi-Fi isolation and separate subnets can also prevent discovery.
Docker networking and discovery
Publishing TCP and UDP port 8465 does not guarantee that LAN discovery broadcasts
reach a container on a Docker bridge network. If the server is reachable by its
address but is absent from the client's discovery list, use host networking where
your Docker platform supports LAN broadcast delivery:
services:
aerofoil:
image: luketanti/aerofoil:latest
network_mode: host
# Keep your existing environment and volume mappings.
In your Compose configuration, add network_mode: host at the same level as
image:, environment: and volumes:. Remove the service's ports: block and
networks: entry. Remove the top-level network declaration only if no other
service uses it, then redeploy to recreate the container.
The web interface uses the Docker host's LAN IP and application port (default
8465). Host networking does not use port mappings; if you previously mapped a
different web port, set AEROFOIL_PORT to that port. Leave the advertised web port
at 0 to use the application port. Allow inbound UDP 8465 from your LAN in the
host firewall, and enable discovery in this server's AeroFoil settings.
If a reverse proxy previously reached AeroFoil by container name on a shared Docker network, update its upstream address to the Docker host's LAN IP and AeroFoil's application port.
Host mode is one option; discovery requires LAN broadcast delivery to the container. Macvlan/IPvlan networks configured for LAN broadcast delivery or a broadcast relay can also support discovery. Bridge networking remains suitable for manually configured server addresses.
Discovery advertises the name, version, public-shop flag, web port and configured
remote host. Its stable server ID is stored in config/discovery_uid; preserve that
file with the configuration volume. Existing authentication and download routes
remain in use. Sphaira's dedicated Ownfoil menu can connect using the OPTIONS /
handshake and read-only /api/graphql catalogue. It supports paged browsing,
search, installed-title filters, updates, DLC, title details and download links.
Screenshots are fetched and cached by AeroFoil, then served to Sphaira as JPEG
images through the server, so the console does not need direct access to the
upstream image CDN. Page and full-screen views use separate image sizes.
Private shops use the same shop username/password as other clients. Frozen
accounts and per-user age limits also apply. The external Tinfoil/CyberFoil-only
restriction, when enabled, continues to block native Sphaira access off the LAN.
Install the updated requirements before restarting a local Python deployment.
No database migration is required. Sorting by date added uses file insertion
order; display-version labels are unavailable in the current library schema.
Native dump uploads and save backups are not advertised by this integration.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…